bantenprov/form-auth

Nama Prestasi

dev-master 2018-05-09 13:50 UTC

This package is not auto-updated.

Last update: 2024-04-23 15:20:01 UTC


README

form-auth

Install via composer

$ composer require bantenprov/form-auth:dev-master

Edit config/app.php

'providers' => [

    //......
    Bantenprov\FormAuth\FormAuthServiceProvider::class,

artisan command

$ php artisan vendor:publish --tag=form-auth-assets --force && php artisan migrate
$ php artisan form-auth:setup

edit app/User.php

    /**
     * The accessors to append to the model's array form.
     *
     * @var array
     */
    protected $appends = [
        'photo_url',

        //=========
        'redirect',
    ];

    /* .................. */

    /**
     * Get the redirect attribute.
     *
     * @return string
     */
    public function getRedirectAttribute()
    {
        return 'siswa.pendaftaran-wizard';
    }

edit .evn

DEFAULT_USER_ROLE=siswa

add new role

Vue trust > Role > [+]

+-------+--------------+
|  name | display name |
+-------+--------------+
| siswa |     Siswa    |
+-------+--------------+