when I do php artisan queue:work I'm getting error
ReflectionException Class emails does not exist
Make sure to update composer.
or try this - delete vendor folder and run.
composer update
Related
I already composer dumpautoload, php artisan config:clear, delete all cache present in bootstrap but error show..
When using Laravel with Jenssegers/MongoDB and Cashier, I receive the error:
Call to a member function prepare() on null.
Browse to laravel/vendor/cashier/src/
Open both subscription.php and subscriptionItem.php and change
use Illuminate\Database\Eloquent\Model;
to
use Jenssegers\Mongodb\Eloquent\Model;
remove the composer.lock and run this command
composer require jenssegers/mongodb
after that run these command as well:
composer dump-autoload
php artisan cache:clear
php artisan view:clear
php artisan config:clear
and restart your server. also, make sure you have installed the latest version of composer.
what i need is need to create_attendance_table using php artisan make:migration create_attendance_table.
But it gets an error like this in my cmd
How can i fix this error?
Seems like you have first created a create_attendance_table and deleted it. The error came across because it couldn't find that deleted migration file. To get rid of error
First hit command
composer dump-autoload
and then,
php artisan make:migration create_attendance_table
Hope this will help you.
for creating migration file you need this command like
php artisan make:migration create_users_table --create=users
for your table :
php artisan make:migration create_attendance_table --create=attendance
your command will migrate existing file, so that's why that error came.
Please read documentation for further details.
I am beginner to Laravel, when i run the command "php artisan session:table" first time it successfully created the session migration but unfortunately i have deleted this file. Now when running again this command "php artisan session:table"
its getting error.
error
Please tell me where laravel stores that information that session migration is already created.
Regards,
Kamal
Delete CreateSessionsTable migration in this folder
database/migrations
Run
composer dump-autoload
Then you can run
php artisan session:table
again.
I've just installed Laravel 5.3. php artisan serv also runs.
But as I hit http://localhost:8000/ on browser I get a RuntimeException.
Is there any solution to prevent this error?
Create cipher key by this command
php artisan key:generate
Then run server
php artisan serve
To avoid this problem always use composer for creating project.
Ex. composer create-project laravel/laravel your_project_name --prefer-dist
if you create project by composer then need not to run this command.
php artisan key:generate