PHP code example of kineticamobile / lumki

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

    

kineticamobile / lumki example snippets

 bash
$ php artisan lumki:setup
 bash
$ php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
 bash
$ php artisan vendor:publish --tag=impersonate
 bash
$ php artisan migrate
 php
Lumki::insertLineBefore(
        base_path("routes/web.php"),
        "Route::get('/', function () {",
        "Route::impersonate();\n"
);
 php
Lumki::insertLineBefore(
        resource_path('views/navigation-dropdown.blade.php'),
        "@if (Laravel\Jetstream\Jetstream::hasApiFeatures())",
        "\n@lumki\n"
);
 bash
$ php artisan vendor:publish --tag=lumki.config 
 php
class User extends Authenticatable
{
    // ...

    public function guardName(){
        return "web";
    }
}