uspdev / laravel-comet-theme
comet theme for laravel
Installs: 269
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Language:Blade
This package is auto-updated.
Last update: 2024-11-09 06:33:24 UTC
README
To install the package:
composer require fflch/laravel-comet-theme
Extends laravel-comet-theme master on your template:
@extends('laravel-comet-theme::master')
Sections availables:
- title
- sitename
- menu
- content
- stylesheets (it is a good idea to use: {{ parent() }})
- javascripts (it is a good idea to use: {{ parent() }})
Publish assets using webpack.mix.js:
mix.js('vendor/uspdev/laravel-comet-theme/resources/assets/js/script.js', 'public/js')
.sass('vendor/uspdev/laravel-comet-theme/resources/assets/sass/app.scss', 'public/css');
Using service provider:
php artisan vendor:publish --provider="Uspdev\CometTheme\CometThemeServiceProvider" --tag=assets --force
And then run Mix:
npm run dev
An example that can be inserted in your base.html.twig:
@extends('laravel-comet-theme::master')
@section('title') Sistema @endsection
@section('menu')
<ul>
<li> <a href="#"> Sobre </a> </li>
</ul>
@endsection
@section('content')
Seu código
@endsection