Modules\Doptor\Slideshow\Controllers\Backend\SlideshowController::edit PHP Method

edit() public method

Show the form for editing the specified resource.
public edit ( integer $id ) : Response
$id integer
return Response
    public function edit($id)
    {
        $this->layout->title = 'Edit slide';
        $all_statuses = Slideshow::all_status();
        $this->layout->content = View::make('slideshow::slideshow.create_edit')->with('slide', Slideshow::findOrFail($id))->with('all_statuses', $all_statuses);
    }