app/Http/Controllers/Tutor/ReportCardsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\ProgressReport  $progressReport
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(ProgressReport $reportcard)
    {
        if (Gate::denies('manage-report-cards')) return redirect()->route('tutor.reportcards.index');
        $reportcard->delete();
        return redirect()->route('tutor.reportcards.index');
    }
public function destroy ( ProgressReport $ reportcard ) { if ( Gate :: denies ( 'manage-report-cards' ) ) return redirect ( ) -> route ( 'tutor.reportcards.index' ) ; $ reportcard -> delete ( ) ; return redirect ( ) -> route ( 'tutor.reportcards.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .