repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/ModuleSetupFilament.php | app/Console/Commands/ModuleSetupFilament.php | <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Console\Concerns\PromptsForMissingInput;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Nwidart\Modules\Module;
class ModuleSetupFilament extends Command implements \Illuminate\Contracts\Console\PromptsForMiss... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/RewriteConfigs.php | app/Console/Commands/RewriteConfigs.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Services\Installer\ConfigService;
/**
* Command to rewrite the config files
*/
class RewriteConfigs extends Command
{
protected $signature = 'phpvms:rewrite-configs';
protected $description = 'Rewrite the config files';
/**
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/ComposerCommand.php | app/Console/Commands/ComposerCommand.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
use Illuminate\Support\Facades\Artisan;
class ComposerCommand extends Command
{
protected $signature = 'phpvms:composer {cmd}';
protected $description = 'Composer related tasks';
/**... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/AcarsReplay.php | app/Console/Commands/AcarsReplay.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Models\Flight;
use App\Support\Units\Time;
use GuzzleHttp\Client;
use Illuminate\Support\Collection;
use RuntimeException;
use stdClass;
class AcarsReplay extends Command
{
protected $signature = 'phpvms:replay {files} {--manual} {--write-a... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/CreateConfigs.php | app/Console/Commands/CreateConfigs.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Services\Installer\ConfigService;
use App\Services\Installer\MigrationService;
use Illuminate\Support\Facades\App;
use Symfony\Component\HttpFoundation\File\Exception\FileException;
/**
* Create the config files
*/
class CreateConfigs extends... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/ClearCaches.php | app/Console/Commands/ClearCaches.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use Nwidart\Modules\Facades\Module;
class ClearCaches extends Command
{
protected $signature = 'phpvms:caches';
protected $description = 'Clear all caches';
/**
* {@inheritdoc}
*/
public function handle()
{
self:... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/ProcessQueue.php | app/Console/Commands/ProcessQueue.php | <?php
namespace App\Console\Commands;
use App;
use App\Contracts\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
class ProcessQueue extends Command
{
protected $signature = 'queue:cron';
protected $description = 'Process the queue from a cron job';
/**
* Run th... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/CreateDatabase.php | app/Console/Commands/CreateDatabase.php | <?php
namespace App\Console\Commands;
use App\Console\Services\Database;
use App\Contracts\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Process;
use PDOException;
use Tivie\OS\Detector;
class CreateDatabase extends Command
{
protected $signature =... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/NavdataImport.php | app/Console/Commands/NavdataImport.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Models\Enums\NavaidType;
use App\Models\Navdata;
use League\Geotools\Exception\InvalidArgumentException;
class NavdataImport extends Command
{
protected $signature = 'phpvms:navdata';
protected $description = '';
/**
* @retur... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/TestApi.php | app/Console/Commands/TestApi.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use GuzzleHttp\Client;
class TestApi extends Command
{
protected $signature = 'phpvms:test-api {apikey} {url}';
protected Client $httpClient;
/**
* Run dev related commands
*/
public function handle()
{
$this->ht... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/YamlImport.php | app/Console/Commands/YamlImport.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Services\DatabaseService;
use Exception;
/**
* Class YamlImport
*/
class YamlImport extends Command
{
protected $signature = 'phpvms:yaml-import {files*}';
protected $description = 'Developer commands';
protected DatabaseService... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Console/Commands/ImportFromClassicCommand.php | app/Console/Commands/ImportFromClassicCommand.php | <?php
namespace App\Console\Commands;
use App\Contracts\Command;
use App\Services\LegacyImporterService;
use Exception;
use Illuminate\Support\Facades\Log;
class ImportFromClassicCommand extends Command
{
protected $signature = 'phpvms:importer {db_host} {db_name} {db_user} {db_pass?} {table_prefix=phpvms_}';
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Ledger.php | app/Models/Ledger.php | <?php
/**
* Based on https://github.com/scottlaurent/accounting
* With modifications for phpVMS
*/
namespace App\Models;
use App\Contracts\Model;
use App\Support\Money;
use InvalidArgumentException;
use UnexpectedValueException;
/**
* Class Ledger
*
* @property int $id
* @property... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Page.php | app/Models/Page.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Exceptions\UnknownPageType;
use App\Models\Enums\PageType;
use Illuminate\Database\Eloquent\Casts\Attribute;
/**
* @property int $id
* @property string $name
* @property string ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/UserFieldValue.php | app/Models/UserFieldValue.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $user_field_id
* @property string $u... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Airport.php | app/Models/Airport.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Traits\ExpensableTrait;
use App\Models\Traits\FilesTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\So... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Invite.php | app/Models/Invite.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
/**
* @property int $id
* @property string|null $email
* @property string $token
* @property int $usage_count... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Pirep.php | app/Models/Pirep.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Events\PirepStateChange;
use App\Events\PirepStatusChange;
use App\Models\Casts\CarbonCast;
use App\Models\Casts\DistanceCast;
use App\Models\Casts\FuelCast;
use App\Models\Enums\AcarsType;
use App\Models\Enums\PirepFieldSource;
use App\Models\Enums\PirepSt... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/SimBrief.php | app/Models/SimBrief.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property string $id
* @property int $user_i... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Subfleet.php | app/Models/Subfleet.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Enums\AircraftStatus;
use App\Models\Traits\ExpensableTrait;
use App\Models\Traits\FilesTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\Belongs... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Aircraft.php | app/Models/Aircraft.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Casts\FuelCast;
use App\Models\Casts\MassCast;
use App\Models\Enums\AircraftStatus;
use App\Models\Traits\ExpensableTrait;
use App\Models\Traits\FilesTrait;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/FlightField.php | app/Models/FlightField.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Support\Str;
/**
* Class FlightField
*
* @property int $id
* @property string $name
* @property string|null $slug
*
* @method static \Illuminate\Database\Eloquent\Builder<static>|... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/SimBriefAircraft.php | app/Models/SimBriefAircraft.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property string $icao
* @property string $name
* @property string|null $details
* ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use App\Models\Enums\JournalType;
use App\Models\Traits\JournalTrait;
use BezhanSalleh\FilamentShield\Support\Utils;
use Filament\Models\Contracts\FilamentUser;
use Filament\Models\Contracts\HasAvatar;
use Filament\Panel;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Databa... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Typerating.php | app/Models/Typerating.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Kyslik\ColumnSortable\Sortable;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @property int $id
* @property string ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Module.php | app/Models/Module.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @property int $id
* @property string $name
* @property bool $enabled
* @property \Illuminate\Su... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/SimBriefLayout.php | app/Models/SimBriefLayout.php | <?php
namespace App\Models;
use App\Contracts\Model;
/**
* @property string $id
* @property string $name
* @property string $name_long
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $u... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Acars.php | app/Models/Acars.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Casts\DistanceCast;
use App\Models\Casts\FuelCast;
use App\Models\Traits\HashIdTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Expense.php | app/Models/Expense.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Casts\CommaDelimitedCast;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
/**
* @property int... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/PirepComment.php | app/Models/PirepComment.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property string $pirep_id
* @property int $user_id
* @property string $co... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/JournalTransaction.php | app/Models/JournalTransaction.php | <?php
/**
* Based on https://github.com/scottlaurent/accounting
* With modifications for phpVMS
*/
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property string $id
* @p... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Role.php | app/Models/Role.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
use Spatie\Permission\Models\Role as SpatieRole;
/**
* @property int $id
* @propert... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Award.php | app/Models/Award.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Exception;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Storage;
u... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/FlightFieldValue.php | app/Models/FlightFieldValue.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Str;
/**
* Class FlightFieldValue
*
* @property int $id
* @property string $flig... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/PirepField.php | app/Models/PirepField.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Support\Str;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @property int $id
* @property string $name
* @property string|null $slug
* @property... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/UserOAuthToken.php | app/Models/UserOAuthToken.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $user_id
* @property string $provide... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Event.php | app/Models/Event.php | <?php
namespace App\Models;
use App\Contracts\Model;
/**
* @property int $id
* @property int $type
* @property string $name
* @property string|null $description
* @property \Illuminate\Support\Carbon $start... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/SimBriefAirframe.php | app/Models/SimBriefAirframe.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property string $icao
* @property string $name
* @property string|null $airframe_... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/PirepFare.php | app/Models/PirepFare.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property string $pirep_id
* @property int|null $fare_id
* @property int|null $count
* @property string|null $code
* @property string|null $name
* @property f... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Kvp.php | app/Models/Kvp.php | <?php
namespace App\Models;
use App\Contracts\Model;
/**
* @property string $key
* @property string $value
*
* @method static \Illuminate\Database\Eloquent\Builder<static>|Kvp newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Kvp newQuery()
* @method static \Illuminate\Database\Elo... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Navdata.php | app/Models/Navdata.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* @property string $id
* @property string $name
* @property int $type
* @property float|null $lat
* @property float|null $lon
* @prope... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Bid.php | app/Models/Bid.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $id
* @property int $user_id
* @property string $flight_id
* @property int|null $a... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/File.php | app/Models/File.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Traits\HashIdTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
/**
* @property string $id
* @property string $name
* @pro... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/SimBriefXML.php | app/Models/SimBriefXML.php | <?php
namespace App\Models;
use Generator;
use Illuminate\Support\Collection;
use SimpleXMLElement;
/**
* Represents the SimBrief XML instance with some helper methods
*/
class SimBriefXML extends SimpleXMLElement
{
/**
* Return a padded flight level
*/
public function getFlightLevel(): string
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/PirepFieldValue.php | app/Models/PirepFieldValue.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Enums\PirepFieldSource;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Str;
/**
* @property int $id
* @property string ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Airline.php | app/Models/Airline.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Enums\JournalType;
use App\Models\Traits\FilesTrait;
use App\Models\Traits\JournalTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Rank.php | app/Models/Rank.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Journal.php | app/Models/Journal.php | <?php
/**
* Based on https://github.com/scottlaurent/accounting
* With modifications for phpVMS
*/
namespace App\Models;
use App\Contracts\Model;
use App\Models\Casts\MoneyCast;
use App\Support\Money;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relati... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Permission.php | app/Models/Permission.php | <?php
namespace App\Models;
use Spatie\Permission\Models\Permission as SpatiePermission;
/**
* @property int $id
* @property string $name
* @property string $guard_name
* @property \Illuminate\Support\Carbon|null $created_at
* @proper... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Setting.php | app/Models/Setting.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @property string $id
* @property int $offset
* @property int ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/UserField.php | app/Models/UserField.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Support\Str;
/**
* @property int $id
* @property string $name
* @property string|null $description
* @property bool|null ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/GeoJson.php | app/Models/GeoJson.php | <?php
namespace App\Models;
use GeoJson\Feature\Feature;
use GeoJson\Feature\FeatureCollection;
use GeoJson\Geometry\LineString;
use GeoJson\Geometry\Point;
/**
* Return different points/features in GeoJSON format
* https://tools.ietf.org/html/rfc7946
*/
class GeoJson
{
/**
* @var int
*/
protect... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Fare.php | app/Models/Fare.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* @property int ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/News.php | app/Models/News.php | <?php
namespace App\Models;
use App\Contracts\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Notifications\Notifiable;
use Kyslik\ColumnSortable\Sortable;
/**
* @property int $id
* @property int ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Flight.php | app/Models/Flight.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Models\Casts\DistanceCast;
use App\Models\Enums\Days;
use App\Models\Traits\HashIdTrait;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Databa... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/UserAward.php | app/Models/UserAward.php | <?php
namespace App\Models;
use App\Contracts\Model;
use App\Events\AwardAwarded;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Notifications\Notifiable;
use Kyslik\ColumnSortable\Sortable;
/**
* @property int $id
* @property int $user_... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/FuelCast.php | app/Models/Casts/FuelCast.php | <?php
namespace App\Models\Casts;
use App\Support\Units\Fuel;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
use PhpUnitsOfMeasure\Exception\NonNumericValue;
use PhpUnitsOfMeasure\Exception\NonStringUnitName;
class FuelCast implements CastsAttributes
{
/**
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/CommaDelimitedCast.php | app/Models/Casts/CommaDelimitedCast.php | <?php
namespace App\Models\Casts;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
class CommaDelimitedCast implements CastsAttributes
{
/**
* Transform the attribute from the underlying model values.
*
* @param Model $model
* @param mixed ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/MoneyCast.php | app/Models/Casts/MoneyCast.php | <?php
namespace App\Models\Casts;
use App\Support\Money;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
class MoneyCast implements CastsAttributes
{
/**
* Transform the attribute from the underlying model values.
*
* @param Model $model
* ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/MassCast.php | app/Models/Casts/MassCast.php | <?php
namespace App\Models\Casts;
use App\Support\Units\Mass;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
use PhpUnitsOfMeasure\Exception\NonNumericValue;
use PhpUnitsOfMeasure\Exception\NonStringUnitName;
class MassCast implements CastsAttributes
{
/**
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/CarbonCast.php | app/Models/Casts/CarbonCast.php | <?php
namespace App\Models\Casts;
use Carbon\Carbon;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
/**
* Cast into a Carbon DateTime instance
*/
class CarbonCast implements CastsAttributes
{
/**
* Transform the attribute from the underlying model value... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Casts/DistanceCast.php | app/Models/Casts/DistanceCast.php | <?php
namespace App\Models\Casts;
use App\Support\Units\Distance;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
use Illuminate\Database\Eloquent\Model;
use PhpUnitsOfMeasure\Exception\NonNumericValue;
use PhpUnitsOfMeasure\Exception\NonStringUnitName;
class DistanceCast implements CastsAttributes
{
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Traits/FilesTrait.php | app/Models/Traits/FilesTrait.php | <?php
namespace App\Models\Traits;
use App\Models\File;
trait FilesTrait
{
/**
* Morph to type of File
*
* @return mixed
*/
public function files()
{
return $this->morphMany(
File::class,
'files', // overridden by the next two anyway
'ref_m... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Traits/HashIdTrait.php | app/Models/Traits/HashIdTrait.php | <?php
namespace App\Models\Traits;
use App\Support\Utils;
use Hashids\HashidsException;
trait HashIdTrait
{
/**
* @throws HashidsException
*/
final public static function createNewHashId(): string
{
return Utils::generateNewId();
}
/**
* Register callbacks
*
* @t... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Traits/ExpensableTrait.php | app/Models/Traits/ExpensableTrait.php | <?php
namespace App\Models\Traits;
use App\Models\Expense;
trait ExpensableTrait
{
public static function bootExpensableTrait() {}
/**
* Morph to Expenses.
*
* @return mixed
*/
public function expenses()
{
return $this->morphMany(
Expense::class,
'... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Traits/JournalTrait.php | app/Models/Traits/JournalTrait.php | <?php
namespace App\Models\Traits;
use App\Models\Journal;
use Exception;
use Illuminate\Database\Eloquent\Relations\MorphOne;
trait JournalTrait
{
/**
* Initialize a new journal when a new record is created
*/
public static function bootJournalTrait(): void
{
static::created(function (... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/SubfleetObserver.php | app/Models/Observers/SubfleetObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Subfleet;
/**
* Class SubfleetObserver
*/
class SubfleetObserver
{
public function creating(Subfleet $model)
{
if (!filled($model->ground_handling_multiplier)) {
$model->ground_handling_multiplier = 100;
}
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/AircraftObserver.php | app/Models/Observers/AircraftObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Aircraft;
use App\Support\ICAO;
use Exception;
class AircraftObserver
{
/**
* @throws Exception
*/
public function creating(Aircraft $aircraft): void
{
if (!empty($aircraft->airport_id)) {
$aircraft->airport_id = strtouppe... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/AirportObserver.php | app/Models/Observers/AirportObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Airport;
/**
* Make sure that the fields are properly capitalized
*/
class AirportObserver
{
public function creating(Airport $airport): void
{
if (filled($airport->iata)) {
$airport->iata = strtoupper(trim($airport->iata));
}... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/JournalTransactionObserver.php | app/Models/Observers/JournalTransactionObserver.php | <?php
namespace App\Models\Observers;
use App\Models\JournalTransaction;
use Ramsey\Uuid\Uuid;
/**
* Class JournalTransactionObserver
*/
class JournalTransactionObserver
{
/**
* Set the ID to a UUID
*/
public function creating(JournalTransaction $transaction): void
{
if (!$transaction... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/FlightObserver.php | app/Models/Observers/FlightObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Flight;
/**
* Make sure that the fields are properly capitalized
*/
class FlightObserver
{
public function creating(Flight $flight): void
{
$flight->dpt_airport_id = strtoupper(trim($flight->dpt_airport_id));
$flight->arr_airport_id = str... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/SettingObserver.php | app/Models/Observers/SettingObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Setting;
/**
* Class SettingObserver
*/
class SettingObserver
{
public function creating(Setting $model): void
{
if (!empty($model->id)) {
$model->id = Setting::formatKey($model->id);
}
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/JournalObserver.php | app/Models/Observers/JournalObserver.php | <?php
namespace App\Models\Observers;
use App\Models\Journal;
/**
* Class JournalObserver
*/
class JournalObserver
{
public function creating(Journal $journal): void
{
$journal->balance = 0;
}
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/UserObserver.php | app/Models/Observers/UserObserver.php | <?php
namespace App\Models\Observers;
use App\Models\User;
use App\Services\UserService;
class UserObserver
{
private $userSvc;
public function __construct(UserService $userSvc)
{
$this->userSvc = $userSvc;
}
/**
* After a user has been created, do some stuff
*/
public fun... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Observers/Sluggable.php | app/Models/Observers/Sluggable.php | <?php
namespace App\Models\Observers;
use Illuminate\Support\Str;
/**
* Create a slug from a name
*/
class Sluggable
{
/**
* @var array<string, mixed>
*/
public $attributes;
public function creating($model): void
{
$model->slug = Str::slug($model->name);
}
public functio... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/ImportExportType.php | app/Models/Enums/ImportExportType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class ImportExportType extends Enum
{
public const AIRLINE = 1;
public const AIRCRAFT = 2;
public const AIRPORT = 3;
public const EXPENSES = 4;
public const FARES = 5;
public const FLIGHTS = 6;
public const SUBFLEETS = 7;
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/NavaidType.php | app/Models/Enums/NavaidType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
/**
* Class NavaidType
* Types based on/compatible with OpenFMC
* https://github.com/skiselkov/openfmc/blob/master/airac.h
*/
class NavaidType extends Enum
{
public const VOR = 1 << 0;
public const VOR_DME = 1 << 1;
public const LOC = 1 << 4... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/AcarsType.php | app/Models/Enums/AcarsType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class AcarsType extends Enum
{
public const FLIGHT_PATH = 0;
public const ROUTE = 1;
public const LOG = 2;
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/PirepState.php | app/Models/Enums/PirepState.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class PirepState extends Enum
{
public const IN_PROGRESS = 0; // flight is ongoing
public const PENDING = 1; // waiting admin approval
public const ACCEPTED = 2;
public const CANCELLED = 3;
public const DELETED = 4;
public const... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/PirepFieldSource.php | app/Models/Enums/PirepFieldSource.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class PirepFieldSource extends Enum
{
public const MANUAL = 0;
public const ACARS = 1;
public const BOTH = 3;
protected static array $labels = [
self::MANUAL => 'Manual',
self::ACARS => 'Acars',
self::BOTH => 'Man... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/PageType.php | app/Models/Enums/PageType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class PageType extends Enum
{
public const PAGE = 0;
public const LINK = 1;
public static array $labels = [
self::PAGE => 'Page',
self::LINK => 'Link',
];
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/Days.php | app/Models/Enums/Days.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
/**
* Start on Monday - ISO8601
*/
class Days extends Enum
{
public const MONDAY = 1 << 0;
public const TUESDAY = 1 << 1;
public const WEDNESDAY = 1 << 2;
public const THURSDAY = 1 << 3;
public const FRIDAY = 1 << 4;
public cons... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/FlightType.php | app/Models/Enums/FlightType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class FlightType extends Enum
{
public const SCHED_PAX = 'J';
public const SCHED_CARGO = 'F';
public const CHARTER_PAX_ONLY = 'C';
public const ADDITIONAL_CARGO = 'A';
public const VIP = 'E';
public const ADDTL_PAX = 'G';
pub... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/ActiveState.php | app/Models/Enums/ActiveState.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class ActiveState extends Enum
{
public const INACTIVE = 0;
public const ACTIVE = 1;
public static array $labels = [
self::ACTIVE => 'common.active',
self::INACTIVE => 'common.inactive',
];
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/JournalType.php | app/Models/Enums/JournalType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class JournalType extends Enum
{
public const AIRLINE = 0;
public const USER = 1;
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/NavigationGroup.php | app/Models/Enums/NavigationGroup.php | <?php
namespace App\Models\Enums;
use Filament\Support\Contracts\HasLabel;
enum NavigationGroup implements HasLabel
{
case Config;
case Operations;
case Modules;
case Developers;
public function getLabel(): string
{
return match ($this) {
self::Config => __('filament.... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/ExpenseType.php | app/Models/Enums/ExpenseType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class ExpenseType extends Enum
{
public const FLIGHT = 'F';
public const DAILY = 'D';
public const MONTHLY = 'M';
protected static array $labels = [
self::FLIGHT => 'expenses.type.flight',
self::DAILY => 'expenses.type.da... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/AirframeSource.php | app/Models/Enums/AirframeSource.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class AirframeSource extends Enum
{
public const INTERNAL = 0;
public const SIMBRIEF = 1;
public static array $labels = [
self::INTERNAL => 'Custom',
self::SIMBRIEF => 'SimBrief',
];
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/AircraftState.php | app/Models/Enums/AircraftState.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class AircraftState extends Enum
{
public const PARKED = 0;
public const IN_USE = 1;
public const IN_AIR = 2;
public static array $labels = [
self::PARKED => 'On Ground',
self::IN_USE => 'In Use',
self::IN_AIR => 'In... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/PirepStatus.php | app/Models/Enums/PirepStatus.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
/**
* Tied to the ACARS statuses/states.
* Corresponds to values from AIDX and ICAO ADREP
* https://www.skybrary.aero/index.php/Flight_Phase_Taxonomy
*/
class PirepStatus extends Enum
{
public const INITIATED = 'INI';
public const SCHEDULED = 'SC... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/FuelType.php | app/Models/Enums/FuelType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class FuelType extends Enum
{
public const LOW_LEAD = 0;
public const JET_A = 1;
public const MOGAS = 2;
public static array $labels = [
self::LOW_LEAD => '100LL',
self::JET_A => 'JET A',
self::MOGAS => 'MOGAS'... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/UserState.php | app/Models/Enums/UserState.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class UserState extends Enum
{
public const PENDING = 0;
public const ACTIVE = 1;
public const REJECTED = 2;
public const ON_LEAVE = 3;
public const SUSPENDED = 4;
public const DELETED = 5;
protected static array $labels = [
... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/PirepSource.php | app/Models/Enums/PirepSource.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class PirepSource extends Enum
{
public const MANUAL = 0;
public const ACARS = 1;
protected static array $labels = [
self::MANUAL => 'pireps.source_types.manual',
self::ACARS => 'pireps.source_types.acars',
];
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/FareType.php | app/Models/Enums/FareType.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class FareType extends Enum
{
public const PASSENGER = 0;
public const CARGO = 1;
public static array $labels = [
self::PASSENGER => 'Passenger',
self::CARGO => 'Cargo',
];
}
| php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Models/Enums/AircraftStatus.php | app/Models/Enums/AircraftStatus.php | <?php
namespace App\Models\Enums;
use App\Contracts\Enum;
class AircraftStatus extends Enum
{
public const ACTIVE = 'A';
public const MAINTENANCE = 'M';
public const STORED = 'S';
public const RETIRED = 'R';
public const SCRAPPED = 'C';
public const WRITTEN_OFF = 'W';
public static ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Bootstrap/LoadConfiguration.php | app/Bootstrap/LoadConfiguration.php | <?php
namespace App\Bootstrap;
use Exception;
use Illuminate\Contracts\Config\Repository as RepositoryContract;
use Illuminate\Contracts\Foundation\Application;
class LoadConfiguration extends \Illuminate\Foundation\Bootstrap\LoadConfiguration
{
/**
* Load the configuration items from all of the files. This... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Widgets/Weather.php | app/Widgets/Weather.php | <?php
namespace App\Widgets;
use App\Contracts\Widget;
use App\Services\AirportService;
/**
* This is a widget for the 3rd party CheckWX service
*/
class Weather extends Widget
{
protected $config = [
'icao' => null,
'raw_only' => null,
];
/**
* Attempt to get the data from th... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Widgets/AirspaceMap.php | app/Widgets/AirspaceMap.php | <?php
namespace App\Widgets;
use App\Contracts\Widget;
use Illuminate\Contracts\View\Factory;
use Illuminate\View\View;
/**
* Show the live map in a view
*/
class AirspaceMap extends Widget
{
protected $config = [
'height' => '800px',
'width' => '100%',
'lat' => 0,
'lon' ... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Widgets/LatestAwards.php | app/Widgets/LatestAwards.php | <?php
namespace App\Widgets;
use App\Contracts\Widget;
use App\Models\UserAward;
class LatestAwards extends Widget
{
protected $config = ['count' => 5];
public function run()
{
$latest_awards = UserAward::with(['award', 'user'])->orderby('created_at', 'desc')->take($this->config['count'])->get()... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
phpvms/phpvms | https://github.com/phpvms/phpvms/blob/8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9/app/Widgets/LatestNews.php | app/Widgets/LatestNews.php | <?php
namespace App\Widgets;
use App\Contracts\Widget;
use App\Repositories\NewsRepository;
use Illuminate\Contracts\View\Factory;
use Illuminate\View\View;
/**
* Show the latest news in a view
*/
class LatestNews extends Widget
{
protected $config = [
'count' => 5,
];
/**
* @return Facto... | php | BSD-3-Clause | 8fdd34d2ea76f18f9bee259558c1bfe5b5877ae9 | 2026-01-05T02:29:57.665749Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.