app/Http/Controllers/Tutor/ReportCardsController.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()
    {
        $myuser = Auth::User();
        $students = Array();
        foreach($myuser->tutor_assignments()->get() as $assignments)
        {
            $students[] = $assignments->student();
        }
        $students = array_unique($students);
        return view('tutor.reportcards.create') -> with('students', $students);
    }
public function create ( ) { $ myuser = Auth :: User ( ) ; $ students = Array ( ) ; foreach ( $ myuser -> tutor_assignments ( ) -> get ( ) as $ assignments ) { $ students [ ] = $ assignments -> student ( ) ; } $ students = array_unique ( $ students ) ; return view ( 'tutor.reportcards.create' ) -> with ( 'students' , $ students ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .