aldozumaran / laravel-quasar-init
Laravel and Quasar JWT auth
Installs: 83
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 15
Language:JavaScript
Requires
- ext-json: *
- tymon/jwt-auth: ^1.0.0-rc.3
- dev-master
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/css-what-2.1.3
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/ws-6.2.2
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/lodash-4.17.21
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/y18n-4.0.1
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/axios-0.21.1
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/src/resources/views/quasar/admin1.0/acorn-5.7.4
This package is auto-updated.
Last update: 2022-11-29 03:16:11 UTC
README
Laravel & Quasar JWT Auth
Backend
-
Quasar 0.17 - branch 1.0
-
Quasar 1.0 - branch master
composer require aldozumaran/laravel-quasar-init
php artisan vendor:publish --provider="Mz2p\LaravelQuasarInit\LaravelQuasarInitServiceProvider"
php artisan jwt:secret
Edit app/Exceptions/Handler.php
<?php
namespace App\Exceptions;
use Mz2p\LaravelQuasarInit\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
}
Add middleware in app/Http/Kernel.php
'jwt' => \Mz2p\LaravelQuasarInit\Http\Middleware\JWT::class,
Change auth api driver
'guards' => [
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],
Add in routes/api.php
LaravelQuasar::routes();
Edit User model:
<?php
namespace App;
use Mz2p\LaravelQuasarInit\Models\User as JwtUser;
class User extends JwtUser
{
}
And run server
php artisan serve
Frontend
cd resources/modules/admin
npm install
quasar dev
License
This package is open-sourced software licensed under the MIT license.