PHP code example of devil999 / solidgenerator
1. Go to this page and download the library: Download devil999/solidgenerator 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/ */
devil999 / solidgenerator example snippets
SubLink::add('Link Name')
->icon('fa-solid fa-icon')
->route('/link/route')
->hide(true)
->permission(true)
->activeOnRoutes('/route/active_on_link');
`
Add second line for psr-4 in composer.json file:
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/",
"Devil\\Solidprinciple\\": "packages/solid-generator/src"
}
},
Then :
php artisan clear-compiled
composer dump-autoload
php artisan optimize