Download the PHP package amiranbari/metronic without Composer
On this page you can find all versions of the php package amiranbari/metronic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package metronic
Metronic
1) Config your database in .env.
2) Run:
composer require amiranbari/metronic:dev-master
Run: php artisan vendor:publish
- Then select 1.
4) Change locale to fa
in config/app.php
5) Add this to your Providers
in config/app.php
App\Providers\MetronicServiceProvider::class,
6) Add this to your Aliases
in config/app.php
Laravel 8
Put this in User.php
in Models directory
use Spatie\Permission\Traits\HasRoles;
In User class:
use HasFactory, Notifiable, HasRoles;
Add level
to fillable
fields.
Change composer.json
autoload section like below"
Run: composer dump-autoload
Add these seeders call in DatabaseSeeder.php
:
-
php artisan migrate:fresh --seed
orphp artisan migrate --seed
Add these into guards in
auth.php
:
7) Put these in Kernel.php
in Http directory
use App\Http\Middleware\Panel\CheckPermission;
'permission' => CheckPermission::class,
in routeMiddleware
8) Change these in Authenticate.php
in redirectTo functions
return route('panel.login');
php artisan serve
Go to 127.0.0.1:8000/panel/login
Email: [email protected]
Password: 12345678
Enjoy it.