wzulfikar/laravel-bootstrap

There is no license information available for the latest version (dev-master) of this package.

dev-master 2015-12-16 08:03 UTC

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

});