for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Seo\Http\Routes\Admin;
use Arcanedev\Support\Routing\RouteRegistrar;
use Arcanesoft\Seo\Models\Meta;
/**
* Class MetasRoutes
*
* @package Arcanesoft\Seo\Http\Routes\Admin
* @author ARCANEDEV <[email protected]>
*/
class MetasRoutes extends RouteRegistrar
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Register the bindings.
public static function bindings()
$registrar = new static;
$registrar->bind('seo_meta', function ($id) {
return Meta::query()->findOrFail($id);
});
}
* Define the routes for the application.
public function map()
$this->prefix('metas')->name('metas.')->group(function () {
$this->get('/', 'MetasController@index')
->name('index'); // admin::seo.metas.index
$this->prefix('{seo_meta}')->group(function () {
$this->get('/', 'MetasController@show')
->name('show'); // admin::seo.metas.show