PHP code example of equidna / caronte-client

1. Go to this page and download the library: Download equidna/caronte-client 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/ */

    

equidna / caronte-client example snippets


php artisan vendor:publish --tag=caronte:roles

php artisan migrate

php artisan vendor:publish --tag=caronte:views

php artisan vendor:publish --tag=caronte:migrations

php artisan vendor:publish --tag=caronte:assets

php artisan vendor:publish --tag=caronte

php artisan caronte:notify-client-configuration

Route::put(
  '/dashboard',
  function (string $id) {
    // ...
  }
)->middleware('Caronte.ValidateSession');

Route::put(
  '/users',
  function (string $id) {
    // ...
  }
)->middleware('Caronte.ValidateRoles:administrator,manager');