zulhamfendhy / adminlte
Admin LTE by zulhamfendhy
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires (Dev)
- phpunit/phpunit: ^9.6
README
Admin LTE by zulhamfendhy
Installation
composer require zulhamfendhy/adminlte
php artisan vendor:publish --tag=zulhamfendhy-adminlte
Usage
Create a base template view. Example: base.blade.php
@extends('adminlte::base')
Create a view. Example: dashboard.blade.php and extend the base layout.
@extends('base') @section('page_name') Dashboard @endsection @section('body') write a code @endsection
For add a stylesheet or javascript, use tag @push()
@push('stylesheets') write a stylesheet @endpush @push('javascripts') write a javascript @endpush
Full code for dashboard.blade.php
@extends('base') @push('stylesheets') write a stylesheet @endpush @section('page_name') Dashboard @endsection @section('body') write a code @endsection @push('javascripts') write a javascript @endpush
Customize the layout
You can custom the layout. Tutorial:
- Create a folder
vendor
in the folderviews
- Create a folder
adminlte
in the foldervendor
- Create a file blade.php according to what you want to change
Dev Test
./vendor/bin/phpunit tests