app/Http/Controllers/Admin/InformationsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Information  $information
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Information $information)
    {
        $urlalias = Urlalias::all()->first();
        $urlalias = $urlalias->whereRaw("query like 'information_id=" . $information->id . "'")->first();
        $data = [
            'information'   => $information,
            'urlalias'      => $urlalias
        ];
        return view('admin.informations.edit')->with('data', $data);
    }
public function edit ( Information $ information ) { $ urlalias = Urlalias :: all ( ) -> first ( ) ; $ urlalias = $ urlalias -> whereRaw ( " query like 'information_id= " . $ information -> id . " ' " ) -> first ( ) ; $ data = [ 'information' => $ information , 'urlalias' => $ urlalias ] ; return view ( 'admin.informations.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .