Questions tagged [artisan-migrate]

192 questions
2
votes
1 answer

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
2
votes
0 answers

Issue with "$ composer dumpautoload" on Cloud9, Cannot create cache directory

I'm having an issue with Artison migrate and seeding recongnizing classes. I've read that composer dumpautoload can fix the problem but I'm now having a problem running dump-autoload on Cloud9. When I run: $ composer dump-autoload I get the…
2
votes
4 answers

how to run php artisan migrate from within my virtual machine

I've just started with Laravel, installed on WAMP server, and when trying to migrate the first tables, I get and error saying that homeasted@localhost user has no premission, but I dont know how to change it to work on my virtual machine. What…
2
votes
2 answers

bind-address not present in my.cnf file - Laravel

While running this command 'php artisan migrate', i got this error "couldn't connect to local MYSQL server through socket". I was going through all stackoverflow answers, i got many suggestions saying 'change bind-address:localhost to 127.0.0.1'. I…
Nana Partykar
  • 10,556
  • 10
  • 48
  • 77
2
votes
3 answers

ErrorException array to string conversion on migrate --seed

I'm trying to set up my very first laravel project however when I try to have artisan to seed the database with faker it throws [errorException] array to string conversion I'm just working with the stock users migration file and using the command…
2
votes
3 answers

How to create a migration in Laravel 5 that only adds a column to an existing table

I'm trying to add a number of new column to the generic 'users' table that comes with the Laravel 5 installation. However I create a new migration that does a Schema::create as follows: Schema::create('users', function(Blueprint $table) { …
Mystus
  • 459
  • 6
  • 15
2
votes
1 answer

Laravel 5 php artisan not running in Vagrant, missing vendor/services.json?

Randomly I cannot run php artisan on a project via Vagrant SSH. It works outside of Vegrant SSH (regular terminal session). I am receiving the following error: [ErrorException] …
NightMICU
  • 9,000
  • 30
  • 89
  • 121
2
votes
1 answer

What is migration in laravel

I'm learning laravel and in most of tutorials they are making migrations using artisan. I skip that step and I'm working directly on a database. I don't know for what can a migration be useful. so the question is: what is exactly a migration?
Mohamed Bouallegue
  • 1,334
  • 15
  • 19
1
vote
2 answers

php artisan migrate, access denied for user'homestead'@'172.21.0.1'

when I ran php artisan migrate this results to (see screenshot below) enter image description here I tried doing composer dump-autoload -o php artisan cache:clear php artisan config:clear php artisan route:clear then tried php artisan migrate…
krlshnx
  • 9
  • 2
1
vote
0 answers

How to send yes when executing a custom command in laravel?

I am making a multitenant application using spatie/multi-tenancy. And I need to migrate the database when the new tenant is created. However, as the application is in production, it prompts before migration. I am executing this…
1
vote
0 answers

artisan migrate crash because of migration are not run

I have to code some feature on a an existing laravel project. I added docker for local development. I got some errors that I fixed but I can't fix this one. When I load the page I have this error: Base table or view not found: 1146 Table…
rm4
  • 711
  • 4
  • 15
1
vote
2 answers

PHP artisan command no response

I tried running other php artisan commands too but still not getting any response. Has anyone run into the same problem?
jialeee17
  • 601
  • 2
  • 7
  • 12
1
vote
2 answers

error when executing php artisan migrate seed in console

I write php artisan migrate:fresh --seed in the console of the root folder of a project, when I run this command, it takes near to 1 minute then it returns \ In PackageServiceProvider.php line 14: syntax error, unexpected 'Package' (T_STRING),…
Eymen
  • 135
  • 9
1
vote
1 answer

How to fix the "Table doesn't exist" error error when running 'php artisan migrate' command?

I have a project on which I need to run php artisan migrate. It should be easy but I am getting an error: php artisan migrate Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table 'skz.master_courses' doesn't…
Čamo
  • 3,863
  • 13
  • 62
  • 114
1
vote
0 answers

Laravel Running 'migrate:fresh' via code returns session error

I am using this function to create a fresh database tables public function new_migration(){ if(App::environment('demo')){ try { Artisan::call('cache:clear'); …
Neeraj
  • 231
  • 1
  • 3
  • 10