Skip to content

Commit

Permalink
Upgrade to Laravel 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemjohn committed Sep 21, 2018
1 parent 9ee5be3 commit 5804a2b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
7 changes: 6 additions & 1 deletion app/Http/Controllers/PublicController.php
Expand Up @@ -29,9 +29,14 @@ public function __construct()
*/
public function home()
{
return $this->response->title('Home')
$page = app(\Litecms\Page\Interfaces\PageRepositoryInterface::class)->getPage('home');
return $this->response
->setMetaKeyword(strip_tags($page->meta_keyword))
->setMetaDescription(strip_tags($page->meta_description))
->setMetaTitle(strip_tags($page->meta_title))
->layout('home')
->view('home')
->data(compact('page'))
->output();
}

Expand Down
18 changes: 14 additions & 4 deletions composer.json
Expand Up @@ -5,10 +5,10 @@
"license": "MIT",
"type": "cms",
"require": {
"php": ">=7.1.3",
"fideloper/proxy": "~4.0",
"laravel/framework": "5.6.*",
"laravel/tinker": "~1.0",
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0",
"lavalite/framework": "~4.0",
"lavalite/theme": "~4.0",
"litecms/block": "~4.0",
Expand Down Expand Up @@ -46,6 +46,16 @@
},
"laravel": {
"dont-discover": [
"anahkiasen/former",
"fideloper/proxy",
"intervention/image",
"laravel/socialite",
"laravel/tinker",
"mcamara/laravel-localization",
"nunomaduro/collision",
"prettus/l5-repository",
"spatie/laravel-activitylog",
"spatie/laravel-backup"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion config/auth.php
Expand Up @@ -163,5 +163,5 @@
],
],

'verify_email' => true,
'verify_email' => false,
];

0 comments on commit 5804a2b

Please sign in to comment.