FEATURE: add template for hotels

This commit is contained in:
Michal Kváček
2017-03-13 13:27:49 +01:00
parent 8658ea1d39
commit 1f633c3281
9 changed files with 110 additions and 82 deletions
@@ -17,7 +17,7 @@ class AddHotelsCategory implements Process
function handle(Content & $page)
{
if ($page->template == 'staticpages::pageWithHotels') {
$category = Category::where('url', 'hotels')
$category = Category::where('url', 'hotely')
->first();
$page->hotelsCategory = $category;