EasyAdmin is a great admin to use multi authentication,multi language,multi email template. Don't create new admin panel when you start a new project just use it.
# clone the repo
composer create-project yousry943/easyadmin
# go into app's directory
cd easyadmin
# run database migration
php artisan migrate
#run database seed
php artisan db:seed
Copy file ".env.example", and change its name to ".env". Then in file ".env" replace this database configuration:
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=
# start local server
php artisan serve
Open your browser with address: http://localhost:8000/public/admin/login
Click "Login" on sidebar menu and log in with credentials:
This user has roles: super admin_
- E-mail: manager@manager.com
- Password: 123456
This user has roles: without any permation _
- E-mail: admin@admin.com
- Password: 123456
Open your browser with address: http://localhost:8000/public/login
Click "Login" on sidebar menu and log in with credentials:
- E-mail: user@user.com
- Password: 123456
For use email function
will find founction in this path :
-
app\Helpers\Helper.php For calling founction :
-
use Helper;
-
$data = array('blade-path' => 'email.EmailTemplate', 'to'=>$request->to, 'from'=>'info@domain.net', 'cc'=>$request->cc, 'subject'=>$request->subject, 'body'=>$request->body, );
-
Helper::sendmail($data);
Allows you to create, edit, delete and reorder user roles.
Admin have user and admin authentication.
Admin allow you to create webiste have many languages.
Admin allow you to create mulity mail template and its have one helper function to call it from any controller
EasyAdmin is an open source project and completely free to use. You can support development by connecting to me on Gmail