Larvel components and code used for Point Blue Applications
Shared Larvel code for Point Blue applications, (*1)
Install with command composer require pointblue/laravel
, (*2)
In app/Console/Kernel.php:
- add use PointBlue\Laravel\Views\PointBlueViews;
to the top of the page
- add PointBlueViews::class,
to the $commands
array, (*3)
To install a view, use the command php artisan pb:view {viewname}
where {viewname}
is the name of the view that will be copied to the
resources/views
path of your laravel app. Use this list of available
views:, (*4)
footer
- Standard Point Blue footernavbar
- Standard Point Blue navigation barloading
- loading bar, requires uib-progressbardocs
- Documentation View, add to routes.php (see below)release
- Release Notes View, add to routes.php (see below), (*5)
feedback
- zendesk feedback widget - install in <head></head>
, (*6)
The view will be installed to the directory
resources/views/partials/universal
, (*7)
The views will need these environment variables to be set in the .env
file:, (*8)
The following routes are assumed with code in the footer, and should be implemented in app/Http/routes.php
:, (*9)
Route::get('/docs', function () { return view('pb-docs'); })->name('docs'); Route::get('/release', function () { return view('pb-release'); })->name('release');
The stylesheet assets/sass/styles.scss
should be included in your project under /resources/assets/sass
, (*10)