Best laravel framework open-source packages.

Laravel sentinel example

Demo interaction for authentication & authorization library using the Sentinel, this used datatables yajra, adminLTE, and multi languanges. Perfect for lesson the sentinel authentication
Updated 7 months ago

Laravel Framework 5.5, Sentinel, Datatables

Starter Site based on on Laravel 5.5

Features:

  • Laravel 5.5.x
  • Back-End
    • Dashboard.
    • Role management
    • User management
  • Front-end
    • User Login
    • User Registration
    • User Activation
    • User Forgot Password
    • User Change Password
  • Packages included:
    • Sentinel
    • AdminLTE-2.4.3
    • Datatables Bundle

Requirements

PHP >= 7.0.0
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension

How to install:


Step 1: Get the code - Download the repository

https://github.com/mabuak/laravel-sentinel-example/archive/master.zip 

OR Clone this repository:
 https://github.com/mabuak/laravel-sentinel-example.git

Extract it in www(or htdocs if you using XAMPP or MAMP) folder and put it for example in sentinel-example folder.

Step 2: Use Composer to install dependencies

Laravel utilizes Composer to manage its dependencies. First, download a copy of the composer.phar. Once you have the PHAR archive, you can either keep it in your local project directory or move to usr/local/bin to use it globally on your system. On Windows, you can use the Composer Windows installer. Open terminal and go to the project foleder Then run:

composer dump-autoload
composer install --no-scripts

Step 3: Create database

If you finished first three steps, now you can create database on your database server(MySQL). You must create database with utf-8 collation(uft8_general_ci), to install and application work perfectly. Just go to the phpmyadmin and create the new database After that, copy .env.example and rename it as .env and put connection and change default database connection name, only database connection, put name database, database username and password.

Step 4: Install

Now that you have the environment configured, you need to create a database configuration for it. For create database tables use this command:

php artisan migrate

And to initial populate database use this:

php artisan db:seed

If you install on your localhost in folder sentinel-example, you can type on web browser:

http://localhost/sentinel-example/public

OR Run the command " php artisan serve ", and open on the browser the url you get in console :):

Step 5: Start Page

You can now login to admin part of Laravel Framework 5.5 Site

Troubleshooting

RuntimeException : No supported encrypter found. The cipher and / or key length are invalid.

php artisan key:generate

Site loading very slow

composer dump-autoload --optimize

OR

php artisan dump-autoload

Don't forgot to add your smtp_email in .env file

If you don't have smtp access, you can comment the code in AuthController in line 128 and 229, and uncomment line 133 and line 234

Need a UI?

The package doesn't come with any screens out of the box, you should build that yourself. To get started check out this demo link

Email : admin@admin.com
Password : password

License

This is free software distributed under the terms of the MIT license

Additional information

Inspired by Laravel 5.5 and based on: AdminLTE Dashboard Sentinel Authentication Laravel Datatables laravel-sentinel-crud-starter