| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1.0007 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Arcanesoft\Seo\Http\Routes\Admin; |
||
| 21 | 16 | public function map() |
|
| 22 | { |
||
| 23 | $this->bind('seo_meta', function ($id) { |
||
| 24 | return Meta::findOrFail($id); |
||
| 25 | 16 | }); |
|
| 26 | |||
| 27 | $this->prefix('metas')->name('metas.')->group(function () { |
||
| 28 | 16 | $this->get('/', 'MetasController@index') |
|
| 29 | 16 | ->name('index'); // admin::seo.metas.index |
|
| 30 | |||
| 31 | 16 | $this->prefix('{seo_meta}')->group(function () { |
|
| 32 | 16 | $this->get('/', 'MetasController@show') |
|
| 33 | 16 | ->name('show'); // admin::seo.metas.show |
|
| 34 | 16 | }); |
|
| 35 | 16 | }); |
|
| 36 | 16 | } |
|
| 37 | } |
||
| 38 |