CW
Size: a a a
CW
CW
CW
CW
СШ
АR
АR
АR
Р
АR
A
Р
public function makeModel(){
return ItemModel::make();
}
[Item]
==
{% set restaurant = Item.active(1).first() %}
{% if not restaurant %}
{# return 404 here #}
{% endif %}
АR
A
АR
return $this->controller->run('404');
P
public function onRun()
{
$item = \Acme\Name\Models\Item::where( 'slug', $this->property('slug') )->first();
if (empty($item)) {
return $this->controller->run('404');
}
}
Р
return $this->controller->run('404');
Р
A
A