$ composer require iamx/simple-admin
$ php artisan make:auth (for Laravel 5)
$ composer require laravel/ui="1.*" --dev (for Laravel 6.0 and above)
$ php artisan ui:auth (for Laravel 6.0 and above)
Delete the auth folder on resources/views
$ php artisan vendor:publish --provider="iamx\SimpleAdmin\SimpleAdminServicesProvider" --tag="assets"
$ php artisan vendor:publish --provider="iamx\SimpleAdmin\SimpleAdminServicesProvider" --tag="config"
$ php artisan vendor:publish --provider="iamx\SimpleAdmin\SimpleAdminServicesProvider" --tag="authviews"
Now you can edit the config file where you can set you configuration
Folder | File |
---|---|
config | simpleadmin.php |
@extends('simpleadmin::main')
@section('content')
<p>Your content</p>
@endsection
If you want to use the 'bigtitle', just add the variable if not, then remove it
@extends('simpleadmin::main', [
'breadcrumb' => [
'bigtitle' => 'Dashboard',
'items' => [
[
'title' => 'Dashboard',
'url' => '/',
'active' => false
],
[
'title' => 'Home',
'url' => '#',
'active' => true
]
]
]
])
@section('content')
<p>Your content</p>
@endsection
@extends('simpleadmin::main')
@section('content')
<p>Your content</p>
@endsection
@push('styles')
<style>
<!-- Your style -->
</style>
@endpush
@push('scritps')
<script>
<!-- Your script -->
</script>
@endpush
MIT