Questions tagged [artisan-migrate]

192 questions
0
votes
1 answer

fail rollback in php artisan migrate:rollback

I use Windows 8 to develop the application but I didn't install the web server or mySql server on it. What I do is use the github to store the code and git pull it on the actual server. Whenever I run php artisan make:model on windows 8, I notice…
Muhaimin
  • 1,643
  • 2
  • 24
  • 48
0
votes
1 answer

Laravel 5 database.php set to sqlite - artisan uses mysql

I seem to be having a problem with artisan reading the default config/database.php file. When I run for php artisan migrate:status - or any other migration related commands I get exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access …
0
votes
4 answers

Foreign Key on Laravel Migration causing General Error 1215

I'm trying to create multiple tables with foreign keys using Laravels migration. I have a problems migration table like so Schema::create('problems', function($table) { $table->increments('id'); …
user1871245
0
votes
1 answer

Add foreign key constraints in Laravel migration

I know a lot of people asked the same question many times but it seems as if I am not able to make the same solutions work for me. I am not able to set foreign key for the related tables for which the up() has been given below: //Migrate 1…
Cyberpks
  • 1,401
  • 6
  • 21
  • 51
0
votes
0 answers

artisan migrate grammar error

I am trying to perform artisan migrate. I have installed odbc-driver and connection is set successfully because I can read from db. The problem is that I cant create tables with php artisan migrate. I have enable odbc at php.ini. The error is like…
arual
  • 279
  • 1
  • 5
  • 14
-1
votes
1 answer

SQLSTATE[42S02] Problem with artisan tinker

I have a problem with artisan tinker Problem: Illuminate\Database\QueryException with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.projects' doesn't exist (SQL: insert into `projects` (`title`, `description`,…
Mineral
  • 39
  • 1
  • 1
  • 7
-1
votes
1 answer

Migration Command issue

Actually i am running PHP artisan migrate command on cmd to tun migration but there is nothing happen on my screen .The cursor is just blinking. D:\D DRIVE\Yazdan\software\htdocs\new1_larval>php artisan migrate ^C D:\D…
-1
votes
2 answers

PHP Laravel could not migrate files to database

I'm trying to connect with PHP and MySQL through the database using Laravel doing: php artisan migrate but I'm experiencing a common error: "Illuminate\Database\QueryException : could not find driver" (I'm using XAMPP to start up the server if…
Zne
  • 1
-1
votes
1 answer

Using Illuminate Database outside Laravel without PHP Artisan Commands

I'm trying to set up database migrations using Illuminate's Database outside of a Laravel 4.2 project. Everything I'm reading online indicated that it is completely doable to use any Illuminate components outside of Laravel, but the difficulty I'm…
user3361594
-1
votes
1 answer

How to debug which file is causing errors in laravel 5.1

After creating multiple migrations I started editing these and sometimes testing them out. All was working well untill I tried the use of foreign keys taken from this example. For some reason this wasn't working for me, so I decided to remove…
davejal
  • 6,009
  • 10
  • 39
  • 82
-2
votes
2 answers

php artisan migrate:refresh | ERROR [Laravel5]

I use Laravel 5. when i try to refresh the migration, INPUT: php artisan make:migrate OUTPUT : [Symfony\Component\Debug\Exception\FatalErrorException] Class '****' not found Even i remove that classes also.
-2
votes
3 answers

Error when running artisan migrate

I get the following error when running php artisan migrate: exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' in…
1 2 3
12
13