1. Go to this page and download the library: Download bhoeting/navigation-builder library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// app/database/migrations/CreateMasterNavItemsTable.php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNavigationTable extends Migration {
public function up()
{
Schema::create('master_nav_items', function(Blueprint $table)
{
$table->increments('id');
$table->string('name');
$table->string('url')->nullable();
$table->string('route')->nullable();
$table->string('text')->nullable();
});
}
public function down()
{
Schema::drop('master_nav_items');
}
}