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 |
|---|---|---|---|---|---|---|---|---|
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/User/Tests/GetUserTest.php | app/Api/User/Tests/GetUserTest.php | <?php
namespace App\Api\User\Tests;
use Domain\User\User;
use Tests\TestCase;
class GetUserTest extends TestCase
{
public function test_can_get_user()
{
$user = User::factory()->create();
$user2 = User::factory()->create();
$this->actingAs($user);
$this->getJson(route('users.... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/User/Tests/GetMeTest.php | app/Api/User/Tests/GetMeTest.php | <?php
namespace App\Api\User\Tests;
use Domain\User\User;
use Tests\TestCase;
class GetMeTest extends TestCase
{
public function test_user_can_get_me()
{
$user = User::factory()->create();
$this->actingAs($user);
$this->getJson(route('users.me'))->assertSuccessful()
->ass... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/User/Tests/UserAgentTest.php | app/Api/User/Tests/UserAgentTest.php | <?php
namespace App\Api\User\Tests;
use Carbon\Carbon;
use Domain\User\User;
use Domain\User\UserAgent;
use Tests\TestCase;
class UserAgentTest extends TestCase
{
public function test_record_user_agent_middleware_create_availability()
{
$alex = User::factory()->create();
// 任意访问一个地址通过中间件记录 U... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/routes.php | app/Api/Auth/routes.php | <?php
use App\Api\Auth\Endpoints;
use Illuminate\Support\Facades\Route;
Route::prefix('auth')
->group(function () {
Route::post('login', Endpoints\Login::class)->name('auth.login');
Route::post('register', Endpoints\Register::class)->name('auth.register');
Route::middleware('auth:sanctum'... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/Endpoints/Login.php | app/Api/Auth/Endpoints/Login.php | <?php
namespace App\Api\Auth\Endpoints;
use Domain\User\User;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException;
class Login
{
use ValidatesRequests;
/**
* @throws \Illuminate\Validatio... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/Endpoints/Register.php | app/Api/Auth/Endpoints/Register.php | <?php
namespace App\Api\Auth\Endpoints;
use Domain\User\User;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
class Register
{
use ValidatesRequests;
public function __invoke(Request $request): array
{
$request->validate([
'username' => 'required|... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/Endpoints/Logout.php | app/Api/Auth/Endpoints/Logout.php | <?php
namespace App\Api\Auth\Endpoints;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class Logout
{
public function __invoke(Request $request): Response
{
$request->user()->tokens()->delete();
return \response()->noContent();
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/Tests/RegisterTest.php | app/Api/Auth/Tests/RegisterTest.php | <?php
namespace App\Api\Auth\Tests;
use Domain\User\User;
use Tests\TestCase;
class RegisterTest extends TestCase
{
/** @test */
public function can_register()
{
$this->postJson(route('auth.register'), [
'nickname' => 'Test User',
'username' => 'test@test.app',
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/app/Api/Auth/Tests/LoginTest.php | app/Api/Auth/Tests/LoginTest.php | <?php
namespace App\Api\Auth\Tests;
use Domain\User\User;
use Tests\TestCase;
class LoginTest extends TestCase
{
public function test_can_login_with_username_and_password()
{
$user = User::factory()->create();
$this->postJson(route('auth.login'), [
'username' => $user->username,
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/bootstrap/app.php | bootstrap/app.php | <?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of La... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/bootstrap/helpers.php | bootstrap/helpers.php | <?php
if (! function_exists('format_relation_ids')) {
function format_relation_ids(array $items, string $key = 'id')
{
if (is_array($first = \reset($items)) && \array_key_exists($key, $first)) {
return \array_column($items, $key);
}
return $items;
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Laravel\Sanctum\Sanctum;
abstract class TestCase extends BaseTestCase
{
use RefreshDatabase;
use CreatesAppl... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/tests/CreatesApplication.php | tests/CreatesApplication.php | <?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Exceptions/Handler.php | infrastructure/Exceptions/Handler.php | <?php
namespace Infrastructure\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Validation\ValidationException;
class Handler extends ExceptionHandler
{
/**
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
*/
protected $levels = [
//
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Kernel.php | infrastructure/Http/Kernel.php | <?php
namespace Infrastructure\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use Infrastructure\Http\Middleware\AcceptJsonResponse;
use Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/AcceptJsonResponse.php | infrastructure/Http/Middleware/AcceptJsonResponse.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class AcceptJsonResponse
{
public function handle(Request $request, Closure $next)
{
$request->headers->set('Accept', 'application/json');
return $next($request);
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/Authenticate.php | infrastructure/Http/Middleware/Authenticate.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
protected function redirectTo($request)
{
return null;
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/RedirectIfAuthenticated.php | infrastructure/Http/Middleware/RedirectIfAuthenticated.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
public function handle($request, Closure $next, ...$guards)
{
$guards = empty($guards) ? [null] : $guards;
foreach ($guards as $guard) {
if (Auth::gua... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/TrustProxies.php | infrastructure/Http/Middleware/TrustProxies.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Http\Middleware\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array<int, string>|string|null
*/
protected $proxies;
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/RefreshUserActiveAt.php | infrastructure/Http/Middleware/RefreshUserActiveAt.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Domain\User\Jobs\RefreshUserFirstActivedAt;
use Domain\User\Jobs\RefreshUserLastActiveAt;
use Illuminate\Http\Request;
class RefreshUserActiveAt
{
public function handle(Request $request, Closure $next): mixed
{
if (\Auth::hasUser()) {
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/PreventRequestsDuringMaintenance.php | infrastructure/Http/Middleware/PreventRequestsDuringMaintenance.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
class PreventRequestsDuringMaintenance extends Middleware
{
/**
* The URIs that should be reachable while maintenance mode is enabled.
*
* @var array
*/
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/TrimStrings.php | infrastructure/Http/Middleware/TrimStrings.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'pa... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/SetLocale.php | infrastructure/Http/Middleware/SetLocale.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class SetLocale
{
public function handle(Request $request, Closure $next): mixed
{
if ($locale = $this->parseLocale($request)) {
app()->setLocale($locale);
}
return $next($request);
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/UseApiGuard.php | infrastructure/Http/Middleware/UseApiGuard.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class UseApiGuard
{
public function handle(Request $request, Closure $next)
{
\Auth::shouldUse('api');
return $next($request);
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/StoreUserAgent.php | infrastructure/Http/Middleware/StoreUserAgent.php | <?php
namespace Infrastructure\Http\Middleware;
use Closure;
use Domain\User\UserAgent;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
class StoreUserAgent
{
public function handle(Request $request, Closure $next): mixed
{
if (Auth::check()) {
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/EncryptCookies.php | infrastructure/Http/Middleware/EncryptCookies.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
class EncryptCookies extends Middleware
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
];
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Http/Middleware/VerifyCsrfToken.php | infrastructure/Http/Middleware/VerifyCsrfToken.php | <?php
namespace Infrastructure\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Traits/UseTableNameAsMorphClass.php | infrastructure/Traits/UseTableNameAsMorphClass.php | <?php
namespace Infrastructure\Traits;
trait UseTableNameAsMorphClass
{
public function getMorphClass(): string
{
return $this->getTable();
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Traits/UsingUuidAsPrimaryKey.php | infrastructure/Traits/UsingUuidAsPrimaryKey.php | <?php
namespace Infrastructure\Traits;
use Illuminate\Support\Str;
trait UsingUuidAsPrimaryKey
{
public static function bootUsingUuidAsPrimaryKey(): void
{
static::creating(function (self $model): void {
/* @var \Illuminate\Database\Eloquent\Model|\App\Traits\UsingUuidAsPrimaryKey $model ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Actions/Action.php | infrastructure/Actions/Action.php | <?php
namespace Infrastructure\Actions;
use Illuminate\Support\Fluent;
use Mockery\CompositeExpectation;
use Mockery\Expectation;
use Mockery\ExpectationInterface;
use Mockery\HigherOrderMessage;
use Mockery\MockInterface;
/**
* @method static CompositeExpectation spy(string $method)
* @method static CompositeExpe... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Actions/FakeAction.php | infrastructure/Actions/FakeAction.php | <?php
namespace Infrastructure\Actions;
use Closure;
use Illuminate\Support\Fluent;
use Mockery;
use Mockery\Expectation;
use Mockery\ExpectationInterface;
use Mockery\HigherOrderMessage;
use Mockery\Mock;
use Mockery\MockInterface;
use PHPUnit\Framework\Assert as PHPUnit;
class FakeAction
{
protected static arr... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Providers/BroadcastServiceProvider.php | infrastructure/Providers/BroadcastServiceProvider.php | <?php
namespace Infrastructure\Providers;
use Illuminate\Support\Facades\Broadcast;
use Illuminate\Support\ServiceProvider;
class BroadcastServiceProvider extends ServiceProvider
{
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Providers/RouteServiceProvider.php | infrastructure/Providers/RouteServiceProvider.php | <?php
namespace Infrastructure\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends Ser... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Providers/EventServiceProvider.php | infrastructure/Providers/EventServiceProvider.php | <?php
namespace Infrastructure\Providers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
protected $listen = [
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Providers/AppServiceProvider.php | infrastructure/Providers/AppServiceProvider.php | <?php
namespace Infrastructure\Providers;
use Illuminate\Http\Request;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
$this->registerRequestRelationMarco();
}
public function register()
{
}
public function regi... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Providers/AuthServiceProvider.php | infrastructure/Providers/AuthServiceProvider.php | <?php
namespace Infrastructure\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
use Laravel\Sanctum\Sanctum;
class AuthServiceProvider extends ServiceProvider
{
protected $policies = [];
public function boot()
{
$... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/GeneratorServiceProvider.php | infrastructure/Generator/GeneratorServiceProvider.php | <?php
namespace Infrastructure\Generator;
use Illuminate\Support\ServiceProvider;
class GeneratorServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->commands([
// app
Commands\App\CreateAppCommand::class,
Commands\App\CreateEndpointC... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/DomainHelper.php | infrastructure/Generator/DomainHelper.php | <?php
namespace Infrastructure\Generator;
use Illuminate\Support\Str;
class DomainHelper
{
public static function getStub(string $name): string
{
return __DIR__.'/stubs/'.$name.'.stub';
}
public static function getNamespace(string $domain, ...$appends): string
{
$domain = Str::st... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/AppHelper.php | infrastructure/Generator/AppHelper.php | <?php
namespace Infrastructure\Generator;
use Illuminate\Support\Str;
class AppHelper
{
public static function getStub(string $name): string
{
return __DIR__.'/stubs/'.$name.'.stub';
}
public static function getNamespace(string $domain, ...$appends): string
{
$domain = Str::studl... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/WithAppOption.php | infrastructure/Generator/Commands/WithAppOption.php | <?php
namespace Infrastructure\Generator\Commands;
use Illuminate\Support\Str;
use Infrastructure\Generator\AppHelper;
use Symfony\Component\Console\Input\InputOption;
trait WithAppOption
{
protected function getOptions(): array
{
return array_merge([
['app', 'a', InputOption::VALUE_OPTIO... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/WithDomainOption.php | infrastructure/Generator/Commands/WithDomainOption.php | <?php
namespace Infrastructure\Generator\Commands;
use Illuminate\Support\Str;
use Infrastructure\Generator\DomainHelper;
use Symfony\Component\Console\Input\InputOption;
trait WithDomainOption
{
protected function getOptions(): array
{
return array_merge(
[
['domain', 'd'... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateModelCommand.php | infrastructure/Generator/Commands/Domain/CreateModelCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Illuminate\Support\Str;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateModelCommand extends \Illuminate\Foundation\Console\ModelMakeCommand
{
use WithDomainOption;
protected function createController()
{
$controll... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateObserverCommand.php | infrastructure/Generator/Commands/Domain/CreateObserverCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateObserverCommand extends \Illuminate\Foundation\Console\ObserverMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateMailCommand.php | infrastructure/Generator/Commands/Domain/CreateMailCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateMailCommand extends \Illuminate\Foundation\Console\MailMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateChannelCommand.php | infrastructure/Generator/Commands/Domain/CreateChannelCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateChannelCommand extends \Illuminate\Foundation\Console\ChannelMakeCommand
{
use WithDomainOption;
public function getAppendNamespace(): string
{
return 'Broadcasting';
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateFilterCommand.php | infrastructure/Generator/Commands/Domain/CreateFilterCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use EloquentFilter\Commands\MakeEloquentFilter;
use Illuminate\Console\Concerns\InteractsWithIO;
use Illuminate\Support\Str;
use Infrastructure\Generator\Commands\WithDomainOption;
use Infrastructure\Generator\DomainHelper;
class CreateFilterCommand extends M... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateListenerCommand.php | infrastructure/Generator/Commands/Domain/CreateListenerCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Illuminate\Support\Str;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateListenerCommand extends \Illuminate\Foundation\Console\ListenerMakeCommand
{
use WithDomainOption;
protected function buildClass($name): array|string
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateRuleCommand.php | infrastructure/Generator/Commands/Domain/CreateRuleCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithAppOption;
class CreateRuleCommand extends \Illuminate\Foundation\Console\RuleMakeCommand
{
use WithAppOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateDomainCommand.php | infrastructure/Generator/Commands/Domain/CreateDomainCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
use Infrastructure\Generator\DomainHelper;
class CreateDomainCommand extends Command
{
const SCAFFOLD_FOLDERS = [
'Actions',
'Models',
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateCastCommand.php | infrastructure/Generator/Commands/Domain/CreateCastCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateCastCommand extends \Illuminate\Foundation\Console\CastMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateActionCommand.php | infrastructure/Generator/Commands/Domain/CreateActionCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Illuminate\Console\GeneratorCommand;
use Infrastructure\Generator\Commands\WithDomainOption;
use Infrastructure\Generator\DomainHelper;
class CreateActionCommand extends GeneratorCommand
{
use WithDomainOption;
protected $name = 'make:action {nam... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateFactoryCommand.php | infrastructure/Generator/Commands/Domain/CreateFactoryCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Illuminate\Database\Console\Factories\FactoryMakeCommand;
use Illuminate\Support\Str;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateFactoryCommand extends FactoryMakeCommand
{
use WithDomainOption;
protected function buildCl... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreatePolicyCommand.php | infrastructure/Generator/Commands/Domain/CreatePolicyCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreatePolicyCommand extends \Illuminate\Foundation\Console\PolicyMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateEventCommand.php | infrastructure/Generator/Commands/Domain/CreateEventCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateEventCommand extends \Illuminate\Foundation\Console\EventMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateJobCommand.php | infrastructure/Generator/Commands/Domain/CreateJobCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateJobCommand extends \Illuminate\Foundation\Console\JobMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateExceptionCommand.php | infrastructure/Generator/Commands/Domain/CreateExceptionCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateExceptionCommand extends \Illuminate\Foundation\Console\ExceptionMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateScopeCommand.php | infrastructure/Generator/Commands/Domain/CreateScopeCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateScopeCommand extends \Illuminate\Foundation\Console\ScopeMakeCommand
{
use WithDomainOption;
protected function getDefaultNamespace($rootNamespace): string
{
if (null !==... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/Domain/CreateNotificationCommand.php | infrastructure/Generator/Commands/Domain/CreateNotificationCommand.php | <?php
namespace Infrastructure\Generator\Commands\Domain;
use Infrastructure\Generator\Commands\WithDomainOption;
class CreateNotificationCommand extends \Illuminate\Foundation\Console\NotificationMakeCommand
{
use WithDomainOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateControllerCommand.php | infrastructure/Generator/Commands/App/CreateControllerCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
use Infrastructure\Generator\AppHelper;
use Infrastructure\Generator\Commands\WithAppOption;
class CreateControllerCommand extends \Illuminate\Routing\Console\ControllerMakeCommand
{
use WithAppOption;
protected function getStub(): string
{
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateAppCommand.php | infrastructure/Generator/Commands/App/CreateAppCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Infrastructure\Generator\AppHelper;
class CreateAppCommand extends GeneratorCommand
{
const SCAFFOLD_FOLDERS = [
'Endpoints',
'Resources',
'Tests',
];
p... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateEndpointCommand.php | infrastructure/Generator/Commands/App/CreateEndpointCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
class CreateEndpointCommand extends CreateControllerCommand
{
protected $name = 'make:endpoint';
protected $description = 'Create a new endpoint class';
public function getAppendNamespace(): string
{
return 'Endpoints';
}
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateRequestCommand.php | infrastructure/Generator/Commands/App/CreateRequestCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
use Infrastructure\Generator\Commands\WithAppOption;
class CreateRequestCommand extends \Illuminate\Foundation\Console\RequestMakeCommand
{
use WithAppOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateResourceCommand.php | infrastructure/Generator/Commands/App/CreateResourceCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
use Infrastructure\Generator\Commands\WithAppOption;
class CreateResourceCommand extends \Illuminate\Foundation\Console\ResourceMakeCommand
{
use WithAppOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/infrastructure/Generator/Commands/App/CreateMiddlewareCommand.php | infrastructure/Generator/Commands/App/CreateMiddlewareCommand.php | <?php
namespace Infrastructure\Generator\Commands\App;
use Infrastructure\Generator\Commands\WithAppOption;
class CreateMiddlewareCommand extends \Illuminate\Routing\Console\MiddlewareMakeCommand
{
use WithAppOption;
}
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/routes/web.php | routes/web.php | <?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return 'It works!';
});
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/routes/channels.php | routes/channels.php | <?php
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/routes/api.php | routes/api.php | <?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return response()->json([
'status' => 'OK',
]);
});
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/routes/console.php | routes/console.php | <?php
//
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/public/index.php | public/index.php | <?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
|--------------------------------------------------------------------------
|
|... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/Tag/Tag.php | domain/Tag/Tag.php | <?php
namespace Domain\Tag;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Infrastructure\Traits\UseTableNameAsMorphClass;
use Kra8\Snowflake\HasShortflakePrimary;
/**... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/User.php | domain/User/User.php | <?php
namespace Domain\User;
use function bcrypt;
use Domain\User\Filters\UserFilter;
use Domain\User\Notifications\ResetPassword;
use Domain\User\Notifications\VerifyEmail;
use EloquentFilter\Filterable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illumina... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/UserFactory.php | domain/User/UserFactory.php | <?php
namespace Domain\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
protected $model = User::class;
public function definition(): array
{
return [
'nickname' => $this->faker->name,
'username' => ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/UserAgent.php | domain/User/UserAgent.php | <?php
namespace Domain\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Infrastructure\Traits\UseTableNameAsMorphClass;
use Kra8\Snowflake\HasShortflakePrimary;
/**
* @property string $user_id
* @property string $agent
* @property \Carbon\Carbon $last... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Jobs/RefreshUserFirstActivedAt.php | domain/User/Jobs/RefreshUserFirstActivedAt.php | <?php
namespace Domain\User\Jobs;
use Domain\User\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class RefreshUserFirstActivedAt implements ShouldQueue
{
us... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Jobs/RefreshUserLastActiveAt.php | domain/User/Jobs/RefreshUserLastActiveAt.php | <?php
namespace Domain\User\Jobs;
use Domain\User\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class RefreshUserLastActiveAt implements ShouldQueue
{
use ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Rules/Phone.php | domain/User/Rules/Phone.php | <?php
namespace Domain\User\Rules;
use Illuminate\Contracts\Validation\ValidationRule;
class Phone implements ValidationRule
{
public function validate(string $attribute, mixed $value, \Closure $fail): void
{
if (! preg_match('/^1(3[0-9]|4[57]|5[0-35-9]|6[6]|7[0135678]|8[0-9])\d{8}$/', $value)) {
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Notifications/VerifyEmail.php | domain/User/Notifications/VerifyEmail.php | <?php
namespace Domain\User\Notifications;
use Carbon\Carbon;
use Illuminate\Auth\Notifications\VerifyEmail as Notification;
use Illuminate\Support\Facades\URL;
class VerifyEmail extends Notification
{
protected function verificationUrl($notifiable): string
{
$url = URL::temporarySignedRoute(
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Notifications/ResetPassword.php | domain/User/Notifications/ResetPassword.php | <?php
namespace Domain\User\Notifications;
use Illuminate\Auth\Notifications\ResetPassword as Notification;
use Illuminate\Notifications\Messages\MailMessage;
class ResetPassword extends Notification
{
public function toMail($notifiable): MailMessage
{
return (new MailMessage())
->line('Y... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Filters/UserFilter.php | domain/User/Filters/UserFilter.php | <?php
namespace Domain\User\Filters;
use EloquentFilter\ModelFilter;
class UserFilter extends ModelFilter
{
/**
* Related Models that have ModelFilters as well as the method on the ModelFilter
* As [relationMethod => [input_key1, input_key2]].
*
* @var array
*/
public $relations = []... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/domain/User/Policies/UserPolicy.php | domain/User/Policies/UserPolicy.php | <?php
namespace Domain\User\Policies;
use Domain\User\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class UserPolicy
{
use HandlesAuthorization;
public function view(?User $user, User $targetUser): bool
{
return true;
}
public function create(User $user): bool
{
ret... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/app.php | config/app.php | <?php
use Illuminate\Support\Facades\Facade;
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is use... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/logging.php | config/logging.php | <?php
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/session.php | config/session.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be use... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/queue.php | config/queue.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving y... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/cache.php | config/cache.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used whil... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/hashing.php | config/hashing.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Hash Driver
|--------------------------------------------------------------------------
|
| This option controls the default hash driver that will be used to hash
| passwords for your ap... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/view.php | config/view.php | <?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/database.php | config/database.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/services.php | config/services.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/filesystems.php | config/filesystems.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/mail.php | config/mail.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send any email
| messages sent by your appl... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/passport.php | config/passport.php | <?php
return [
'clients' => [
'password' => [
'client_id' => env('PASSPORT_PASSWORD_CLIENT_ID'),
'client_secret' => env('PASSPORT_PASSWORD_CLIENT_SECRET'),
],
],
];
| php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/cors.php | config/cors.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Laravel CORS Options
|--------------------------------------------------------------------------
|
| The allowed_methods and allowed_headers options are case-insensitive.
|
| You don't need ... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/broadcasting.php | config/broadcasting.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an even... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/auth.php | config/auth.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/config/sanctum.php | config/sanctum.php | <?php
use Laravel\Sanctum\Sanctum;
return [
/*
|--------------------------------------------------------------------------
| Stateful Domains
|--------------------------------------------------------------------------
|
| Requests from the following domains / hosts will receive stateful API
... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2014_10_12_000000_create_users_table.php | database/migrations/2014_10_12_000000_create_users_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration
{
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->unsignedBigInteger('id')->primary... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2014_10_12_100000_create_password_resets_table.php | database/migrations/2014_10_12_100000_create_password_resets_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration
{
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index(... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2020_05_15_110212_create_user_agents_table.php | database/migrations/2020_05_15_110212_create_user_agents_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration
{
public function up()
{
Schema::create('user_agents', function (Blueprint $table) {
$table->unsignedBigInteger('id')->p... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
overtrue/laravel-skeleton | https://github.com/overtrue/laravel-skeleton/blob/41a863d8aa9b91ef97387c6e00d04f39fe4778af/database/migrations/2019_09_30_081447_create_tags_table.php | database/migrations/2019_09_30_081447_create_tags_table.php | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class() extends Migration
{
public function up()
{
Schema::create('tags', function (Blueprint $table) {
$table->unsignedBigInteger('id')->primary(... | php | MIT | 41a863d8aa9b91ef97387c6e00d04f39fe4778af | 2026-01-05T04:38:02.036813Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.