/** * Bootstrap the application services. * * @return void */ public function boot() { $this->publishes([__DIR__ . '/assets' => public_path('assets')], 'larassets'); $this->publishes([__DIR__ . '/custom' => public_path('custom')], 'custom-larassets'); $this->loadViewsFrom(__DIR__ . '/views', 'larassets'); Html::component('googleFont', 'larassets::assets.google-font', ['font' => 'Roboto', 'sizes' => '100,300,400,700']); Html::component('bootstrapAsset', 'larassets::assets.bootstrap', ['type' => 'css', 'version' => '3.3.6', 'theme' => null]); Html::component('jqueryAsset', 'larassets::assets.jquery', ['version' => '2.2.0']); Html::component('fontAwesomeAsset', 'larassets::assets.font-awesome', ['version' => '4.5.0']); Html::component('customAsset', 'larassets::custom.custom', ['type' => 'css']); }
/** * Bootstrap the application services. * * @return void */ public function boot() { $this->loadViewsFrom(__DIR__ . '/views', 'larastrap'); Form::component('fhOpen', 'larastrap::form-horizontal.open', ['attributes' => []]); Form::component('fhClose', 'larastrap::form-horizontal.close', []); Form::component('fhText', 'larastrap::form-horizontal.text', ['name', 'label', 'value' => null, 'attributes' => [], 'size' => [4, 6]]); Form::component('fhPassword', 'larastrap::form-horizontal.password', ['name', 'label', 'attributes' => [], 'size' => [4, 6]]); Form::component('fhSelect', 'larastrap::form-horizontal.select', ['name', 'label', 'value' => [], 'selected' => null, 'attributes' => [], 'size' => [4, 6]]); Form::component('fhSubmit', 'larastrap::form-horizontal.submit', ['text' => 'Submit', 'class' => 'default', 'icon' => 'check', 'size' => [4, 6]]); Form::component('fhDateTime', 'larastrap::form-horizontal.datetime', ['name', 'label', 'id' => null, 'value' => null, 'attributes' => [], 'size' => [4, 6]]); /* * Custom components... */ Html::component('customPageTitle', 'larastrap::custom.page-title', ['title' => 'Page title']); }