app/Http/Controllers/Teacher/AttendanceController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store($pivotId,$studentId,Request $request)
    {
        $id = Input::get('att');
        Attendance::findOrFail($id)->isWas();
        return redirect('pivots/'. $pivotId .'/students/'. $studentId. '/attendances');
    }
public function store ( $ pivotId , $ studentId , Request $ request ) { $ id = Input :: get ( 'att' ) ; Attendance :: findOrFail ( $ id ) -> isWas ( ) ; return redirect ( 'pivots/' . $ pivotId . '/students/' . $ studentId . '/attendances' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .