app/Http/Controllers/PageController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Page  $page
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Page $page)
    {
        $pages = Page::parentPages()->get();
        return view('backend.pages.form', ['pages' => $pages], $this->data($page));
    }
public function edit ( Page $ page ) { $ pages = Page :: parentPages ( ) -> get ( ) ; return view ( 'backend.pages.form' , [ 'pages' => $ pages ] , $ this -> data ( $ page ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .