I am getting this problem: http://pastebin.com/B5MKqD0T
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Exception\WhoopsDisplayer::display() must be an instance of Exception, instance of ParseError given
But I have no clue how to fix it, I am new to laravel and composer etc.
I am using laravel 4.0 (because I'm following and old tutorial of my friend)
php artisan migrate:fresh is used when we want a fresh or new installation of our database. It deletes all the existing tables of the database and runs the migrate command.
By default, php artisan migrate:rollback will rollback all of your database migrations. By specifying --step=1 , you're saying that you only want to rollback the latest database migration. Plus, if you change the number, e.g. into --step=2 , you're telling Laravel to only rollback the last two migrations.
php artisan migrate --force publishes schema to the database, even in production. migrate --force ensures that the migrations are published even when the application is in product mode. php artisan migrate:rollback reverses the last migration batch.
If you've only created the migration and you've not executed the php artisan migrate command, all you would need to do to remove the migration is to delete the file. You could do that via your text editor or the command line with the rm command.
ParseError
was introduced in PHP 7. In other hand you're using Laravel 4 which has no PHP7 support.
Laravel 5.1 is the first version of Laravel to support PHP 7.
So, there's 2 solutions:
Read more about throwable exceptions in PHP7: https://trowski.com/2015/06/24/throwable-exceptions-and-errors-in-php7/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With