how to fix this php artisan migrate problem - laravel-4

enter image description here
How can i fix this? I tried to migrate and still have this error. I tried php artisan migrate:fresh still didn't fix itenter image description here it says drop all tables fail.

Related

Accidentally deleted laravel.log from Laravel 8; now, the engine wouldn't populate the it with error messages

I wanted to free up the space stored in laravel.log under storage\logs. But when I did, it stopped working, and so I manually removed the laravel.log into the trash bin hoping that laravel would generate a new log file, but it didn't. So, I created a new laravel.log manually. I ran php artisan config:cache and php artisan view:clear to help solve this issue.
Without having to reinstall the whole thing, are there ways to fix this?
To resolve in Windows 10:
Navigate to your project directory, to storage\logs and create a file called laravel.log
Then run php artisan view:clear and php artisan config:cache
deleting storage/logs/laravel.log shouldn't create any issue, you can recreate the file by the name of laravel.log then add permission to the log file (in ubuntu) by running sudo chmod -R a+rwx /var/www/html/appplication-name/storage/logs and then run php artisan cache:clear, php artisan config:cache.

PHP Artisan Tinker not working with Laravel 5.5.16

I run php artisan tinker but it didn't work it just show a message like this
c:\xampp\htdocs\app_tpa>php artisan tinker
[ErrorException]
rmdir(C:\Users\KIMUNG~1\AppData\Local\Temp\php-xdg-runtime-dir-fallback-): Directory not empty
I tried to run composer require laravel/tinker, but it doesn't fix my problem
This issue is now resolved as per these github issues:
laravel/tinker#29
bobthecow/psysh#430
The proper solution now is to do composer update

Laravel Php artisan make migration error

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.

Unexpected behavior in Laravel 5.3 installation

My Laravel project randomly shows connection refused exception, but it was working before, so I type
php artisan config:cache
and the error disappear, but after that, it throws View not found exception I ran
php artisan config:cache
again without success. After that, I type
php artisan route:cache
php artisan route:clear
php artisan clear-compiled
composer dump-autoload
but the exception View not found still there, so I don`t know what else to do.
I use vagrant with Homestead 7.
NOTE: Yesterday I migrate my installation to a fresh one because the same problem, but today it appears again.
well, after many attempts i ran
php artisan cache:clear
and the problem is now gone.

Laravel - php artisan migrate doesn't work

I'm trying to migrate my auth tables but when i do php artisan migrate nothing happens. It shows no error, nothing.
Before run this command i ran php artisan make:auth and work well.
Thanks
Check if you have migration that were not ran yet. If you have one, run composer dumpauto command to register this migration and then run php artisan migrate again.
You can find all executed migrations in the migrations table.

Resources