app/Http/Controllers/AdminUsersController.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()
    {
        $status = ActiveStatus::pluck('name','id');
        $roles = Role::pluck('name','id');
        return view('admin.users.create',compact('roles','status'));
    }
public function create ( ) { $ status = ActiveStatus :: pluck ( 'name' , 'id' ) ; $ roles = Role :: pluck ( 'name' , 'id' ) ; return view ( 'admin.users.create' , compact ( 'roles' , 'status' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//get roles and status from the database