for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Fort\Http\Controllers\Frontarea;
use Illuminate\Http\Request;
use Rinvex\Fort\Models\Session;
use Cortex\Foundation\Http\Controllers\AuthenticatedController;
class AccountSessionsController extends AuthenticatedController
{
/**
* Show the account sessions.
*
* @return \Illuminate\View\View
*/
public function index()
return view('cortex/fort::frontarea.pages.account-sessions');
}
* Delete the given session.
* @param \Rinvex\Fort\Models\Session $session
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
public function delete(Session $session)
$session->delete();
return intend([
'back' => true,
'with' => ['warning' => trans('cortex/fort::messages.auth.session.deleted', ['sessionId' => $session->getKey()])],
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
]);
* Flush all sessions.
* @param \Illuminate\Http\Request $request
public function flush(Request $request)
$request->user($this->getGuard())->sessions()->delete();
'with' => ['warning' => trans('cortex/fort::messages.auth.session.flushed')],
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.