https://github.com/fflch/laravel-comet-theme
laravel template for comet project
https://github.com/fflch/laravel-comet-theme
Last synced: over 1 year ago
JSON representation
laravel template for comet project
- Host: GitHub
- URL: https://github.com/fflch/laravel-comet-theme
- Owner: fflch
- Created: 2018-09-08T13:56:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-08T22:39:46.000Z (about 5 years ago)
- Last Synced: 2025-01-16T00:56:16.735Z (over 1 year ago)
- Language: Blade
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel theme for comet project
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')
@endsection
@section('content')
Seu código
@endsection