PHP code example of dd4you / dpanel-plus

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

    

dd4you / dpanel-plus example snippets

bash
php artisan migrate
bash
use Illuminate\Support\Facades\Gate;

............ Inside boot method ............

Gate::before(function ($user, $ability) {
    return $user->hasRole('super-admin') ? true : null;
});

bash
php artisan dd4you:install-lgs
bash
php artisan migrate
code
php artisan db:seed --class=SettingsSeeder
code
{!! settings('footer_text') !!}
{!! settings('footer_text') Copyright Date('Y') !!}
code
php artisan cache:clear