Build Laravel Web Applications
faster than ever
Laravel is an incredible framework built by Taylor Otwell that combines powerful web development features, extensive documentation and an active community .In this tutorial we are going to build a fullstack application complete with an admin panel using laravelDash.
What is Laravel Dashboard ?
Developers are lazy. No, I’m not kidding — they work hard to create systems that help them avoid more work in the future. Especially, repetitive work. And there are quite extreme examples now — we don’t need to write code anymore; it is being generated for us. Laravel Dashboard or LaravelDash provides a powerful user interfaces for CRUD (create, read, update, delete) operations for Laravel applications. It offers additonal features including Charts , Panel Management , Settings , Payment System and Super Simple WYSIWYG …
Minute 1: Create the Laravel application
we assume that you have been able to set up your development environment. There are two ways to install Laravel project
- Via Laravel Installer
- Via Composer Create-Project
I will be using via composer to create new project
composer create-project --prefer-dist laravel/laravel blog
Laravel provides a quick way to scaffold all of the routes and views you need for authentication using one simple command:
php artisan make:auth
Minute 2: Configuration
Firstly, make sure to create a new database and add your database credentials to your .env file :
Minute 3: Install and Configure laravelDash
LaravelDash is super easy to install. After creating your new Laravel application you can include the laravelDash package with the following command:
composer require yal/laraveldash
LaravelDash will automatically register its service provider if you are using Laravel >=5.5. If you are using LaravelDash with Laravel 5.3 or 5.4, add LaravelDash’s service provider in your application’s config/app.php file:
* Laravel dashboard Service Provider
Next, you need to publish the laravelDash configuration file:
php artisan vendor:publish --provider="Yasser\LaravelDashboard\DashboardServiceProvider" --tag="config"
Minute 4: Running Migrations and Defining Relationships
Generated migrations are regular Laravel migrations , Run the migrations with:
php artisan migrate
Database tables are often related to one another. For example, a blog post may have many comments, or an order could be related to the user who placed it. Eloquent makes managing and working with these relationships easy. so go to App\User.php and add UserRelation
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
Minute 5:Yah! You’re on LaravelDash !
To see it, you need to start a web server on your development machine. You can do this by running the following command:php artisan serve and then head to http://localhost:8000/Dashboard
Thanks for reading! you can support the laravelDash project directly by r giving it a star on github