1 頁 (共 1 頁)

Quarx + Laravel 5.2

發表於 : 2017-02-02 14:15:37
yehlu
https://github.com/YABhq/Quarx
http://laravelacademy.org/post/6477.html

代碼: 選擇全部

composer require yab/quarx:1.4.* 
config/app.php

代碼: 選擇全部

Yab\Quarx\QuarxProvider::class,

代碼: 選擇全部

php artisan vendor:publish --provider="Yab\Quarx\QuarxProvider"
php artisan migrate
app/Http/route.php

代碼: 選擇全部

require base_path('config/quarx.php');
resources/assets/sass/app.scss

代碼: 選擇全部

@import "resources/themes/default/assets/sass/_theme.scss";
app/Http/Kernel.php

代碼: 選擇全部

'quarx' => \App\Http\Middleware\Quarx::class,
'quarx-api' => \App\Http\Middleware\QuarxApi::class,
composer.json

代碼: 選擇全部

"Quarx\\": "quarx/",
app/Providers/AuthServiceProvider.php

代碼: 選擇全部

public function boot(GateContract $gate)
    {
        $this->registerPolicies($gate);
        // for quarx auth
        $gate->define('quarx', function ($user) {
            return (bool) $user;
        });
        //
    }

Re: Quarx + Laravel 5.2

發表於 : 2017-02-03 09:00:04
yehlu

代碼: 選擇全部

composer create-project --prefer-dist laravel/laravel quarx "5.2.*"
cd quarx/
composer require yab/quarx:1.4.*
vi config/app.php 
#add Yab\Quarx\QuarxProvider::class,
php artisan vendor:publish --provider="Yab\Quarx\QuarxProvider"
composer dump-autoload
vi .env 
#setup database
php artisan quarx:setup
http://homestead.app/quarx/dashboard
admin@admin.com
admin