public function edit($id = null)
    {
        set_meta('title', 'Write a Page');

        $content = Content::page()->where('id', $id)->firstOrFail();

        $this->authorize('update', $content);

        return view('orchestra/story::admin.editor', [
            'content' => $content,
            'url'     => handles("orchestra::storycms/pages/{$content->getAttribute('id')}"),
            'method'  => 'PUT',
        ]);
    }
public function edit($id = null)
    {
        set_meta('title', 'Write a Page');

        $content = Content::page()->where('id', $id)->firstOrFail();

        $this->authorize('update', $content);

        return view('orchestra/story::admin.editor', [
            'content' => $content,
            'url'     => handles("orchestra::storycms/pages/{$content->getAttribute('id')}"),
            'method'  => 'PUT',
        ]);
    }
public function edit ( $ id = null ) { set_meta ( 'title' , 'Write a Page' ) ; $ content = Content :: page ( ) -> where ( 'id' , $ id ) -> firstOrFail ( ) ; $ this -> authorize ( 'update' , $ content ) ; return view ( 'orchestra/story::admin.editor' , [ 'content' => $ content , 'url' => handles ( "orchestra::storycms/pages/{$content->getAttribute('id')}" ) , 'method' => 'PUT' , ] ) ; }
Edit a page.

@param  int  $id

@return mixed
Edit a page .