wzulfikar / laravel-bootstrap
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 2
Language:CSS
This package is not auto-updated.
Last update: 2024-12-21 20:08:27 UTC
README
Bootstrap template for laravel with boilerplate
Installation
- Copy the
bootstrap
folder toresources/views/layouts
. Your resources directory will look like this:
- Copy
bootstrap/assets
topublic/assets
- Setup route to test
Route::get('bootstrap/{playground?}',function($playground = 'readme'){
$validator = Validator::make(Request::all(), [
'title' => 'required|unique:posts|max:255',
'body' => 'required',
]);
// Uncomment below code to display template with no error banner
// return view('layouts.bootstrap.playground.'.$playground);
return view('layouts.bootstrap.playground.'.$playground)->withErrors($validator);
});
- visit localhost:8000/bootstrap
(assuming that your laravel is hosted locally at port 8000)