Quarx + Laravel 5.2
發表於 : 2017-02-02 14:15:37
https://github.com/YABhq/Quarx
http://laravelacademy.org/post/6477.html
config/app.php
app/Http/route.php
resources/assets/sass/app.scss
app/Http/Kernel.php
composer.json
app/Providers/AuthServiceProvider.php
http://laravelacademy.org/post/6477.html
代碼: 選擇全部
composer require yab/quarx:1.4.*
代碼: 選擇全部
Yab\Quarx\QuarxProvider::class,
代碼: 選擇全部
php artisan vendor:publish --provider="Yab\Quarx\QuarxProvider"
php artisan migrate
代碼: 選擇全部
require base_path('config/quarx.php');
代碼: 選擇全部
@import "resources/themes/default/assets/sass/_theme.scss";
代碼: 選擇全部
'quarx' => \App\Http\Middleware\Quarx::class,
'quarx-api' => \App\Http\Middleware\QuarxApi::class,
代碼: 選擇全部
"Quarx\\": "quarx/",
代碼: 選擇全部
public function boot(GateContract $gate)
{
$this->registerPolicies($gate);
// for quarx auth
$gate->define('quarx', function ($user) {
return (bool) $user;
});
//
}