PHP code example of tripteki / laravelphp-user

1. Go to this page and download the library: Download tripteki/laravelphp-user 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/ */

    

tripteki / laravelphp-user example snippets


use Tripteki\User\Contracts\Repository\Admin\IUserRepository as IUserAdminRepository;

$userAdminRepository = app(IUserAdminRepository::class);

// $userAdminRepository->create([ "name" => "...", "email" => "...", "password" => "...", ]); //
// $userAdminRepository->delete("identifier"); //
// $userAdminRepository->update("identifier", [ "name" => "...", "email" => "...", "password" => "...", ]); //
// $userAdminRepository->get("identifier"); //
// $userAdminRepository->all(); //

php artisan vendor:publish --tag=tripteki-laravelphp-user-migrations

php artisan migrate