This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
public function films() | |
{ | |
return $this->hasMany('App\Models\Film'); | |
} | |
public function filmsLimited() | |
{ | |
return $this->films()->latest()->nPerGroup('category_id', 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-03-28T18:23:06.169Z","extensionVersion":"v2.9.0"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Routing\Route; | |
use Cake\Routing\Route\Route; | |
use Cake\Utility\Inflector; | |
class SlugRoute extends Route | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src | |
├── Libraries | |
│ ├── SqlClass.php | |
│ └── .. | |
├── Config | |
│ ├── dependencies.php | |
│ └── .... | |
├── Controllers | |
| ├── PagesController.php | |
├── Models |