Questions tagged [artisan-migrate]
192 questions
0
votes
2 answers
Unable to locate factory with name [default] [Modules\Brokerquotes\Entities\Insuree]
I definitely have a factory
$factory->define(Modules\Brokerquotes\Entities\Insuree::class,....
And in a DatabaseSeeder I have
factory("Modules\\Brokerquotes\\Entities\\Insuree", 5)->create()-> ......
But when I try to call the seeder class…

Kendall
- 5,065
- 10
- 45
- 70
0
votes
1 answer
Laravel 5.5 unable to do initial migrate
I am trying to do the initial migration on a fresh laravel 5.5 installation. The home page works, but I seem to have a db setup issue. I'm using MariaDB and I am able to connect to my DB with a separate db client with no issues. Also I'm able to…

Billy Joe
- 49
- 1
- 8
0
votes
2 answers
in facade.php 221, call to undefined method MySqlBuilder::defaultStringLenght()
in windows command promt full eror it gives same with some php artisan commands
C:\xampp\htdocs\jj>php artisan migrate
In Connection.php line 664:
SQLSTATE[HY000] [1049] Unknown database 'juwelleryjournal' (SQL: select * from…
0
votes
1 answer
Php artisan migrate command
I tried to run php artisan migrate but I'm getting an error:
In Connection.php line 664: could not find driver (SQL: select * from
information_schema.tables where table_schema = homestead and
table_name = migration) In Connector.php line 67:…

Wadar
- 1
- 4
0
votes
0 answers
Windows 10 Laravel project not running migrations failed to open stream: No such file or directory
I've cloned a Laravel 5.4 project created on a Mac to my Windows 10.
Then, I've did a composer update.
When I try to do php artisan migrate, I get this error:
In ClassLoader.php line 444:
include(C:\Users\José…

JDalri
- 378
- 5
- 21
0
votes
2 answers
How to generate views from migrations in Laravel?
I am using Laravel 5.4 and the package migrations-generator that generates migrations.
So I have the migrations and now I need to generate the views automatically using Artisan. I tried it on Symfony and it was so easy but I can't do it with…

Roby Sottini
- 2,117
- 6
- 48
- 88
0
votes
1 answer
General error: 1215 Cannot add foreign key constraint on tables
I have been trying out all possible solutions based on other stack questions and answers but I'm still not getting any success so I had to make my own question.
I have the following Schemas
Schema::create('file_data', function (Blueprint $table) {
…

Kendall
- 5,065
- 10
- 45
- 70
0
votes
1 answer
Could not open input file: C:/Users/snowflex/AppData/Local/Programs/Git/app/artisan
I always get this error with my heroku laravel 5 when using the artisan command
$ heroku run php /app/artisan
Running php C:/Users/snowflex/AppData/Local/Programs/Git/app/artisan on elvote... starting, run.2723 (Free)
Running php…

bil mason
- 11
- 4
0
votes
5 answers
When I writing php artisan serve 'Class 'reoute' not found'
It was working php artisan serve! After its not working! I didn't understand.Did you any suggest to look for it.
And giving error this

Kemal Karaduman
- 25
- 1
- 5
0
votes
2 answers
artisan migrate:rollback error in laravel 5.3
I'm trying to build a simple migration table and then trying to add a column in the table so following is my migration file:
class AddFlagToEmiTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public…

Nitish Kumar
- 6,054
- 21
- 82
- 148
0
votes
0 answers
Artisan won't make migration without sudo?
Hopefully this is a real simple one. I'm just doing the Laravel quickstart tutorial from their site (https://laravel.com/docs/5.2/quickstart) and it says to enter php artisan make:migration create_tasks_table --create=tasks to create a migration.…

MitchEff
- 1,417
- 14
- 29
0
votes
1 answer
Laravel 5.1 migrate database to hosted mysql
How would I go about doing this (the title is the question), I've changed all my ENV files to my hosted mysql details. When i run php artisan migrate from composer I get the
"denied username@localhost using password yes error".
I've changed the…

Kenziiee Flavius
- 1,918
- 4
- 25
- 57
0
votes
1 answer
How to properly remove a table from folder migration in laravel? (With artisan command)
when you use comand by example:
php artisan make:migration create_tasks_table --create=tasks
it creates a table file and dependency link inside of file
\vendor\composer\autoload_classmap.php
How I can do something like?
php artisan…
user1817927
0
votes
1 answer
php artisan migrate foreign key error
Master table POll
public function up()
{
Schema::create('poll', function (Blueprint $table) {
$table->increments('id');
$table->timestamps();
$table->string('poll_question', 255);
…

G-Rajendra
- 215
- 7
- 17
0
votes
3 answers
Laravel PDO Exception - php artisan migrate
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
I am getting this error when trying to do "php artisan migrate". I have checked all my settings for the port and everything. My problem is the same as in this question:
Connection MySQL…

robk27
- 683
- 1
- 12
- 23