Bootstrap template for laravel with boilerplate, (*1)
bootstrap
folder to resources/views/layouts
. Your resources directory will look like this:, (*2)
bootstrap/assets
to public/assets
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); });