app/Http/Controllers/Teacher/AttendanceController.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()
    {
        $attendance = $this->attendance->all();
        return view('teacher.attendances.create', compact('attendance'));
    }
public function create ( ) { $ attendance = $ this -> attendance -> all ( ) ; return view ( 'teacher.attendances.create' , compact ( 'attendance' ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .