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

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

        return redirect('activity')->with('success', trans('LaravelLogger::laravel-logger.messages.logRestoredSuccessfuly'));
    }
public function restoreClearedActivityLog ( Request $ request ) { $ activities = Activity :: onlyTrashed ( ) -> get ( ) ; foreach ( $ activities as $ activity ) { $ activity -> restore ( ) ; } return redirect ( 'activity' ) -> with ( 'success' , trans ( 'LaravelLogger::laravel-logger.messages.logRestoredSuccessfuly' ) ) ; }
Restore the specified resource from soft deleted storage.

@param Request $request

@return \Illuminate\Http\Response
Restore the specified resource from soft deleted storage .