app/Http/Controllers/Admin/PaychequesController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Paycheque  $paycheque
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Paycheque $paycheque)
    {
        if (Gate::denies('manage-payments'))
        {
            return redirect()->route('admin.paycheques.index');
        }
        $paycheque->delete();
        return redirect()->route('admin.paycheques.index');
    }
public function destroy ( Paycheque $ paycheque ) { if ( Gate :: denies ( 'manage-payments' ) ) { return redirect ( ) -> route ( 'admin.paycheques.index' ) ; } $ paycheque -> delete ( ) ; return redirect ( ) -> route ( 'admin.paycheques.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .