Пример #1
0
 public function routes()
 {
     return [Route::create('', [])->defaults(['action' => 'recent']), Route::create('<year>(/<month>(/<item>))', ['year' => Route::R_YEAR, 'month' => Route::R_MONTH, 'item' => Route::R_SLUG])->defaults(['action' => 'archive'])->actions(['item' => 'item']), Route::create('category/<name>', ['name' => Route::R_SLUG])->defaults(['action' => 'category'])];
 }
Пример #2
0
 public function routes()
 {
     return [Route::create('<slug>', ['name' => Route::R_SLUG])->defaults(['action' => 'page'])];
 }
Пример #3
0
 public function routes()
 {
     return [Route::create('debug/<action>', ['action' => Route::R_SLUG])->method(false, ['GET'])];
 }