PHP code example of codiliateur / laravel-model-extensions
1. Go to this page and download the library: Download codiliateur/laravel-model-extensions 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/ */
codiliateur / laravel-model-extensions example snippets
namespace App\Models\Bookings;
use Codiliateur\LaravelModelExtensions\Database\Eloquent\CompositeKeyModel;
class BoardingPass extends CompositeKeyModel
{
protected $primaryKey = [
'ticket_no',
'flight_id',
];
}