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 |
|---|---|---|---|---|---|---|---|---|
verbb/field-manager | https://github.com/verbb/field-manager/blob/dcb654555159ac4812f62907f59efbcc626da276/src/controllers/AuditController.php | src/controllers/AuditController.php | <?php
namespace verbb\fieldmanager\controllers;
use verbb\fieldmanager\FieldManager;
use craft\web\Controller;
use yii\web\Response;
class AuditController extends Controller
{
// Public Methods
// =========================================================================
public function actionIndex(): R... | php | MIT | dcb654555159ac4812f62907f59efbcc626da276 | 2026-01-05T02:28:41.909894Z | false |
verbb/field-manager | https://github.com/verbb/field-manager/blob/dcb654555159ac4812f62907f59efbcc626da276/src/controllers/BaseController.php | src/controllers/BaseController.php | <?php
namespace verbb\fieldmanager\controllers;
use verbb\fieldmanager\FieldManager;
use verbb\fieldmanager\models\Settings;
use Craft;
use craft\base\Field;
use craft\fields\MissingField;
use craft\fields\PlainText;
use craft\helpers\ArrayHelper;
use craft\helpers\Json;
use craft\helpers\StringHelper;
use craft\web\... | php | MIT | dcb654555159ac4812f62907f59efbcc626da276 | 2026-01-05T02:28:41.909894Z | false |
verbb/field-manager | https://github.com/verbb/field-manager/blob/dcb654555159ac4812f62907f59efbcc626da276/src/models/Settings.php | src/models/Settings.php | <?php
namespace verbb\fieldmanager\models;
use craft\base\Model;
class Settings extends Model
{
// Properties
// =========================================================================
public bool $cpSectionEnabled = true;
} | php | MIT | dcb654555159ac4812f62907f59efbcc626da276 | 2026-01-05T02:28:41.909894Z | false |
verbb/field-manager | https://github.com/verbb/field-manager/blob/dcb654555159ac4812f62907f59efbcc626da276/src/twigextensions/Extension.php | src/twigextensions/Extension.php | <?php
namespace verbb\fieldmanager\twigextensions;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
class Extension extends AbstractExtension
{
// Public Methods
// =========================================================================
public function getName(): string
{
return... | php | MIT | dcb654555159ac4812f62907f59efbcc626da276 | 2026-01-05T02:28:41.909894Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->name('*.php');
return (new Config())
->setFinder($finder)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short']... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/helpers.php | src/helpers.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
function prefix_index_name(string $indexName): string
{
return config('elastic.migrations.prefixes.index') . $indexName;
}
function prefix_alias_name(string $aliasName): string
{
return config('elastic.migrations.prefixes.alias') . $aliasName;
}
| php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/MigrationInterface.php | src/MigrationInterface.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
interface MigrationInterface
{
public function up(): void;
public function down(): void;
}
| php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Migrator.php | src/Migrator.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
use Elastic\Migrations\Factories\MigrationFactory;
use Elastic\Migrations\Filesystem\MigrationFile;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Elastic\Migrations\Repositories\MigrationRepository;
use Illuminate\Console\OutputStyle;
use Illumina... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/ServiceProvider.php | src/ServiceProvider.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
use Elastic\Migrations\Adapters\IndexManagerAdapter;
use Elastic\Migrations\Console\FreshCommand;
use Elastic\Migrations\Console\MakeCommand;
use Elastic\Migrations\Console\MigrateCommand;
use Elastic\Migrations\Console\RefreshCommand;
use Elastic\Migration... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/ReadinessInterface.php | src/ReadinessInterface.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
interface ReadinessInterface
{
public function isReady(): bool;
}
| php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/IndexManagerInterface.php | src/IndexManagerInterface.php | <?php declare(strict_types=1);
namespace Elastic\Migrations;
interface IndexManagerInterface
{
public function create(string $indexName, ?callable $modifier = null): self;
public function createRaw(string $indexName, ?array $mapping = null, ?array $settings = null): self;
public function createIfNotExis... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Facades/Index.php | src/Facades/Index.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Facades;
use Elastic\Migrations\IndexManagerInterface;
use Illuminate\Support\Facades\Facade;
/**
* @method static self create(string $indexName, ?callable $modifier = null)
* @method static self createRaw(string $indexName, ?array $mapping = null, ?array... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/FreshCommand.php | src/Console/FreshCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\IndexManagerInterface;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Repositories\MigrationRepository;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
class FreshCommand extends Command
{
... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/MakeCommand.php | src/Console/MakeCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Carbon\Carbon;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
class MakeCommand extends Command
{
/**
* @var string
*/
prot... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/StatusCommand.php | src/Console/StatusCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\Migrator;
use Illuminate\Console\Command;
class StatusCommand extends Command
{
/**
* @var string
*/
protected $signature = 'elastic:migrate:status {--pending}';
/**
* @var string
*/
protec... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/MigrateCommand.php | src/Console/MigrateCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\Migrator;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
class MigrateCommand extends Command
{
use ConfirmableTrait;
/**
* @var string
*/
protected $signature = 'elastic:migra... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/ResetCommand.php | src/Console/ResetCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\Migrator;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
class ResetCommand extends Command
{
use ConfirmableTrait;
/**
* @var string
*/
protected $signature = 'elastic:migrate... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/RefreshCommand.php | src/Console/RefreshCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\Migrator;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
class RefreshCommand extends Command
{
use ConfirmableTrait;
/**
* @var string
*/
protected $signature = 'elastic:migra... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Console/RollbackCommand.php | src/Console/RollbackCommand.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Console;
use Elastic\Migrations\Migrator;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
class RollbackCommand extends Command
{
use ConfirmableTrait;
/**
* @var string
*/
protected $signature = 'elastic:migr... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Filesystem/MigrationFile.php | src/Filesystem/MigrationFile.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Filesystem;
class MigrationFile
{
public const FILE_EXTENSION = '.php';
protected string $filePath;
public function __construct(string $filePath)
{
$this->filePath = $filePath;
}
public function name(): string
{
... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Filesystem/MigrationStorage.php | src/Filesystem/MigrationStorage.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Filesystem;
use const DIRECTORY_SEPARATOR;
use Elastic\Migrations\ReadinessInterface;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Collection;
class MigrationStorage implements ReadinessInterface
{
protected const DIRECTORY_PERMISSIONS =... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Factories/MigrationFactory.php | src/Factories/MigrationFactory.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Factories;
use Elastic\Migrations\Filesystem\MigrationFile;
use Elastic\Migrations\MigrationInterface;
use Illuminate\Support\Str;
class MigrationFactory
{
public function makeFromFile(MigrationFile $file): MigrationInterface
{
require_once ... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Repositories/MigrationRepository.php | src/Repositories/MigrationRepository.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Repositories;
use Elastic\Migrations\ReadinessInterface;
use Illuminate\Database\Query\Builder;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use stdClass;
class MigrationRepository implements R... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/src/Adapters/IndexManagerAdapter.php | src/Adapters/IndexManagerAdapter.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Adapters;
use Elastic\Adapter\Indices\Index;
use Elastic\Adapter\Indices\IndexManager;
use Elastic\Adapter\Indices\Mapping;
use Elastic\Adapter\Indices\Settings;
use Elastic\Migrations\IndexManagerInterface;
use function Elastic\Migrations\prefix_alias_name;... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/TestCase.php | tests/Integration/TestCase.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration;
use Elastic\Client\ServiceProvider as ClientServiceProvider;
use Elastic\Elasticsearch\Client;
use Elastic\Elasticsearch\ClientBuilder;
use Elastic\Migrations\ServiceProvider as MigrationsServiceProvider;
use Illuminate\Config\Repository;
... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/MigratorTest.php | tests/Integration/MigratorTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration;
use Elastic\Migrations\Facades\Index;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Elastic\Migrations\Migrator;
use Illuminate\Console\OutputStyle;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facade... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Facades/IndexTest.php | tests/Integration/Facades/IndexTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Facades;
use Elastic\Migrations\Facades\Index;
use Elastic\Migrations\IndexManagerInterface;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(Index::class)]
final class IndexTes... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/ResetCommandTest.php | tests/Integration/Console/ResetCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\ResetCommand;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/MakeCommandTest.php | tests/Integration/Console/MakeCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\MakeCommand;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use Symfony\Component\Console\Input\Ar... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/StatusCommandTest.php | tests/Integration/Console/StatusCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\StatusCommand;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\MockObject\MockObject;
use Symfon... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/RollbackCommandTest.php | tests/Integration/Console/RollbackCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\RollbackCommand;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\MockObject\MockObject;
use Symf... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/MigrateCommandTest.php | tests/Integration/Console/MigrateCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\MigrateCommand;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\MockObject\MockObject;
use Symfo... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/FreshCommandTest.php | tests/Integration/Console/FreshCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\FreshCommand;
use Elastic\Migrations\IndexManagerInterface;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Repositories\MigrationRepository;
use Elastic\Migrations\Tests\Integration\TestCase;... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Console/RefreshCommandTest.php | tests/Integration/Console/RefreshCommandTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Console;
use Elastic\Migrations\Console\RefreshCommand;
use Elastic\Migrations\Migrator;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\MockObject\MockObject;
use Symfo... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Filesystem/MigrationStorageTest.php | tests/Integration/Filesystem/MigrationStorageTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Filesystem;
use Elastic\Migrations\Filesystem\MigrationFile;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Elastic\Migrations\Tests\Integration\TestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attribut... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Factories/MigrationFactoryTest.php | tests/Integration/Factories/MigrationFactoryTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Factories;
use Elastic\Migrations\Factories\MigrationFactory;
use Elastic\Migrations\Filesystem\MigrationFile;
use Elastic\Migrations\Filesystem\MigrationStorage;
use Elastic\Migrations\MigrationInterface;
use Elastic\Migrations\Tests\Integ... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Repositories/MigrationRepositoryTest.php | tests/Integration/Repositories/MigrationRepositoryTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Repositories;
use Elastic\Migrations\Repositories\MigrationRepository;
use Elastic\Migrations\Tests\Integration\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\S... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Integration/Adapters/IndexManagerAdapterTest.php | tests/Integration/Adapters/IndexManagerAdapterTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Integration\Adapters;
use Elastic\Adapter\Indices\Index;
use Elastic\Adapter\Indices\IndexManager;
use Elastic\Adapter\Indices\Mapping;
use Elastic\Adapter\Indices\Settings;
use Elastic\Migrations\Adapters\IndexManagerAdapter;
use Elastic\Migrations\Te... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/migrations/2018_12_01_081000_create_test_index.php | tests/migrations/2018_12_01_081000_create_test_index.php | <?php declare(strict_types=1);
use Elastic\Elasticsearch\Client;
use Elastic\Migrations\Facades\Index;
use Elastic\Migrations\MigrationInterface;
final class CreateTestIndex implements MigrationInterface
{
private Client $client;
public function __construct(Client $client)
{
$this->client = $clie... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/migrations/2019_08_10_142230_update_test_index_mapping.php | tests/migrations/2019_08_10_142230_update_test_index_mapping.php | <?php declare(strict_types=1);
use Elastic\Adapter\Indices\Mapping;
use Elastic\Migrations\Facades\Index;
use Elastic\Migrations\MigrationInterface;
final class UpdateTestIndexMapping implements MigrationInterface
{
public function up(): void
{
Index::putMapping('test', static function (Mapping $mappi... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/migrations/archive/2017_11_11_100000_create_test_alias.php | tests/migrations/archive/2017_11_11_100000_create_test_alias.php | <?php declare(strict_types=1);
use Elastic\Migrations\Facades\Index;
use Elastic\Migrations\MigrationInterface;
final class CreateTestAlias implements MigrationInterface
{
public function up(): void
{
Index::putAlias('tmp', 'test');
}
public function down(): void
{
Index::drop('tm... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/tests/Unit/Filesystem/MigrationFileTest.php | tests/Unit/Filesystem/MigrationFileTest.php | <?php declare(strict_types=1);
namespace Elastic\Migrations\Tests\Unit\Filesystem;
use Elastic\Migrations\Filesystem\MigrationFile;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;
#[CoversClass(MigrationFile::class)]
final class MigrationFileTest extends TestCase
{
private const FUL... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/config/elastic.migrations.php | config/elastic.migrations.php | <?php declare(strict_types=1);
return [
'storage' => [
'default_path' => env('ELASTIC_MIGRATIONS_DEFAULT_PATH', base_path('elastic/migrations'))
],
'database' => [
'table' => env('ELASTIC_MIGRATIONS_TABLE', 'elastic_migrations'),
'connection' => env('ELASTIC_MIGRATIONS_CONNECTION'),... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
babenkoivan/elastic-migrations | https://github.com/babenkoivan/elastic-migrations/blob/e352a6e905cc1969afdee76d4fadb05837c23406/database/migrations/2019_15_12_112000_create_elastic_migrations_table.php | database/migrations/2019_15_12_112000_create_elastic_migrations_table.php | <?php declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateElasticMigrationsTable extends Migration
{
private string $table;
public function __construct()
{
$this->table = config('elasti... | php | MIT | e352a6e905cc1969afdee76d4fadb05837c23406 | 2026-01-05T02:28:44.545856Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/server.php | server.php | <?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. Thi... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/_ide_helper.php | _ide_helper.php | <?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.4.32 on 2017-08-10.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed b... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | true |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Exceptions/Handler.php | app/Exceptions/Handler.php | <?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protect... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Exceptions/ImageUploadException.php | app/Exceptions/ImageUploadException.php | <?php
/**
* 图片上传异常
* Created by PhpStorm.
* User: ADKi
* Date: 2017/3/9 0009
* Time: 9:44
* @author DukeAnn
*/
namespace App\Exceptions;
class ImageUploadException extends \Exception
{
} | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Kernel.php | app/Http/Kernel.php | <?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Requests/PermissionPost.php | app/Http/Requests/PermissionPost.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Entrust;
class PermissionPost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if (request()->isMethod('POS... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Requests/RolePost.php | app/Http/Requests/RolePost.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Entrust;
class RolePost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if (request()->isMethod('POST')) {... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Requests/ArticlePost.php | app/Http/Requests/ArticlePost.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Entrust;
class ArticlePost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Requests/MenuTablePost.php | app/Http/Requests/MenuTablePost.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Entrust;
class MenuTablePost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
if (request()->isMethod('POST... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Requests/ArticleCategoriesPost.php | app/Http/Requests/ArticleCategoriesPost.php | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ArticleCategoriesPost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
*... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Controller.php | app/Http/Controllers/Controller.php | <?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Auth;
use App\Models\User;
class Controller extends BaseContro... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Member/Controller.php | app/Http/Controllers/Member/Controller.php | <?php
namespace App\Http\Controllers\Member;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Auth;
use App\Models\User;
class Controller extends Bas... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Member/MemberController.php | app/Http/Controllers/Member/MemberController.php | <?php
/**
* 会员中心
* */
namespace App\Http\Controllers\Member;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\User;
class MemberController extends Controller
{
protected $model_user;
public function __construct(User $user)
{
$this->model_user = $user;
}
//... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/PictureController.php | app/Http/Controllers/Admin/PictureController.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Services\ImageUpload;
use Image;
use App\Exceptions\ImageUploadException;
use Storage;
use App\Repositories\Eloquent\ImageRepositoryEloquent;
use Auth;
class PictureController extends Controller
{
// 图片上传服务类
protected $imageUplo... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/ArticleTagController.php | app/Http/Controllers/Admin/ArticleTagController.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repositories\Eloquent\ArticleTagRepositoryEloquent;
use Yajra\Datatables\Facades\Datatables;
use App\Services\ArticleCateTag;
class ArticleTagController extends Controller
{
protected $articleTag... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/IndexController.php | app/Http/Controllers/Admin/IndexController.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
class IndexController extends Controller
{
//
public function index()
{
return view('admin.index');
}
public function icon()
{
return view('admin.icon');
}
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/ArticleCategoriesController.php | app/Http/Controllers/Admin/ArticleCategoriesController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\ArticleCategoriesPost;
use App\Http\Controllers\Controller;
use App\Repositories\Eloquent\ArticleCategoryRepositoryEloquent;
use Illuminate\Http\Request;
use App\Services\ArticleCateTag;
class ArticleCategoriesController extends Controller
{
prot... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/SettingController.php | app/Http/Controllers/Admin/SettingController.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Repositories\Eloquent\AdminSettingRepositoryEloquent;
class SettingController extends Controller
{
protected $adminSettingRepositoryEloquent;
public function __construct(AdminSettingRepositoryEloquent $adminSettingRepositoryElo... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/Controller.php | app/Http/Controllers/Admin/Controller.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use Authorizes... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/LogViewerController.php | app/Http/Controllers/Admin/LogViewerController.php | <?php
/**
* 日志查看 只支持日志类型为daily
* */
namespace App\Http\Controllers\Admin;
use Arcanedev\LogViewer\Contracts\LogViewer as LogViewerContract;
use Arcanedev\LogViewer\Exceptions\LogNotFoundException;
use Arcanedev\LogViewer\Tables\StatsTable;
use Illuminate\Http\Request;
use Illuminate\Pagination\LengthAwarePaginator;
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/MenuTableController.php | app/Http/Controllers/Admin/MenuTableController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\MenuTablePost;
use App\Models\Permission;
use Illuminate\Http\Request;
use App\Repositories\Eloquent\MenuRepositoryEloquent;
class MenuTableController extends Controller
{
private $model_menu;
/**
* 依赖注入
* @param MenuRepositoryEloque... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/UserController.php | app/Http/Controllers/Admin/UserController.php | <?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Yajra\Datatables\Facades\Datatables;
use App\Models\Role;
use App\Repositories\Eloquent\UserRepositoryEloquent;
use App\Models\User;
class UserController extends Controller
{
protected $userRepositoryEloquent;
public function __con... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/ArticleController.php | app/Http/Controllers/Admin/ArticleController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Repositories\Eloquent\ArticleRepositoryEloquent;
use App\Http\Requests\ArticlePost;
use Auth;
use App\Services\ImageUpload;
use App\Repositories\Eloquent\ImageRepositoryEloquent;
use App\Services\ArticleCateTag;
use Illuminate\Http\Request;
use Yajra\Datatables\Faca... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/PermissionController.php | app/Http/Controllers/Admin/PermissionController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Models\Permission;
use App\Http\Requests\PermissionPost;
use Yajra\Datatables\Facades\Datatables;
use App\Models\Role;
class PermissionController extends Controller
{
/**
* 用户权限组
* @var PermissionPost
* */
protected $model_permission;
/*... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Admin/RoleController.php | app/Http/Controllers/Admin/RoleController.php | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\RolePost;
use App\Models\Role;
use App\Models\Permission;
use App\Presenters\Admin\rolePermissionsPresenter;
class RoleController extends Controller
{
/**
* 用户权限组
* @var Role
* */
protected $model_role;
/**
* 依赖注入
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Auth/LoginController.php | app/Http/Controllers/Auth/LoginController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Auth;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Contr... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Auth/ForgotPasswordController.php | app/Http/Controllers/Auth/ForgotPasswordController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Password;
class ForgotPasswordController extends Controller
{
/*
|----------------------------------------------... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Auth/ResetPasswordController.php | app/Http/Controllers/Auth/ResetPasswordController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Controllers/Auth/RegisterController.php | app/Http/Controllers/Auth/RegisterController.php | <?php
namespace App\Http\Controllers\Auth;
use App\Models\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\Request;
use App\Models\Role;
use Illuminate\Auth\Events\Registered;
class RegisterController extends Controller
{
/*
|-------... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Middleware/RedirectIfAuthenticated.php | app/Http/Middleware/RedirectIfAuthenticated.php | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Middleware/CheckPermission.php | app/Http/Middleware/CheckPermission.php | <?php
/**
* 方法中检查是否有权限
* */
namespace App\Http\Middleware;
use App\Models\Menu;
use Closure;
use Route;
use App\Models\Permission;
use Entrust;
use Request;
class CheckPermission
{
/**
* 根据路由名称查询路由绑定的权限
* 使用Entrust门面查询是否有权限
* @param \Illuminate\Http\Request $request
* @param \Closure $ne... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Middleware/TrimStrings.php | app/Http/Middleware/TrimStrings.php | <?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
class TrimStrings extends BaseTrimmer
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_co... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Middleware/EncryptCookies.php | app/Http/Middleware/EncryptCookies.php | <?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
class EncryptCookies extends BaseEncrypter
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/Middleware/VerifyCsrfToken.php | app/Http/Middleware/VerifyCsrfToken.php | <?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'admin/picture/*',
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Http/ViewComposers/SidebarMenuComposer.php | app/Http/ViewComposers/SidebarMenuComposer.php | <?php
/**
* Admin后台Sidebar菜单数据
* Created by PhpStorm.
* User: ADKi
* Date: 2016/11/17 0017
* Time: 22:39
*/
namespace App\Http\ViewComposers;
use Illuminate\Contracts\View\View;
use App\Repositories\Eloquent\MenuRepositoryEloquent;
use Cache;
class SidebarMenuComposer
{
/**
* 菜单
*
* @var Men... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Presenters/Admin/CrumbsPresenter.php | app/Presenters/Admin/CrumbsPresenter.php | <?php
/**
* 后台页面面包屑html
* Created by PhpStorm.
* User: ADKi
* Date: 2016/11/30 0030
* Time: 11:04
* @author ADKi
*/
namespace App\Presenters\Admin;
use Route;
class CrumbsPresenter
{
/**
* 获取网页title
* */
public function getTitle()
{
//获取当前的菜单名称
$route_name = Route::curren... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Presenters/Admin/rolePermissionsPresenter.php | app/Presenters/Admin/rolePermissionsPresenter.php | <?php
/**
* 用户组选权限html组件
* Created by PhpStorm.
* User: ADKi
* Date: 2016/11/23 0023
* Time: 21:00
*/
namespace App\Presenters\Admin;
class rolePermissionsPresenter
{
/**
* 将用户权限分组排列
* @param array $permissions 权限
* @param array $rolePer 用户组
* @return string
* */
public function... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Presenters/Admin/ArticleCategoriesPresenter.php | app/Presenters/Admin/ArticleCategoriesPresenter.php | <?php
/**
* Created by PhpStorm.
* User: ADKi
* Date: 2017/4/5 0005
* Time: 17:07
* @author DukeAnn
*/
namespace App\Presenters\Admin;
use Route;
class ArticleCategoriesPresenter
{
/*
* 文章分类列表
* */
public function cateOrderList($cates)
{
$html = '<ol class="dd-list">';
for... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Presenters/Admin/MenuPresenter.php | app/Presenters/Admin/MenuPresenter.php | <?php
/**
* admin视图层左侧菜单html组件
* Created by PhpStorm.
* User: 雷雷
* Date: 2016/11/20
* Time: 22:31
*/
namespace App\Presenters\Admin;
use Entrust;
use App\Models\Permission;
use App\Repositories\Eloquent\MenuRepositoryEloquent;
use Route;
class MenuPresenter
{
//展开菜单标识
static private $open;
//选中菜单标识... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/helpers/helper.php | app/helpers/helper.php | <?php
/**
* 帮助函数
* Created by PhpStorm.
* User: ADKi
* Date: 2017/3/8 0008
* Time: 15:06
* @author DukeAnn
*/
use App\Repositories\Eloquent\AdminSettingRepositoryEloquent;
/**
* 返回可读性更好的文件尺寸
*/
function human_filesize($bytes, $decimals = 2)
{
$size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB'];
$factor = floo... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Services/ImageUpload.php | app/Services/ImageUpload.php | <?php
namespace App\Services;
/**
* Created by PhpStorm.
* User: ADKi
* Date: 2017/3/8 0008
* Time: 14:32
* @author DukeAnn
*/
use Symfony\Component\HttpFoundation\File\UploadedFile;
use App\Exceptions\ImageUploadException;
use Image;
use Auth;
class ImageUpload
{
/**
* @var UploadedFile $file
*/
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Services/ArticleCateTag.php | app/Services/ArticleCateTag.php | <?php
/**
* 文章,分类,标签关联服务
* Created by PhpStorm.
* User: ADKi
* Date: 2017/4/10 0010
* Time: 14:17
* @author DukeAnn
*/
namespace App\Services;
use App\Repositories\Eloquent\ArticleCategoryRepositoryEloquent;
use App\Repositories\Eloquent\ArticleRepositoryEloquent;
use App\Repositories\Eloquent\ArticleTagReposi... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Console/Kernel.php | app/Console/Kernel.php | <?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Console/Commands/AdminInstall.php | app/Console/Commands/AdminInstall.php | <?php
/**
* Created by PhpStorm.
* User: ADKi
* Date: 2017/7/19 0019
* Time: 14:06
* @author DukeAnn
*/
namespace App\Console\Commands;
use Illuminate\Console\Command;
class AdminInstall extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protect... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/ArticleCategory.php | app/Models/ArticleCategory.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class ArticleCategory extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [];
/*
* 多对多关联文章表
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Zizaco\Entrust\Traits\EntrustUserTrait;
class User extends Authenticatable implements Tran... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/Image.php | app/Models/Image.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class Image extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [];
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/Article.php | app/Models/Article.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class Article extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [];
/*
* 多对多关联分类表
* */
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/Menu.php | app/Models/Menu.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class Menu extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = ['parent_id', 'order', 'name', 'icon', 'uri'... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/Role.php | app/Models/Role.php | <?php
/**
* Created by PhpStorm.
* User: ADKi
* Date: 2016/11/14 0014
* Time: 9:28
* @author ADKi
*/
namespace App\Models;
use Zizaco\Entrust\EntrustRole;
class Role extends EntrustRole
{
/**
* 创建用户组
* @param object $request
* */
public function createRole($request)
{
$this->n... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/AdminSetting.php | app/Models/AdminSetting.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class AdminSetting extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [];
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/Permission.php | app/Models/Permission.php | <?php
/**
* Created by PhpStorm.
* User: ADKi
* Date: 2016/11/14 0014
* Time: 9:31
* @author ADKi
*/
namespace App\Models;
use Zizaco\Entrust\EntrustPermission;
class Permission extends EntrustPermission
{
/**
* 创建用户权限
* @param object $request
* @return bool
* */
public function crea... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/ArticleTag.php | app/Models/ArticleTag.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class ArticleTag extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [];
/*
* 多对多关联文章表
* */
... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Models/ArticleCate.php | app/Models/ArticleCate.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class ArticleCate extends Pivot
{
protected $table = 'article_cate';
// 不自动维护时间戳
public $timestamps = false;
/**
* 可以被批量赋值的属性。
*
* @var array
*/
public $fillable = ['article_category_id', 'article... | php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Repositories/Contracts/ArticleRepository.php | app/Repositories/Contracts/ArticleRepository.php | <?php
namespace App\Repositories\Contracts;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface ArticleRepository
* @package namespace App\Repositories\Contracts;
*/
interface ArticleRepository extends RepositoryInterface
{
//
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
DukeAnn/Laradmin | https://github.com/DukeAnn/Laradmin/blob/b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278/app/Repositories/Contracts/ImageRepository.php | app/Repositories/Contracts/ImageRepository.php | <?php
namespace App\Repositories\Contracts;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface ImageRepository
* @package namespace App\Repositories\Contracts;
*/
interface ImageRepository extends RepositoryInterface
{
//
}
| php | MIT | b9187cee078ee3f86b5dffe0ef9ca99c1f7ae278 | 2026-01-05T02:28:08.450404Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.