1. Go to this page and download the library: Download karlmonson/laravel-magic 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/ */
karlmonson / laravel-magic example snippets
use KarlMonson\Magic\Traits\AuthenticatesUsers;
class LoginController extends Controller
{
use AuthenticatesUsers;
...
}
use KarlMonson\Magic\Traits\Magical;
class User extends Authenticatable
{
use Magical, Notifiable;
...
}