public function destroyActivityLog(Request $request)
    {
        $activities = Activity::onlyTrashed()->get();
        foreach ($activities as $activity) {
            $activity->forceDelete();
        }

        return redirect('activity')->with('success', trans('LaravelLogger::laravel-logger.messages.logDestroyedSuccessfuly'));
    }
public function destroyActivityLog(Request $request)
    {
        $activities = Activity::onlyTrashed()->get();
        foreach ($activities as $activity) {
            $activity->forceDelete();
        }

        return redirect('activity')->with('success', trans('LaravelLogger::laravel-logger.messages.logDestroyedSuccessfuly'));
    }
public function destroyActivityLog ( Request $ request ) { $ activities = Activity :: onlyTrashed ( ) -> get ( ) ; foreach ( $ activities as $ activity ) { $ activity -> forceDelete ( ) ; } return redirect ( 'activity' ) -> with ( 'success' , trans ( 'LaravelLogger::laravel-logger.messages.logDestroyedSuccessfuly' ) ) ; }
Destroy the specified resource from storage.

@param Request $request

@return \Illuminate\Http\Response
Destroy the specified resource from storage .