Quarx + Laravel 5.2

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Quarx + Laravel 5.2

文章 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;
        });
        //
    }
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: Quarx + Laravel 5.2

文章 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
回覆文章

回到「laravel」