1. Go to this page and download the library: Download sunveloper/teepluss-themes library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// I would advice to do this in theme.php its boot closure!
Asset::group('base')
->add('jquery', 'plugins/jquery/dist/jquery.min.js')
->add('bootstrap', 'plugins/bootstrap/dist/js/bootstrap.min.js', [ 'jquery' ])
->add('bootstrap', 'plugins/bootstrap/dist/css/bootstrap.min.css')
->add('bootbox', 'something::bootbox/bootbox.js', [ 'jquery', 'bootstrap' ])
->add('slimscroll', 'plugins/jquery-slimscroll/jquery.slimscroll.js', [ 'jquery' ])
->add('modernizr', 'plugins/modernizr/modernizr.js')
->add('moment', 'plugins/moment/moment.js')
->add('highlightjs', 'plugins/highlightjs/highlight.pack.js')
->add('highlightjs', 'plugins/highlightjs/styles/zenburn.css')
->add('sassStyle', 'sassStyle.scss');
Asset::group('ie9')
->add('respond', 'plugins/respond/dest/respond.min.js')
->add('html5shiv', 'plugins/html5shiv/dist/html5shiv.js');
// And continue somewhere else
Asset::group('base')
->add('name', 'path');
// Other functions
$group = Asset::group('base');
$group->addFilter('scss', 'Assetic\Filters\ScssphpFilter')
$group->render($type, $combine = true); // type can be either: 'scripts' or 'styles'
$group->getFilters($fileExtension);
$group->get($type, $handle); // $handle is the name of the asset, which u entered as first parameter with add()
$group->getSorted($type); // get all assets of $type sorted by dependency
$group->getAssets($type); // get all assets of $type
$group->getName(); // get the name of group ('base')
// then in the view files you could do
<html>
<head>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
{!! Asset::group('base')->add('style', 'style.css')->render('styles') !!}
</head>
<body>
<div class="container">
<div class="content">
<div class="info">
Using theme: {{ Themes::getActive()->getName() }}.
@if(Themes::getActive()->hasParent())
Using parent theme: {{ Themes::getActive()->getParentTheme()->getName() }}
@endif
</div>
<div class="title">
@section('content')
The layout
@show
</div>
</div>
</div>
<!--[if lt IE 9]>
{!! Asset::group('ie9')->render('scripts') !!}
<![endif]-->
{!! Asset::group('base')->render('scripts') !!}
{!! Asset::script('something::bootbox/bootbox.js') !!}
<!-- Get the URL -->
{!! Asset::url('something::bootbox/bootbox.js') !!}
<!-- Get the URI -->
{!! Asset::uri('something::bootbox/bootbox.js') !!}
<!-- Dump the content -->
Asset::make('bootbox', 'something::bootbox/bootbox.js')->dump()
<!-- Dump some scss converted to css -->
{!! Asset::make('sassStyle', 'sassStyle.scss')->dump() !!}
</body>
</html>