wzulfikar/laravel-bootstrap

Downloads

6

Stars

2

Version

laravel-bootstrap

Bootstrap template for laravel with boilerplate

Installation

  • Copy the bootstrap folder to resources/views/layouts. Your resources directory will look like this:

image

  • Copy bootstrap/assets to public/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);

});
wzulfikar

Author

wzulfikar