zulhamfendhy/adminlte

Admin LTE by zulhamfendhy

1.1.0 2024-06-12 11:40 UTC

This package is auto-updated.

Last update: 2025-04-29 01:27:43 UTC


README

PHP Composer Downloads Latest Stable Version License

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:

  1. Create a folder vendor in the folder views
  2. Create a folder adminlte in the folder vendor
  3. Create a file blade.php according to what you want to change

Dev Test

./vendor/bin/phpunit tests