app/Http/Controllers/Admin/todoController.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()
    {
        $todo = ToDo::all();
        $date = Carbon::now();
        $staff = Staff::all();
        $student = Student::all();
        $teacher = Teacher::all();
        $user = User::all();
        return view('Admin.ToDo.add',compact('todo','date','staff','student','teacher','user'));
    }
public function create ( ) { $ todo = ToDo :: all ( ) ; $ date = Carbon :: now ( ) ; $ staff = Staff :: all ( ) ; $ student = Student :: all ( ) ; $ teacher = Teacher :: all ( ) ; $ user = User :: all ( ) ; return view ( 'Admin.ToDo.add' , compact ( 'todo' , 'date' , 'staff' , 'student' , 'teacher' , 'user' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .