Skip to content

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mylinex Administration

Getting started

Installation

Require the mylinex/administration package in your composer.json and update your dependencies:

composer require mylinex/administration

Configuration

The defaults are set in config/app.php. Publish the config to copy the file to your own config:

php artisan vendor:publish --provider="Administration\AdministrationServiceProvider"

Please add this route to your web.php

Route::get('/', function () {
    return view('Administration::auth.login');
});

Add this line to DatabaseSeeder.php in /database/seeds/

$this->call([
    PermissionsTableSeeder::class,
    MenuTableSeeder::class,
    RolesTableSeeder::class,
    UsersTableSeeder::class
]);

** If your application is with laravel 9 and PHP 8

Change app/Http/Middleware/TrustProxies.php

protected $headers = Request::HEADER_X_FORWARDED_ALL;

//to 

protected $headers = 
    Request::HEADER_X_FORWARDED_FOR |
    Request::HEADER_X_FORWARDED_HOST |
    Request::HEADER_X_FORWARDED_PORT |
    Request::HEADER_X_FORWARDED_PROTO |
    Request::HEADER_X_FORWARDED_AWS_ELB;

Migrate database & seed

php artisan migrate

php artisan db:seed

Run development server

php artisan serve

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages