Questions tagged [artisan-migrate]
192 questions
0
votes
0 answers
SQLITE asking for password in laravel migration
I made SQLite as my default database in Laravel, why is it that PHP artisan migrate is still asking for credentials?
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost'
(using password: YES)

The Man
- 385
- 1
- 3
- 12
0
votes
1 answer
Laravel locally run artisan commands effect VM environment
I am looking for a solution that will allow me to run artisan commands from my local machine and for them to take effect on my homestead VM.
For example, when running php artisan migrate the command is run using the information stored in the .env…

Dov Benyomin Sohacheski
- 7,133
- 7
- 38
- 64
0
votes
2 answers
In Laravel 5, migration to drop composed unique key doesn't work
Trying to make a migration to drop composed unique key fails without errors.
I've created a migration with php artisan make:migration and edited the code. So I have this
public function up()
{
Schema::table('ques_trilha_itens', function…

Caco
- 1,601
- 1
- 26
- 53
0
votes
2 answers
error code during install migration is not in english, how to change it to english?
*******\wamp\www\laravel>php artisan migrate:install
[PDOException] SQLSTATE[HY000] [1045] AccΦs refusΘ pour
l'utilisateur: 'homestead'@'@local host' (mot de passe: OUI)
Can anyone please kindly tell me how to change the language to English?…

Mackinley
- 107
- 2
- 3
- 7
0
votes
0 answers
Want to run migrations from one Vagrant VM to another using php artisan migrate
I have two VMs in vagrant.
My app is on the [web] VM (192.168.10.10).
My db is on the [db] VM (192.168.10.11).
I deployed my app to the [web] VM and then from within the [web] VM, I want to run my migrations so it migrates to the [db] VM.…

jasonaburton
- 2,941
- 7
- 34
- 48
0
votes
3 answers
laravel 5 unable to migrate
I know this question has been and answered before, but none of the answers apply in my situation. Essentially, I have a Laravel install. I try to run
php artisan migrate
I get the following error:
Access denied for user…

Blind Fish
- 998
- 4
- 14
- 25
0
votes
2 answers
Moving Laravel 5.1 website from localhost to web host
My Laravel 5.1 website works fine on my localhost. I moved all folders to a "laravel" folder I created off root at the host. Host is running php 5.6. Then moved the index.php (originally in the laravel public folder) to public_html at the host. Made…

sOltan
- 447
- 1
- 7
- 20
0
votes
1 answer
failed to open stream: No such file or directory generate:seed [--path="..."] [--templatePath="..."] tableName
I tried running the command:
php artisan generate:seed Houses
However, I got the error:
failed to open stream: No such file or directory generate:seed [--path="..."] [--templatePath="..."] tableName
I migrated my table and generated my controller…

jarvan
- 449
- 3
- 9
- 25
0
votes
1 answer
Laravel 5.1: Call to undefined function dropColumn() with phpArtisan
I'm trying to learn the Laravel 5.1 framework, which is amazing. I'm following the tutorials of Jeffrey Way on laracasts.com. Only now i have come across a problem that i can't seem to get rid of.
I was following the tutorial and i tried to do a…

nicolinho66
- 107
- 1
- 7
0
votes
3 answers
php artisan migrate isn't working
When I try to connect to my database i get this error
[PDOException]
SQLSTATE[HY000] [1045] Access denied for user 'loom'@'localhost' (using password: YES)
all my credentials are…

RyanM
- 751
- 5
- 20
0
votes
0 answers
sqlite2 artisan migrate fails SQLSTATE[HY000]: General error: 1 no such table: XXX
I like use sqlite for CRUD with Laravel 4.2 & artisan.
php artisan generate:migration create_XXX_table
Edit app/database/migrations/YYYY_MM_DD_HHMMSS_create_XXX_table.php

abkrim
- 3,512
- 7
- 43
- 69
0
votes
3 answers
Deleted a model manually, php artisan migrate gives and error
So I just started playing around with Laravel 5.1. I created a model with migration named "teachers". Then I manually deleted the model file which was Teachers.php which contained the Teachers class. Now when I try to roll back I get the following…

Vivek Padhye
- 731
- 3
- 13
- 26
0
votes
1 answer
Parse Error in php artisan migrate
php artisan migrate gives throws the following error.
[Symfony\Component\Debug\Exception\FatalErrorException] parse error,
expecting "identifier (T_STRING)"
How should I debug this? What are the possible reasons for this error?
PHP version =…

hsusmita
- 282
- 3
- 16
0
votes
1 answer
Class 'Users' not found when running artisan migration
I am trying to run
project$ php artisan migrate:refresh
but get the error
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Users' not found
Why do I need a Users class? I already have app/User.php:

Streetlamp
- 1,537
- 2
- 15
- 27
0
votes
1 answer
Laravel seeding tables in second database
connection('mysql2') is my (working) second database connection.
When I migrate first, connection('mysql2') is working like expected, the table is created.
Schema::connection('mysql2')->create('brands', function(Blueprint $table)
{
…

Klaaz
- 1,590
- 3
- 23
- 46