All Questions
Tagged with laravel-migrations artisan-migrate
7 questions
0
votes
0
answers
119
views
create migration and model together but add prefix to the migration name
I want to create model and migration together like:
php artisan make:model Models/Program -m
However, I want to name migration as pas_programs and not programs
Is there any way?
0
votes
6
answers
4k
views
Laravel Migration: Base table or view already exists
Background
We're using Laravel (5.8) migration for one of our projects from the very beginning. During development we made some migrations. After some time, we found that, some of the migrations are ...
0
votes
1
answer
3k
views
Laravel migrate:refresh Doesn't Work After Composer Update
The command in the title return error message below:
Type error: Too few arguments to function
Illuminate\Database\Schema\Builder::create(), 1 passed in
C:\xampp7\htdocs\assurance-web\vendor\...
1
vote
2
answers
1k
views
How to get all models/migrations names in laravel and add single new column
I have 88 tables in the database and I need one new column in each the table one single solution is I make a migration and write 88 functions for all tables to add the new column as well as 88 to ...
0
votes
2
answers
3k
views
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 ...
0
votes
2
answers
507
views
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 ...
2
votes
1
answer
1k
views
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