PHP code example of manzoli2122 / all

1. Go to this page and download the library: Download manzoli2122/all library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

manzoli2122 / all example snippets


Manzoli2122\AAL\AALServiceProvider::class,

'AAL'   => Manzoli2122\AAL\AALFacade::class,

'perfil' => \Manzoli2122\AAL\Middleware\AALPerfil::class,
'permissao' => \Manzoli2122\AAL\Middleware\AALPermissao::class,



use Manzoli2122\AAL\Traits\AALUsuarioTrait;

class User extends Authenticatable
{
    use AALUsuarioTrait;

    ...
}

        use Manzoli2122\AAL\Models\Perfil;
        use App\User;

        $user = new User();
        $user->name = 'Usuario Admnistrador';
        $user->email = '[email protected]';
        $user->password = bcrypt('senha123');
        $user->save();

    	$perfil = new Perfil();
        $perfil->nome = 'Admin';
        $perfil->descricao = 'Super Usuario';
        $perfil->save();

        $user->perfis()->attach($perfil->id);         
 
json
php artisan aal:migration
json
php artisan migrate
json
php artisan db:seed
json
php artisan make:auth
bash
composer dump-autoload