Fix issue accessing /admin

This commit is contained in:
Jonny Barnes 2017-03-03 14:56:43 +00:00
parent c13a473b79
commit 893cfe978b
3 changed files with 7 additions and 3 deletions

View file

@ -1,13 +1,14 @@
<?php
namespace App\Http\Controllers;
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class HomeController extends Controller
{
public function welcome()
{
return view('welcome', ['name' => config('admin.user')]);
return view('admin.welcome', ['name' => config('admin.user')]);
}
}

View file

@ -1,5 +1,8 @@
# Changelog
## Version {next}
- Fix issue when accessing /admin
## Version 0.3.2 (2017-03-03)
- Remove route closures to allow route:cache-ing

View file

@ -30,7 +30,7 @@ Route::group(['domain' => config('url.longurl')], function () {
'namespace' => 'Admin',
'prefix' => 'admin',
], function () {
Route::get('/', 'HomeConrtoller@welcome');
Route::get('/', 'HomeController@welcome');
//Articles
Route::group(['prefix' => 'blog'], function () {