Posts by Odilon Garcez • 36 points
3 posts
-
0
votes3
answers5245
viewsA: Run a specific Migration on Laravel 5.6
When you execute the command php artisan:migrate Laravel reads your files inside the folder database/migrations and then load the classes and create record in the table migrations if the file has…
-
1
votes2
answers591
viewsA: Popular select with database values
If you have a table with unique types and identifiers becomes easy, assuming I have the following table: id descricao 1 Álcool 2 Gasolina 3 Disel and from this have my model created, assuming the…
-
1
votes1
answer41
viewsA: Migrations giving error 42000
You are not setting the name of your table in your Migrations, see that the model according to the Laravel doc. Ex: Schema::create('users', function (Blueprint $table) { $table->increments('id');…