Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f6feb8a818
|
@ -7,6 +7,15 @@ use Illuminate\Http\Response;
|
||||||
|
|
||||||
class AboutController extends Controller
|
class AboutController extends Controller
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->middleware(["auth"]);
|
||||||
|
$this->middleware(["lang"]);
|
||||||
|
}
|
||||||
|
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
{
|
{
|
||||||
return Response::detect("about.index");
|
return Response::detect("about.index");
|
||||||
|
|
|
@ -15,6 +15,7 @@ class NewsController extends Controller
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->middleware([ "auth" ]);
|
$this->middleware([ "auth" ]);
|
||||||
|
$this->middleware(["lang"]);
|
||||||
|
|
||||||
$this->middleware([ "check.auth:news.list" ])->only("index");
|
$this->middleware([ "check.auth:news.list" ])->only("index");
|
||||||
$this->middleware([ "check.auth:news.show" ])->only("show");
|
$this->middleware([ "check.auth:news.show" ])->only("show");
|
||||||
|
|
Loading…
Reference in New Issue