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
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/app/Config/View.php
app/Config/View.php
<?php namespace Config; use CodeIgniter\Config\View as BaseView; use CodeIgniter\View\ViewDecoratorInterface; /** * @phpstan-type parser_callable (callable(mixed): mixed) * @phpstan-type parser_callable_string (callable(mixed): mixed)&string */ class View extends BaseView { /** * When false, the view met...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/app/Config/Boot/development.php
app/Config/Boot/development.php
<?php /* |-------------------------------------------------------------------------- | ERROR DISPLAY |-------------------------------------------------------------------------- | In development, we want to show as many errors as possible to help | make sure they don't make it to production. And save us hours of ...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/app/Config/Boot/production.php
app/Config/Boot/production.php
<?php /* |-------------------------------------------------------------------------- | ERROR DISPLAY |-------------------------------------------------------------------------- | Don't show ANY in production environments. Instead, let the system catch | it and display a generic error message. | | If you set 'di...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/app/Config/Boot/testing.php
app/Config/Boot/testing.php
<?php /* * The environment testing is reserved for PHPUnit testing. It has special * conditions built into the framework at various places to assist with that. * You can’t use it for your development. */ /* |-------------------------------------------------------------------------- | ERROR DISPLAY |-----------...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/app/Language/en/Validation.php
app/Language/en/Validation.php
<?php // override core en language system validation or define your own en language validation message return [];
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/session/ExampleSessionTest.php
tests/session/ExampleSessionTest.php
<?php use CodeIgniter\Test\CIUnitTestCase; /** * @internal */ final class ExampleSessionTest extends CIUnitTestCase { public function testSessionSimple(): void { $session = service('session'); $session->set('logged_in', 123); $this->assertSame(123, $session->get('logged_in')); }...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/unit/HealthTest.php
tests/unit/HealthTest.php
<?php use CodeIgniter\Test\CIUnitTestCase; use Config\App; use Tests\Support\Libraries\ConfigReader; /** * @internal */ final class HealthTest extends CIUnitTestCase { public function testIsDefinedAppPath(): void { $this->assertTrue(defined('APPPATH')); } public function testBaseUrlHasBeenS...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/_support/Libraries/ConfigReader.php
tests/_support/Libraries/ConfigReader.php
<?php namespace Tests\Support\Libraries; use Config\App; /** * Class ConfigReader * * An extension of BaseConfig that prevents the constructor from * loading external values. Used to read actual local values from * a config file. */ class ConfigReader extends App { public function __construct() { }...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/_support/Database/Seeds/ExampleSeeder.php
tests/_support/Database/Seeds/ExampleSeeder.php
<?php namespace Tests\Support\Database\Seeds; use CodeIgniter\Database\Seeder; class ExampleSeeder extends Seeder { public function run(): void { $factories = [ [ 'name' => 'Test Factory', 'uid' => 'test001', 'class' => 'Factories\T...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php
<?php namespace Tests\Support\Database\Migrations; use CodeIgniter\Database\Migration; class ExampleMigration extends Migration { protected $DBGroup = 'tests'; public function up(): void { $this->forge->addField('id'); $this->forge->addField([ 'name' => ['type' => 'varc...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/_support/Models/ExampleModel.php
tests/_support/Models/ExampleModel.php
<?php namespace Tests\Support\Models; use CodeIgniter\Model; class ExampleModel extends Model { protected $table = 'factories'; protected $primaryKey = 'id'; protected $returnType = 'object'; protected $useSoftDeletes = false; protected $allowedFields = [ 'name', ...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/tests/database/ExampleDatabaseTest.php
tests/database/ExampleDatabaseTest.php
<?php use CodeIgniter\Test\CIUnitTestCase; use CodeIgniter\Test\DatabaseTestTrait; use Tests\Support\Database\Seeds\ExampleSeeder; use Tests\Support\Models\ExampleModel; /** * @internal */ final class ExampleDatabaseTest extends CIUnitTestCase { use DatabaseTestTrait; protected $seed = ExampleSeeder::class...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
codeigniter4/appstarter
https://github.com/codeigniter4/appstarter/blob/793a21bd884c639eb9fb362e4f920c72d2f444a8/public/index.php
public/index.php
<?php use CodeIgniter\Boot; use Config\Paths; /* *--------------------------------------------------------------- * CHECK PHP VERSION *--------------------------------------------------------------- */ $minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`. if (version_compare(PHP_VERSION,...
php
MIT
793a21bd884c639eb9fb362e4f920c72d2f444a8
2026-01-05T03:53:45.465407Z
false
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/TheArchitectPlugin.php
thearchitect/TheArchitectPlugin.php
<?php namespace Craft; /** * Class TheArchitectPlugin. */ class TheArchitectPlugin extends BasePlugin { /** * getName. * * @return null|string */ public function getName() { return Craft::t('The Architect'); } /** * getVersion. * * @return string ...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
false
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/config.php
thearchitect/config.php
<?php /** * The Architect by Pennebaker * * @author Pennebaker <http://pennebaker.com> * @package The Architect * @copyright Copyright (c) 2016, Pennebaker * @license http://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/pennebaker/craft-thearchitect */ /...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
false
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/services/TheArchitectService.php
thearchitect/services/TheArchitectService.php
<?php namespace Craft; class TheArchitectService extends BaseApplicationComponent { private $groups; private $fields; private $sections; private $addedSources = []; /** * parseJson. * * @param string $json * * @return array [successfulness] */ public function pa...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
true
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/variables/TheArchitectVariable.php
thearchitect/variables/TheArchitectVariable.php
<?php namespace Craft; class TheArchitectVariable { /** * Returns a field layout by its ID. * * @param int $layoutId * * @return FieldLayoutModel|null */ public function getNeoBlockTypesByFieldId($layoutId) { return craft()->neo->getBlockTypesByFieldId($layoutId); ...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
false
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/controllers/TheArchitect_ApiController.php
thearchitect/controllers/TheArchitect_ApiController.php
<?php namespace Craft; /** * TheArchitect_ApiController. */ class TheArchitect_ApiController extends BaseController { protected $allowAnonymous = true; public function actionExport() { $apiKey = craft()->theArchitect->getAPIKey(); $key = craft()->request->getParam('key'); if (!...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
false
Pennebaker/craftcms-thearchitect
https://github.com/Pennebaker/craftcms-thearchitect/blob/4a2c83bd0a2d28c36f1c656764c81a44945e2c6f/thearchitect/controllers/TheArchitectController.php
thearchitect/controllers/TheArchitectController.php
<?php namespace Craft; /** * TheArchitectController. */ class TheArchitectController extends BaseController { // Public Methods // ========================================================================= /** * {@inheritdoc} BaseController::init() * * @throws HttpException */ pu...
php
MIT
4a2c83bd0a2d28c36f1c656764c81a44945e2c6f
2026-01-05T03:53:59.560582Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/SettingsCache.php
src/SettingsCache.php
<?php namespace DarkGhostHunter\Laraconfig; use Illuminate\Contracts\Cache\Factory; use Illuminate\Contracts\Cache\Repository; use Illuminate\Contracts\Config\Repository as Config; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Carbon; use Serializable; cl...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/LaraconfigServiceProvider.php
src/LaraconfigServiceProvider.php
<?php namespace DarkGhostHunter\Laraconfig; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Generator; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Str; /** * @internal */ class LaraconfigServiceProvider exten...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/SettingsCollection.php
src/SettingsCollection.php
<?php namespace DarkGhostHunter\Laraconfig; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Support\Enumerable; use Illuminate\Support\Traits\EnumeratesValues; use RuntimeException; /** * Class Se...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/MorphManySettings.php
src/MorphManySettings.php
<?php namespace DarkGhostHunter\Laraconfig; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use Illuminate\Contracts\Cache\Factory; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection as EloquentCollection; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Re...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/HasConfig.php
src/HasConfig.php
<?php namespace DarkGhostHunter\Laraconfig; use Illuminate\Database\Eloquent\Model; use function method_exists; /** * @property-read \DarkGhostHunter\Laraconfig\SettingsCollection<\DarkGhostHunter\Laraconfig\Eloquent\Setting>|\DarkGhostHunter\Laraconfig\Eloquent\Setting[] $settings * * @method \Illuminate\Databa...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Data.php
src/Migrator/Data.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator; use Illuminate\Database\Eloquent\Collection as EloquentCollection; use Illuminate\Support\Collection; /** * @internal */ class Data { /** * Database Metadata. * * @var \Illuminate\Database\Eloquent\Collection|\DarkGhostHunter\Laraconfig\Eloque...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Migrator.php
src/Migrator/Migrator.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator; use Illuminate\Pipeline\Pipeline; /** * @internal */ class Migrator extends Pipeline { /** * The array of class pipes. * * @var array */ protected $pipes = [ Pipes\FlushCache::class, Pipes\LoadDeclarations::class, ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/RemoveOldMetadata.php
src/Migrator/Pipes/RemoveOldMetadata.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Migrator\Data; use Illuminate\Console\OutputStyle; use Illuminate\Database\Eloquent\Collection; /** * @internal */ class RemoveOldMetadata { /** * Remove...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/EnsureFromTargetsExist.php
src/Migrator/Pipes/EnsureFromTargetsExist.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Migrator\Data; use RuntimeException; /** * @internal */ class EnsureFromTargetsExist { /** * Handles the Settings migration. * * @param \DarkGhostHunter\Laraconfig\Migrator\Data $data * ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/UpdateExistingMetadata.php
src/Migrator/Pipes/UpdateExistingMetadata.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Registrar\Declaration; use Illuminate\Console\OutputStyle; use Illumin...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/FlushCache.php
src/Migrator/Pipes/FlushCache.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Migrator\Data; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Cache\Factory; use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Foundation\Application; use RuntimeException; use Symfo...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/FindModelsWithSettings.php
src/Migrator/Pipes/FindModelsWithSettings.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\HasConfig; use DarkGhostHunter\Laraconfig\Migrator\Data; use Generator; use Illuminate\Contracts\Foundation\Application; use Illuminate\Database\Eloquent\Model; use Illuminate\Filesystem\Filesystem; use Illuminate\S...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/ConfirmSettingsToDelete.php
src/Migrator/Pipes/ConfirmSettingsToDelete.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Migrator\Data; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Foundation\Application; use RuntimeException; use Symfony\Component\Console\Input\InputIn...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/ConfirmSettingsRefresh.php
src/Migrator/Pipes/ConfirmSettingsRefresh.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\Migrator\Data; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Foundation\Application; use Illuminate\D...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/LoadDeclarations.php
src/Migrator/Pipes/LoadDeclarations.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; /** * @internal */ class LoadDeclarations { /** * LoadDeclarations constructor. * * @param \DarkGhostHunter\Laraconfig...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/CreateNewMetadata.php
src/Migrator/Pipes/CreateNewMetadata.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Registrar\Declaration; use Illuminate\Console\OutputStyle; use Illumin...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/InvalidateCache.php
src/Migrator/Pipes/InvalidateCache.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Laraconfig; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\MorphManySettings; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Cache\Factory; use Illuminate\Contracts\Config...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/LoadMetadata.php
src/Migrator/Pipes/LoadMetadata.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Migrator\Data; /** * @internal */ class LoadMetadata { /** * Handles the Settings migration. * * @param \DarkGhostHunter\Laraconfig\Migrator\D...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Migrator/Pipes/EnsureSomethingToMigrate.php
src/Migrator/Pipes/EnsureSomethingToMigrate.php
<?php namespace DarkGhostHunter\Laraconfig\Migrator\Pipes; use Closure; use DarkGhostHunter\Laraconfig\Migrator\Data; use Illuminate\Console\OutputStyle; use RuntimeException; class EnsureSomethingToMigrate { public function __construct(protected OutputStyle $output) { } /** * Handles the Setti...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Registrar/Declaration.php
src/Registrar/Declaration.php
<?php namespace DarkGhostHunter\Laraconfig\Registrar; use Closure; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; class Declaration { /** * Type of the setting. * * @internal * * @var string */ public string $type = Metadata::TYPE_STRING; /** * The default value, if...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Registrar/SettingRegistrar.php
src/Registrar/SettingRegistrar.php
<?php namespace DarkGhostHunter\Laraconfig\Registrar; use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Foundation\Application; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Collection; /** * @internal */ class SettingRegistrar { /** * Manifest directory. * * @v...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Facades/Setting.php
src/Facades/Setting.php
<?php namespace DarkGhostHunter\Laraconfig\Facades; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Illuminate\Support\Facades\Facade; /** * @method static \Illuminate\Support\Collection|\DarkGhostHunter\Laraconfig\Eloquent\Setting[] getSettings() * @method static \DarkGhostHunter\Laraconfig\Registr...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Console/Commands/MigrateCommand.php
src/Console/Commands/MigrateCommand.php
<?php namespace DarkGhostHunter\Laraconfig\Console\Commands; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Migrator\Migrator; use Illuminate\Console\Command; use Illuminate\Console\OutputStyle; use RuntimeException; use Symfony\Component\Console\Input\InputInterface; /** * @internal ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Console/Commands/CleanCommand.php
src/Console/Commands/CleanCommand.php
<?php namespace DarkGhostHunter\Laraconfig\Console\Commands; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use Illuminate\Console\Command; /** * @internal */ class CleanCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'settings:clean'; ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Console/Commands/PublishCommand.php
src/Console/Commands/PublishCommand.php
<?php namespace DarkGhostHunter\Laraconfig\Console\Commands; use Illuminate\Console\Command; use Illuminate\Filesystem\Filesystem; /** * @internal */ class PublishCommand extends Command { protected const STUB_PATH = __DIR__ . '/../../../stubs/users.php'; /** * The console command name. * *...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Metadata.php
src/Eloquent/Metadata.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; /** * @property-read int $id * * @property-read string $name * @property-read string $type * @property-read mixed $default * @property-read string $bag * @property-r...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Setting.php
src/Eloquent/Setting.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent; use DarkGhostHunter\Laraconfig\MorphManySettings; use DarkGhostHunter\Laraconfig\SettingsCache; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\MorphTo; /** * @property-read ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Scopes/AddMetadata.php
src/Eloquent/Scopes/AddMetadata.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent\Scopes; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Scope; use Illuminate\Database\Query\Builder as QueryBuilder; use Illuminate\Support\Collecti...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Scopes/WhereConfig.php
src/Eloquent/Scopes/WhereConfig.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent\Scopes; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Scope; class WhereConfig implements Scope { /** * Apply the scope to a given Eloquent query builder. * * @param \Illuminat...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Scopes/FilterBags.php
src/Eloquent/Scopes/FilterBags.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent\Scopes; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Scope; class FilterBags implements Scope { /** * FilterBags constructor. * * @param array $bags */ public functi...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/src/Eloquent/Casts/DynamicCasting.php
src/Eloquent/Casts/DynamicCasting.php
<?php namespace DarkGhostHunter\Laraconfig\Eloquent\Casts; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DateTimeInterface; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Support\Arr; use Illuminate\Support\Carbon; use Illuminate\Sup...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/RegistersPackage.php
tests/RegistersPackage.php
<?php namespace Tests; use DarkGhostHunter\Laraconfig\LaraconfigServiceProvider; use DarkGhostHunter\Laraconfig\Facades\Setting; trait RegistersPackage { /** * Get package providers. * * @param \Illuminate\Foundation\Application $app * * @return array */ protected function get...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/BaseTestCase.php
tests/BaseTestCase.php
<?php namespace Tests; use Orchestra\Testbench\TestCase; class BaseTestCase extends TestCase { use RegistersPackage; }
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/HasConfigTest.php
tests/HasConfigTest.php
<?php namespace Tests; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Scopes\FilterBags; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\HasConfig; use DarkGhostHunter\Laraconfig\SettingsCollection; use Error; use Exception; use Illuminate\Con...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/ServiceProviderTest.php
tests/ServiceProviderTest.php
<?php namespace Tests; use DarkGhostHunter\Laraconfig\Facades\Setting; use DarkGhostHunter\Laraconfig\LaraconfigServiceProvider; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use SplFileInfo; class ServiceProviderTest extends BaseTestCase...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Migrator/Pipes/FindModelsWithSettingsTest.php
tests/Migrator/Pipes/FindModelsWithSettingsTest.php
<?php namespace Tests\Migrator\Pipes; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Migrator\Pipes\FindModelsWithSettings; use Illuminate\Database\Eloquent\Model; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Tests\BaseTestCase; class FindModelsWithSettingsTest...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Registrar/RegistrarTest.php
tests/Registrar/RegistrarTest.php
<?php namespace Tests\Registrar; use DarkGhostHunter\Laraconfig\Facades\Setting; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Illuminate\Support\Collection; use Tests\BaseTestCase; class RegistrarTest extends BaseTestCase { protected SettingRegistrar $registrar; protected function setUp():...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Console/Commands/PublishCommandTest.php
tests/Console/Commands/PublishCommandTest.php
<?php namespace Tests\Console\Commands; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting as SettingModel; use DarkGhostHunter\Laraconfig\Facades\Setting; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Illumi...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Console/Commands/MigrateCommandTest.php
tests/Console/Commands/MigrateCommandTest.php
<?php namespace Tests\Console\Commands; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting as SettingModel; use DarkGhostHunter\Laraconfig\Facades\Setting; use DarkGhostHunter\Laraconfig\Migrator\Data; use DarkGhostHunter\Laraconfig\Registrar\SettingRegistrar; use Illumi...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Console/Commands/CleanCommandTest.php
tests/Console/Commands/CleanCommandTest.php
<?php namespace Tests\Console\Commands; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\DB; use Tests\BaseTestCase; use Tests\Dummies\DummyModel; class CleanCommandTest extends BaseTes...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/DummyModel.php
tests/Dummies/DummyModel.php
<?php namespace Tests\Dummies; use DarkGhostHunter\Laraconfig\HasConfig; use Illuminate\Database\Eloquent\Model; /** * @method static static find($int) */ class DummyModel extends Model { use HasConfig; protected $table = 'users'; }
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/settings_normal.php
tests/Dummies/settings_normal.php
<?php use DarkGhostHunter\Laraconfig\Facades\Setting; Setting::name('color')->default('red'); Setting::name('notify')->boolean()->default('false')->bag('admins'); Setting::name('birthday')->datetime();
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/settings_migrate_prepare.php
tests/Dummies/settings_migrate_prepare.php
<?php use DarkGhostHunter\Laraconfig\Facades\Setting; Setting::name('foo')->default('foo_default'); Setting::name('bar')->boolean()->default(false)->bag('bar_bag'); Setting::name('baz')->array()->default(['alpha', 'bravo', 'charlie']);
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/DummyModelAdminBag.php
tests/Dummies/DummyModelAdminBag.php
<?php namespace Tests\Dummies; use DarkGhostHunter\Laraconfig\HasConfig; use Illuminate\Database\Eloquent\Model; class DummyModelAdminBag extends Model { use HasConfig; protected $table = 'users'; protected function getSettingBags(): string|array { return ['admins']; } }
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/DummyModelWithoutSettings.php
tests/Dummies/DummyModelWithoutSettings.php
<?php namespace Tests\Dummies; use DarkGhostHunter\Laraconfig\HasConfig; use Illuminate\Database\Eloquent\Model; class DummyModelWithoutSettings extends Model { protected $table = 'users'; }
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/settings_migrate_after.php
tests/Dummies/settings_migrate_after.php
<?php use DarkGhostHunter\Laraconfig\Eloquent\Setting as Model; use DarkGhostHunter\Laraconfig\Facades\Setting; use Illuminate\Support\Arr; Setting::name('foo')->default('new_default'); Setting::name('quz')->boolean()->default(true)->bag('bar_bag')->from('foo'); Setting::name('cougar')->string() ->from('baz') ...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Dummies/settings_all.php
tests/Dummies/settings_all.php
<?php use DarkGhostHunter\Laraconfig\Facades\Setting; Setting::name('array')->array(); Setting::name('boolean')->boolean(); Setting::name('collection')->collection(); Setting::name('datetime')->datetime(); Setting::name('float')->float(); Setting::name('integer')->integer(); Setting::name('string')->string();
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Eloquent/Scopes/FilterBySettingTest.php
tests/Eloquent/Scopes/FilterBySettingTest.php
<?php namespace Tests\Eloquent\Scopes; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Scopes\AddMetadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\HasConfig; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Mod...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/tests/Eloquent/Models/SettingTest.php
tests/Eloquent/Models/SettingTest.php
<?php namespace Tests\Eloquent\Models; use DarkGhostHunter\Laraconfig\Eloquent\Metadata; use DarkGhostHunter\Laraconfig\Eloquent\Scopes\AddMetadata; use DarkGhostHunter\Laraconfig\Eloquent\Setting; use DarkGhostHunter\Laraconfig\SettingsCache; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/config/laraconfig.php
config/laraconfig.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Settings Bag |-------------------------------------------------------------------------- | | Here you set the default Settings Bag to use across the application. If | you're using only o...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/database/migrations/00_00_00_000000_create_user_settings_table.php
database/migrations/00_00_00_000000_create_user_settings_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserSettingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up(): void { Schema::create('user...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/database/migrations/00_00_00_000000_create_user_settings_metadata_table.php
database/migrations/00_00_00_000000_create_user_settings_metadata_table.php
<?php use Illuminate\Contracts\Cache\Repository; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserSettingsMetadataTable extends Migration { /** * Run the migrations. * * @return void */ public fun...
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
DarkGhostHunter/Laraconfig
https://github.com/DarkGhostHunter/Laraconfig/blob/a737a00c398a96313ac0906fdb6f0c4c5689d43f/stubs/users.php
stubs/users.php
<?php use DarkGhostHunter\Laraconfig\Facades\Setting; Setting::name('dark_mode')->boolean();
php
MIT
a737a00c398a96313ac0906fdb6f0c4c5689d43f
2026-01-05T03:54:22.346377Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/.php-cs-fixer.php
.php-cs-fixer.php
<?php use AdamWojs\PhpCsFixerPhpdocForceFQCN\Fixer\Phpdoc\ForceFQCNFixer; use PhpCsFixer\Config; use PhpCsFixer\Finder; $rules = [ '@PSR2' => true, // Each line of multi-line DocComments must have an asterisk [PSR-5] and must be aligned with the first one. // 'align_multiline_comment' => true, // Each...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Link.php
src/Link.php
<?php namespace GDebrauwer\Hateoas; use GDebrauwer\Hateoas\Exceptions\LinkException; use Illuminate\Routing\Exceptions\UrlGenerationException; use Illuminate\Routing\Route; use Illuminate\Routing\Router; use InvalidArgumentException; use Throwable; class Link { protected string $name; protected string $rout...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/LinkCollection.php
src/LinkCollection.php
<?php namespace GDebrauwer\Hateoas; use GDebrauwer\Hateoas\Formatters\Formatter; use Illuminate\Support\Collection; class LinkCollection extends Collection { public function format() : array { return app(Formatter::class)->format($this); } }
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Hateoas.php
src/Hateoas.php
<?php namespace GDebrauwer\Hateoas; use Illuminate\Support\Facades\Facade; /** * @method static array generate(string $class, $arguments = []) * @method static \GDebrauwer\Hateoas\HateoasManager guessHateoasClassNameUsing(callable $callback) * @method static \GDebrauwer\Hateoas\HateoasManager formatLinksUsing(cal...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/HateoasServiceProvider.php
src/HateoasServiceProvider.php
<?php namespace GDebrauwer\Hateoas; use GDebrauwer\Hateoas\Commands\HateoasMakeCommand; use GDebrauwer\Hateoas\Formatters\DefaultFormatter; use GDebrauwer\Hateoas\Formatters\Formatter; use Illuminate\Support\ServiceProvider; class HateoasServiceProvider extends ServiceProvider { public function boot() : void ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/HateoasManager.php
src/HateoasManager.php
<?php namespace GDebrauwer\Hateoas; use GDebrauwer\Hateoas\Formatters\CallbackFormatter; use GDebrauwer\Hateoas\Formatters\Formatter; use Illuminate\Support\Collection; use Illuminate\Support\Str; use InvalidArgumentException; class HateoasManager { protected $guessHateoasClassNameUsingCallback = null; publ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Exceptions/LinkException.php
src/Exceptions/LinkException.php
<?php namespace GDebrauwer\Hateoas\Exceptions; use Exception; use Throwable; class LinkException extends Exception { public static function routeNotFound(string $linkName, string $routeName) : self { return new static( "Link with name `{$linkName}` could not be created " . "be...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Formatters/CallbackFormatter.php
src/Formatters/CallbackFormatter.php
<?php namespace GDebrauwer\Hateoas\Formatters; use GDebrauwer\Hateoas\LinkCollection; class CallbackFormatter implements Formatter { protected $callback; public function __construct(callable $callback) { $this->callback = $callback; } public function format(LinkCollection $links) : arra...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Formatters/Formatter.php
src/Formatters/Formatter.php
<?php namespace GDebrauwer\Hateoas\Formatters; use GDebrauwer\Hateoas\LinkCollection; interface Formatter { public function format(LinkCollection $links) : array; }
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Formatters/DefaultFormatter.php
src/Formatters/DefaultFormatter.php
<?php namespace GDebrauwer\Hateoas\Formatters; use GDebrauwer\Hateoas\LinkCollection; class DefaultFormatter implements Formatter { public function format(LinkCollection $links) : array { return $links->map(function ($link) { return [ 'rel' => $link->name(), ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Traits/HasLinks.php
src/Traits/HasLinks.php
<?php namespace GDebrauwer\Hateoas\Traits; use GDebrauwer\Hateoas\Hateoas; trait HasLinks { public function links(array | string | null $class = null, array $arguments = []) : array { if (is_array($class)) { $arguments = $class; $class = null; } return Hateoas...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Traits/CreatesLinks.php
src/Traits/CreatesLinks.php
<?php namespace GDebrauwer\Hateoas\Traits; use GDebrauwer\Hateoas\Link; trait CreatesLinks { protected function link(...$arguments) : Link { return Link::make(...$arguments); } }
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/src/Commands/HateoasMakeCommand.php
src/Commands/HateoasMakeCommand.php
<?php namespace GDebrauwer\Hateoas\Commands; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Str; use Symfony\Component\Console\Input\InputOption; class HateoasMakeCommand extends GeneratorCommand { protected $name = 'make:hateoas'; protected $description = 'Create a new HATEOAS class'; ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/LinkTest.php
tests/LinkTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Exceptions\LinkException; use GDebrauwer\Hateoas\Link; class LinkTest extends TestCase { /** @test */ public function it_can_be_created_using_static_method() { $this->assertInstanceOf(Link::class, Link::make('message.show', ['messag...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/LinkCollectionTest.php
tests/LinkCollectionTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Formatters\Formatter; use GDebrauwer\Hateoas\LinkCollection; class LinkCollectionTest extends TestCase { /** @test */ public function it_can_format_links_using_the_class_binded_to_formatter_interface() { $links = new LinkCollection(...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/TestCase.php
tests/TestCase.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\HateoasServiceProvider; use GDebrauwer\Hateoas\Tests\App\Providers\RouteServiceProvider; use Orchestra\Testbench\TestCase as BaseTestCase; class TestCase extends BaseTestCase { /** * Register package providers. * * @param mixed $app ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/HasLinksTest.php
tests/HasLinksTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Hateoas; use GDebrauwer\Hateoas\Tests\App\Hateoas\MessageHateoas; use GDebrauwer\Hateoas\Tests\App\Http\Resources\MessageResource; use GDebrauwer\Hateoas\Tests\App\Http\Resources\MessageResourceWithExplicitHateoasClass; use GDebrauwer\Hateoas\Tests\App\...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/HateoasManagerTest.php
tests/HateoasManagerTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Exceptions\LinkException; use GDebrauwer\Hateoas\Formatters\CallbackFormatter; use GDebrauwer\Hateoas\Formatters\DefaultFormatter; use GDebrauwer\Hateoas\Formatters\Formatter; use GDebrauwer\Hateoas\HateoasManager; use GDebrauwer\Hateoas\Link; use GDebr...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/HateaosServiceProviderTest.php
tests/HateaosServiceProviderTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Formatters\DefaultFormatter; use GDebrauwer\Hateoas\Formatters\Formatter; use GDebrauwer\Hateoas\HateoasManager; class HateaosServiceProviderTest extends TestCase { /** @test */ public function it_registers_singleton_for_hateaos_manager() {...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/HateoasFacadeTest.php
tests/HateoasFacadeTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Hateoas; use GDebrauwer\Hateoas\HateoasManager; class HateoasFacadeTest extends TestCase { /** @test */ public function it_returns_an_hateaos_manager_instance() { $this->assertInstanceOf(HateoasManager::class, Hateoas::getFacadeRoot...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/Formatters/CallbackFormatterTest.php
tests/Formatters/CallbackFormatterTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Formatters\CallbackFormatter; use GDebrauwer\Hateoas\Link; use GDebrauwer\Hateoas\LinkCollection; class CallbackFormatterTest extends TestCase { /** * @var \GDebrauwer\Hateoas\LinkCollection */ public $links; /** * Setup the...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/Formatters/DefaultFormatterTest.php
tests/Formatters/DefaultFormatterTest.php
<?php namespace GDebrauwer\Hateoas\Tests; use GDebrauwer\Hateoas\Formatters\DefaultFormatter; use GDebrauwer\Hateoas\Link; use GDebrauwer\Hateoas\LinkCollection; class DefaultFormatterTest extends TestCase { /** * @var \GDebrauwer\Hateoas\LinkCollection */ public $links; /** * @var \GDebr...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Message.php
tests/App/Message.php
<?php namespace GDebrauwer\Hateoas\Tests\App; use GDebrauwer\Hateoas\Tests\App\Models\Message as MessageInModelsDirectory; class Message extends MessageInModelsDirectory { }
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Http/Resources/MessageResourceWithExplicitHateoasClass.php
tests/App/Http/Resources/MessageResourceWithExplicitHateoasClass.php
<?php namespace GDebrauwer\Hateoas\Tests\App\Http\Resources; use GDebrauwer\Hateoas\Tests\App\Hateoas\MessageHateoas; use GDebrauwer\Hateoas\Traits\HasLinks; use Illuminate\Http\Resources\Json\JsonResource; class MessageResourceWithExplicitHateoasClass extends JsonResource { use HasLinks; public function to...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Http/Resources/MessageResource.php
tests/App/Http/Resources/MessageResource.php
<?php namespace GDebrauwer\Hateoas\Tests\App\Http\Resources; use GDebrauwer\Hateoas\Traits\HasLinks; use Illuminate\Http\Resources\Json\JsonResource; class MessageResource extends JsonResource { use HasLinks; public function toArray($request) { return [ 'id' => $this->id, ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Http/Resources/MessageResourceWithExtraArguments.php
tests/App/Http/Resources/MessageResourceWithExtraArguments.php
<?php namespace GDebrauwer\Hateoas\Tests\App\Http\Resources; use GDebrauwer\Hateoas\Traits\HasLinks; use Illuminate\Http\Resources\Json\JsonResource; class MessageResourceWithExtraArguments extends JsonResource { use HasLinks; public function toArray($request) { return [ 'id' => $thi...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Http/Resources/MessageResourceWithExtraArgumentsViaClassParameter.php
tests/App/Http/Resources/MessageResourceWithExtraArgumentsViaClassParameter.php
<?php namespace GDebrauwer\Hateoas\Tests\App\Http\Resources; use GDebrauwer\Hateoas\Traits\HasLinks; use Illuminate\Http\Resources\Json\JsonResource; class MessageResourceWithExtraArgumentsViaClassParameter extends JsonResource { use HasLinks; public function toArray($request) { return [ ...
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false
gdebrauwer/laravel-hateoas
https://github.com/gdebrauwer/laravel-hateoas/blob/f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22/tests/App/Formatters/CustomFormatter.php
tests/App/Formatters/CustomFormatter.php
<?php namespace GDebrauwer\Hateoas\Tests\App\Formatters; use GDebrauwer\Hateoas\Formatters\Formatter; use GDebrauwer\Hateoas\LinkCollection; class CustomFormatter implements Formatter { public function format(LinkCollection $links) : array { return []; } }
php
MIT
f0a51a04c25a3631ef8b0dd689da0f49f9c2ae22
2026-01-05T03:54:35.777186Z
false