July 2018
Intermediate to advanced
420 pages
8h 46m
English
Now, let's create the content of our migration files. Remember that migration files are the simplest and fastest way to create our database schemes using Laravel:
<?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;class CreateBuildersTable extends Migration{ /** * Run the migrations. * * @return void */ public function up() { Schema::create('builders', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->text('description'); $table->string('location'); $table->timestamps(); ...Read now
Unlock full access