PHP code example of litepie / integrations
1. Go to this page and download the library: Download litepie/integrations 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/ */
litepie / integrations example snippets
use Litepie\Integration\Models\Integration;
$integration = Integration::create([
'name' => 'My API Integration',
'description' => 'Integration for my application',
'redirect_uris' => ['https://myapp.com/callback'],
'status' => 'active',
'user_id' => auth()->id(),
]);
bash
php artisan vendor:publish --provider="Litepie\Integration\IntegrationServiceProvider"
bash
php artisan migrate