templates/controller/controllerTemplate.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\_MODEL  $_RMODEL
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(_EDIT_REQUEST $_RMODEL)
    {
        $data['title'] = 'Update _MODEL';
        $data['active'] = (object) [
            'link' => strtolower('_MODEL'),
            'parent' => strtolower('_MODEL')
        ];
        $data['breadcrumb'] = [
            [
                'page' => 'All ' . ucfirst('_MODEL'),
                'url' => '/admin/_RMODEL',
                'active' => false
            ],
            [
                'page' => 'Update ' . ucfirst('_MODEL'),
                'url' => '',
                'active' => true
            ]
        ];
        $data['item'] = $_RMODEL;
        return view('admin.' . strtolower('_MODEL') . '.edit', $data);
    }
public function edit ( _EDIT_REQUEST $ _RMODEL ) { $ data [ 'title' ] = 'Update _MODEL' ; $ data [ 'active' ] = ( object ) [ 'link' => strtolower ( '_MODEL' ) , 'parent' => strtolower ( '_MODEL' ) ] ; $ data [ 'breadcrumb' ] = [ [ 'page' => 'All ' . ucfirst ( '_MODEL' ) , 'url' => '/admin/_RMODEL' , 'active' => false ] , [ 'page' => 'Update ' . ucfirst ( '_MODEL' ) , 'url' => '' , 'active' => true ] ] ; $ data [ 'item' ] = $ _RMODEL ; return view ( 'admin.' . strtolower ( '_MODEL' ) . '.edit' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .