for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Pages\Http\Controllers\Frontarea;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
class PagesController extends Controller
{
public function __invoke(Request $request)
$uri = trim(str_replace('{locale}', '', $request->route()->uri()), " \t\n\r\0\x0B/") ?: '/';
$page = app('rinvex.pages.page')->where('uri', $uri)->where('domain', $request->route()->domain() ?: null)->first();
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.
return view($page->view, compact('page'));
}
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.