Home /Archive by Category "Laravel"

Extending the master layout in blade

We will now create a page that extends the master layout.  create a new page page.blade.php in /resources/views/page.blade.php add the following code HERE, @extends(‘layouts.master’) extends the master layout @section(‘title’, ‘Page Title’) sets the value of the title section. @section(‘sidebar’) defines a sidebar section in the child page of master layout @parent displays the contents of … Continue reading

Generating Migrations

To create a migration, use the make:migration Artisan command: The new migration will be placed in your database/migrations directory. Each migration file name contains a timestamp which allows Laravel to determine the order of the migrations. The –table and –create options may also be used to indicate the name of the table and whether the … Continue reading

Database: Migrations

Introduction The Laravel Schema class provides a database agnostic way of manipulating tables. It works well with all of the databases supported by Laravel, and has a unified API across all of these systems. Creating & Dropping Tables To create a new database table, the Schema::create method is used: The first argument passed to the … Continue reading

Create Schema and table in Laravel

Create the table structure in laravel Migrate the table in database make:auth Create auth classes for the application make:console Create a new Artisan command make:controller Create a new resource controller class make:filter Create a new route filter class make:migration Create a new migration file make:provider Create a new service provider class make:request Create a new … Continue reading