Lifecycle Atom framework

1. First things

Source: internet
Source: internet
$ composer require cuongnd88/lara-guardian
<?php
// config/app.php
return [
// ...
'providers' => [
// ...
Cuongnd88\LaraGuardian\LaraGuardianServiceProvider::class,
]
// ...
];
php artisan vendor:publish…

Source: internet

PHP Traits

Source: techbeamers.com

Source: Internet
$ composer require cuongnd88/jutility
php artisan vendor:publish --provider="Cuongnd88\Jutility\JutilityServiceProvider"
Source: Internet
$ composer require cuongnd88/jutility
php artisan vendor:publish --provider="Cuongnd88\Jutility\JutilityServiceProvider"
Source: Internet

Source: Internet
Route::get("/notify", function(){
return App\Models\User::find(1)->notify(new App\Authentication\SendOtp('mail', 4, 10));
});

Route::get("/auth-otp/{otp}", function(){
return App\Models\User::authByOtp(request()->otp, '84905279285');
});

Route::get("/check-otp/{otp}", function(){
return App\Models\User::find(1)->checkOtp(request()->otp);
});

Installation

Ngo Dinh Cuong

Once you stop learning you start dying (4S: Search — Summarize — Share — Smile)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store