PHP code example of jclavo / profiles

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

    

jclavo / profiles example snippets



    'providers' => [
        ...
        /*
        * Package Service Providers...
        */
        Jclavo\Profiles\Providers\ProfilesProvider::class,
        ...
    ]

return [
];

use Jclavo\Profiles\Models\Profile;

$profile = new Profile();
$profile->name = 'my new profile';
$profile->description = 'description for my new profile';
$profile->activated = true;
$profile->fixed = false;
$profile->save();
bash
php artisan vendor:publish --tag=":package_slug-migrations"
php artisan migrate