Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What are you expecting from next version of Lar...

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

What are you expecting from next version of Laravel?

New features from Laravel PHP Framework 5.1

phpXperts meetup-01 presentation

Avatar for Nuruzzaman Milon

Nuruzzaman Milon

May 30, 2015
Tweet

More Decks by Nuruzzaman Milon

Other Decks in Programming

Transcript

  1. class VerifyRoles{ public function handle($request, $next, $role = null){ //your

    logic goes here } } Route::get('/dashboard', ['middleware' => 'role:admin', function(){ return view('dashboard'); } ]);
  2. // file: database/factories/ModelFactory.php $factory->define('App\User', function ($faker) { return [ 'name'

    => $faker->name, 'email' => $faker->email, 'password' => str_random(10), 'remember_token' => str_random(10), ]; });