app/Http/Controllers/MembersController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function member()
    {
        $persons = Member::$persons;
        $genders = Member::$genders;
        $ages = Member::$ages;
        $types = Member::$types;        
        return view('members.member',compact('persons','genders','ages','types'));      
    }
public function member ( ) { $ persons = Member :: $ persons ; $ genders = Member :: $ genders ; $ ages = Member :: $ ages ; $ types = Member :: $ types ; return view ( 'members.member' , compact ( 'persons' , 'genders' , 'ages' , 'types' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//第一引数のresources/members/ディレクトリ内のmember.bladeに第二引数のcompactの値を受け渡す