app/Http/Controllers/Admin/ActivityLogsController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\ActivityLog  $activityLog
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(ActivityLog $activitylog)
    {
        if (Gate::denies('manage-cms')) {
            return redirect()->route('admin.activitylogs.index');
        }
        $activitylog->delete();
        return redirect()->route('admin.activitylogs.index');
    }
public function destroy ( ActivityLog $ activitylog ) { if ( Gate :: denies ( 'manage-cms' ) ) { return redirect ( ) -> route ( 'admin.activitylogs.index' ) ; } $ activitylog -> delete ( ) ; return redirect ( ) -> route ( 'admin.activitylogs.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .