app/Http/Controllers/AdminEventController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $homepages = Homepage::all();
        $event_statuses = EventStatus::pluck('name','id')->all();
        $users = User::where('role_id',config('status.role_Verwalter'))->pluck('username','id')->all();
        return view('admin.events.create', compact('event_statuses', 'homepages', 'users'));
    }
public function create ( ) { $ homepages = Homepage :: all ( ) ; $ event_statuses = EventStatus :: pluck ( 'name' , 'id' ) -> all ( ) ; $ users = User :: where ( 'role_id' , config ( 'status.role_Verwalter' ) ) -> pluck ( 'username' , 'id' ) -> all ( ) ; return view ( 'admin.events.create' , compact ( 'event_statuses' , 'homepages' , 'users' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//