Questions tagged [artisan-migrate]

192 questions
6
votes
4 answers

php artisan migrate: Class Schema not found

When doing a migration, in the Windows console I execute the command: php artisan migrate When I run the command, it shows me the following error: [Symfony\Component\Debug\Exception\FatalErrorException] Class 'Market\Providers\Schema' not found I…
FranMoronR
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Eloquent Tinker - Undefined Constant

I'm following along with this set of tutorials on laravel (They're excellent), and I keep running into this error: PHP error: Use of undefined constant Article whenever I enter this line of code: $article = new App/Article; I've followed…
mattegener
  • 159
  • 1
  • 3
  • 11
6
votes
6 answers

php artisan migrate : [PDOException] could not find driver

My system config is Ubuntu 14.04 + XAMPP + Laravel 4 installed mysql driver is configured on /opt/lampp/htdocs/larva/app/config/database.php 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', …
xkeshav
  • 53,360
  • 44
  • 177
  • 245
5
votes
2 answers

php artisan migrate all tables except few

Is it possible to execute php artisan migrate in a way to migrate all the tables but leave only a few migration files under database\migrations? The scenario is, our business requirement needs 2 DBs. So there are few migration files that explicitly…
Kannan Ramamoorthy
  • 3,980
  • 9
  • 45
  • 63
5
votes
2 answers

Debugging a Laravel 5 artisan migrate unexpected T_VARIABLE FatalErrorException

When running artisan migrate on a Laravel 5 project, it is failing with the following FatalErrorException: $ artisan migrate -vvv --force [Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '$table'…
S P
  • 1,801
  • 6
  • 32
  • 55
4
votes
6 answers

Laravel Migration stalls and doesn't do anything

Just went through all the steps listed on the Laravel site to install and get up and running for MacOS HighSierra. I currently have Composer, Homebrew, valet, PHP 7.2.8, MySQL version 8.0.11 and Laravel 5.6.28 installed. I can create a new project…
whisk
  • 713
  • 1
  • 10
  • 34
4
votes
1 answer

I can not run php artisan migrate

I'm trying to run the php artisan migrate command, but I'm not getting it. I'm getting this error SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"\n LINE 1: set search_path to ""\n …
Iago Frota
  • 191
  • 1
  • 11
4
votes
3 answers

laravel : php artisan not working

I know there is bunch of answer out there and none of them solved my problem. I am giving a try again in 2016 may be some one can help. php artisan make:migration createxxxtable don't show any error and it don't create the file neither of these…
cjmling
  • 6,896
  • 10
  • 43
  • 79
4
votes
1 answer

Laravel Migrations - keep them forever? What is best practice?

I have been working with Laravel for about a couple of months now - loving it. Have a question about the workflow that is recommended for managing changes to the database. I have a test database that I used to develop my app, and when I was…
Venky Rao
  • 106
  • 1
  • 7
3
votes
0 answers

Undefined property: stdClass::$column_name laravel after git checkout

I fetched a new branch from the remote and checked out to the branch in the server. But then I keep getting this error for every artisan command. The laravel version is 5.4. How can I fix this?
Azima
  • 3,835
  • 15
  • 49
  • 95
3
votes
2 answers

php artisan migrate is not doing anything

I've installed Laravel 5 and Valet (v2.0.12) using Homebrew on my Macbook Pro (running High Sierra (10.13.6)). I've downloaded a clean Laravel project (laravel new blog). When I try to migrate (sitting in the project folder, then using php artisan…
dnwjn
  • 171
  • 13
3
votes
1 answer

How to run artisan outside of Laravel?

Is it possible to run Artisan commands from a script that is not part of Laravel? How can I import artisan into my script?
Crysfel
  • 7,926
  • 3
  • 33
  • 41
3
votes
1 answer

Password authentication failed error on running laravel migration

I am trying to deploy my Laravel app on a DigitalOcean droplet. The droplet is setup with nginx, php7, and postgres, I follow up the tuts from DigitalOcean on how to set them up. Then I try to follow this tutorial on how to deploy the Laravel app…
taufn
  • 101
  • 4
  • 12
3
votes
1 answer

Laravel 5.3 migration doesn't create tables

I created some migrations using the command php artisan migrate:make and then filled it and saved it with some fields. This is a fresh installation and the first migration to run. I ran php artisan migrate and the migration completed successfully.…
mydoglixu
  • 934
  • 1
  • 7
  • 25
3
votes
2 answers

laravel : php artisan suddenly stop working

I know that there bunch of questions out there but mine doesn't seems fit in any. I am working on laravel. php artisan was working fine an hour before. After that i just created a controller, a model and few views blade. Now artisan simply won't…
cjmling
  • 6,896
  • 10
  • 43
  • 79
1
2
3
12 13