Permalink
Browse files

Config::get() 可抓到設定

  • Loading branch information...
1 parent ee4f0fc commit a6efc5f5bba41a79eab09abeeb7384c808d06653 Sam.IO.Hsiao committed Jul 27, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/Http/Controllers/PostController.php
@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use App\Services\PostService;
+use Config;
class PostController extends Controller
{
@@ -29,6 +30,7 @@ public function __construct(PostService $postService)
public function index($id)
{
$data['title'] = $this->postService->showTitle($id, 'no title');
+ Config::get('app.locale');
return view('post.index', $data);
}
}

0 comments on commit a6efc5f

Please sign in to comment.