python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
function (Blueprint $table), Is $table a variable/property / object??? Which class's object/ variable/property?
Schema::create('flights', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('airline'); $table->timestamps(); });
Riyad Mahmud
Votes: 0
Answers: 1
How to change the foreign key reference table with Migration
I had migrated a migration in Laravel which was like this:
$table->unsignedBigInteger('rel_seller_id')->nullable();
$table->foreign('rel_seller_id')->references('id')->on('seller');
No...
japose7523
Votes: 0
Answers: 2
Unable to alter table in using route in Laravel 8
I have a migration in Laravel 8 and already migrate. I was trying to alter the table and make nullable to one of the fields on that table.
I have run the following command
composer require doctrin...
Glen D P Maramis
Votes: 0
Answers: 1
How can I use one column as multi foreign key in Laravel?
I want to use one column as a foreign key for two different tables. How can I do that on Laravel?
Schema::create('order_details', function (Blueprint $table) {
$table->id();
$table->unsi...
Kusursuz
Votes: 0
Answers: 1