*/ /** * Register route bindings * FYI - Should be done in the service providers */ // Start a new visit Route::bind('patient', function ($value, $route) { return $patient = Patient::find($value); }); // Destroy a billing item Route::bind('billing', function ($value, $route) { return Billing::where('id', $value)->first(); }); // Destroy a client Route::bind('bima', function ($value, $route) { return Bima::find($value); }); /** * Homepage */ Route::get('/', array('as' => 'home', 'uses' => 'HomeController@home')); /** * Authenticated Users */ Route::group(array('before' => 'auth'), function () { /** * CSRF protection group */ Route::group(array('before' => 'csrf'), function () { /** * Create new staff account (POST)
/** * Show the form for editing the specified bima. * * @param int $id * @return Response */ public function edit($id) { $bima = Bima::find($id); return View::make('bimas.edit', compact('bima')); }