wzulfikar / laravel-bootstrap

Bootstrap template for laravel with boilerplate
2 stars 0 forks source link

its not working on me #1

Open mardianto opened 7 years ago

mardianto commented 7 years ago

u can show view this demo? or youtube . css & js not run? route.php and laravelbootstrapserviceprovider.php ? where must paste?

wzulfikar commented 7 years ago

paste to resources/views/layouts screen shot 2017-02-24 at 5 12 33 am

if you've no route.php, try find routes/web.php and paste this inside it:

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);

});

and then visit {your-url}/bootstrap