bantenprov/siswa-pendaftaran

Siswa Pendaftaran

dev-master 2018-05-09 14:00 UTC

This package is not auto-updated.

Last update: 2024-12-17 18:28:49 UTC


README

siswa-pendaftaran

install via composer

composer require bantenprov/siswa-pendaftaran:dev-master

module ini membutuhkan data-akademik

install module data-akademik

composer require bantenprov/data-akademik:dev-master

edit config/app.php ( data-akademik )

'providers' => [

    /*
     * Package Service Providers...
     */
    Laravel\Tinker\TinkerServiceProvider::class,
    //....
    Bantenprov\DataAkademik\DataAkademikServiceProvider::class,

edit config/app.php ( siswa-pendaftaran )

'providers' => [
    Laratrust\LaratrustServiceProvider::class,
    Bantenprov\SiswaPendaftaran\SiswaPendaftaranServiceProvider::class,
'aliases' => [
    'Laratrust'   => Laratrust\LaratrustFacade::class,

artisan command

php artisan vendor:publish --tag=siswa-pendaftaran-assets --force
php artisan laratrust:role
php artisan laratrust:permission
php artisan bantenprov:siswa-pendaftaran-install

edit model app/User.php

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

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

jika role siswa belum ada silahkan tambahkan role siswa pada vue-trust > role

name = siswa
display name = Siswa
description = role untuk siswa

add to .env

DEFAULT_USER_ROLE=siswa
CHECK_NOMOR_UN=true