app/Http/Controllers/CommitteeController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param \App\Translator $translator
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $committee = Committee::findOrFail($id);
        if (Auth::user()->id !== $committee->user_id && !$this->are_you_a_super_admin()) {
            return response()->view('errors.404', 'Permission Denied', Response::HTTP_UNAUTHORIZED);
        }
        return view('committee.edit')->with('committee', $committee);
    }
public function edit ( $ id ) { $ committee = Committee :: findOrFail ( $ id ) ; if ( Auth :: user ( ) -> id !== $ committee -> user_id && ! $ this -> are_you_a_super_admin ( ) ) { return response ( ) -> view ( 'errors.404' , 'Permission Denied' , Response :: HTTP_UNAUTHORIZED ) ; } return view ( 'committee.edit' ) -> with ( 'committee' , $ committee ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .