Laravel Template
This package provide an easy way to use the most popular OpenSource templates on your Laravel Application.
For now this package support only AdminLte 3.0 template, but more templates will be added later.
Installation
You can install the package via composer:
composer require aminetiyal/laravel-template
You need to publish the assets after installation
php artisan vendor:publish --tag template-adminlte-assets
Then publish the config file to edit routes and menus
php artisan vendor:publish --tag template-config
You can edit views and lang files after publish
php artisan vendor:publish --tag template-adminlte-views
php artisan vendor:publish --tag template-lang
This command still in dev:
php artisan template:install --routes --auth --home
Usage
Just extends the view that you want to use between main, login, register, password.reset, password.confirm and password.email:
@extends('template::lte.main')
And the sections are:
@section('pageTitle','test')
@section('content')
@endsection
And also you can use Blade component to generate inputs like:
<x-lte-field-input type="" label="" name="" icon="" required/>
<x-lte-field-textarea label="" name="" icon="" required/>
<x-lte-field-password label="" name="" icon="" required/>
<x-lte-field-checkbox label="" name=""/>
Features
Profile
To enable profile feature you need to publish the ProfileController first,
php artisan vendor:publish --tag template-profile-controller
then register the following routes:
Route::get('/profile', 'Auth\ProfileController@index')->name('profile.index');
Route::put('/profile', 'Auth\ProfileController@update')->name('profile.update');
Route::put('/profile/updatePassword', 'Auth\ProfileController@updatePassword')->name('profile.updatePassword');
Finally you can enable the feature from template.php config file
'routes' => [
'profile' => [
'enabled' => true,
],
],
Also you can update profile routes by changing the following fields:
'routes' => [
'profile' => [
'index' => 'profile.index',
'update' => 'profile.update',
'updatePassword' => 'profile.updatePassword'
],
],
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email aminetiyal@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.