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
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/site/modules/Index/routes/site.php
stubs/site/modules/Index/routes/site.php
<?php use Illuminate\Support\Facades\Route; use Modules\Index\Http\Controllers\IndexController; Route::get('/', [ IndexController::class, 'index', ])->name('index.index');
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/site/modules/Index/views/index.blade.php
stubs/site/modules/Index/views/index.blade.php
@extends('site-layout') @section('meta-title', 'Modular: Ready to build') @section('meta-description', 'Your amazing site') @section('bodyEndScripts') @vite('resources-site/js/index-app.js') @endsection @section('content') <section class="py-10 md:py-12"> <div class="container max-w-screen-xl mx-au...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/site/modules/Index/Tests/IndexTest.php
stubs/site/modules/Index/Tests/IndexTest.php
<?php use Tests\TestCase; uses(TestCase::class); test("the site's index page returns a successful response", function () { $this->withoutVite(); $response = $this->get('/'); $response->assertStatus(200); });
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/site/modules/Index/Models/Index.php
stubs/site/modules/Index/Models/Index.php
<?php namespace Modules\Index\Models; use Modules\Support\Models\SiteModel; class Index extends SiteModel {}
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/pt_BR/passwords.php
stubs/lang/pt_BR/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/pt_BR/pagination.php
stubs/lang/pt_BR/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/pt_BR/validation.php
stubs/lang/pt_BR/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | O campo following language lines contain the default error messages used by | the valida...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/pt_BR/auth.php
stubs/lang/pt_BR/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/bn/passwords.php
stubs/lang/bn/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/bn/pagination.php
stubs/lang/bn/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pag...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/bn/validation.php
stubs/lang/bn/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | O campo following language lines contain the default error messages used by | the valida...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/lang/bn/auth.php
stubs/lang/bn/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/app/Http/Middleware/HandleInertiaRequests.php
stubs/app/Http/Middleware/HandleInertiaRequests.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Inertia\Middleware; use Modules\Acl\Services\ListUserPermissions; use Tighten\Ziggy\Ziggy; class HandleInertiaRequests extends Middleware { /** * The root template that is loaded on the first page visit. * * @var string */ ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/tests/Pest.php
stubs/tests/Pest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; /* |-------------------------------------------------------------------------- | Test Case |-------------------------------------------------------------------------- | | The closure you provide to your test functions is always bound to a sp...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/tests/TestCase.php
stubs/tests/TestCase.php
<?php namespace Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/tests/CreatesApplication.php
stubs/tests/CreatesApplication.php
<?php namespace Tests; use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Application; trait CreatesApplication { /** * Creates the application. */ public function createApplication(): Application { $app = require __DIR__.'/../bootstrap/app.php'; $app->make(Kern...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/routes/web.php
stubs/routes/web.php
<?php use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes ar...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Dashboard/DashboardServiceProvider.php
stubs/modules/Dashboard/DashboardServiceProvider.php
<?php namespace Modules\Dashboard; use Modules\Support\BaseServiceProvider; class DashboardServiceProvider extends BaseServiceProvider { /** * This namespace is applied to the controller routes in your routes file. * * In addition, it is set as the URL generator's root namespace. * * @va...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Dashboard/Http/Controllers/DashboardController.php
stubs/modules/Dashboard/Http/Controllers/DashboardController.php
<?php namespace Modules\Dashboard\Http\Controllers; use App\Models\User; use Inertia\Inertia; use Modules\Support\Http\Controllers\BackendController; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; class DashboardController extends BackendController { /** * Display the dashboard ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Dashboard/routes/app.php
stubs/modules/Dashboard/routes/app.php
<?php use Illuminate\Support\Facades\Route; use Modules\Dashboard\Http\Controllers\DashboardController; Route::get('/dashboard', [ DashboardController::class, 'index', ])->name('dashboard.index');
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Dashboard/Tests/DashboardTest.php
stubs/modules/Dashboard/Tests/DashboardTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->user = User::factory()->create(); $this->loggedRequest = $this->actingAs($...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/helpers.php
stubs/modules/Support/helpers.php
<?php if (! function_exists('onlyAlphaNumeric')) { function onlyAlphaNumeric($val) { if ($val) { return preg_replace('/[^A-Za-z0-9]/', '', (string) $val); } return $val; } }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/SupportServiceProvider.php
stubs/modules/Support/SupportServiceProvider.php
<?php namespace Modules\Support; class SupportServiceProvider extends BaseServiceProvider { /** * This namespace is applied to the controller routes in your routes file. * * In addition, it is set as the URL generator's root namespace. * * @var string */ protected $namespace = 'M...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/BaseServiceProvider.php
stubs/modules/Support/BaseServiceProvider.php
<?php namespace Modules\Support; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; use ReflectionClass; class BaseServiceProvider extends ServiceProvider { /** * Bootstrap services. */ public function boot() { pare...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Http/Requests/Request.php
stubs/modules/Support/Http/Requests/Request.php
<?php namespace Modules\Support\Http\Requests; use Illuminate\Foundation\Http\FormRequest; abstract class Request extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Http/Requests/JsonRequest.php
stubs/modules/Support/Http/Requests/JsonRequest.php
<?php namespace Modules\Support\Http\Requests; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Exceptions\HttpResponseException; abstract class JsonRequest extends FormRequest { public function authorize(): bool { return true; } ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Http/Controllers/BackendController.php
stubs/modules/Support/Http/Controllers/BackendController.php
<?php namespace Modules\Support\Http\Controllers; class BackendController extends AppController { public function __construct() { $this->middleware('auth.user'); } }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Http/Controllers/AppController.php
stubs/modules/Support/Http/Controllers/AppController.php
<?php namespace Modules\Support\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class AppController extends BaseController { use A...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/UploadFile.php
stubs/modules/Support/Traits/UploadFile.php
<?php namespace Modules\Support\Traits; use Illuminate\Http\UploadedFile; trait UploadFile { use FileNameGenerator; public function uploadFile(string $inputFileName, string $path = 'user-files', string $nameStrategy = 'originalUUID', $disc = 'local'): array { $file = request()->file($inputFileNa...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/FileNameGenerator.php
stubs/modules/Support/Traits/FileNameGenerator.php
<?php namespace Modules\Support\Traits; use Illuminate\Http\UploadedFile; use Illuminate\Support\Str; trait FileNameGenerator { private function getFileName(UploadedFile $file, string $readableName, string $nameStrategy): string { if ($nameStrategy == 'original') { return Str::slug($reada...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/ActivityLog.php
stubs/modules/Support/Traits/ActivityLog.php
<?php namespace Modules\Support\Traits; use Spatie\Activitylog\LogOptions; use Spatie\Activitylog\Traits\LogsActivity; trait ActivityLog { use LogsActivity; protected static $recordEvents = ['created', 'updated', 'deleted']; public function getActivitylogOptions(): LogOptions { return LogOp...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/EditorImage.php
stubs/modules/Support/Traits/EditorImage.php
<?php namespace Modules\Support\Traits; use Illuminate\Http\JsonResponse; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Validator; trait EditorImage { use FileNameGenerator; public function uploadEditorImage(): JsonResponse { $validator = Validator::make(request()->all(), [ ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/UpdateOrder.php
stubs/modules/Support/Traits/UpdateOrder.php
<?php namespace Modules\Support\Traits; trait UpdateOrder { protected function getOrderFieldName(): string { return 'order'; } public function updateOrder(array $items): void { foreach ($items as $index => $item) { if (is_array($item)) { $this->where('i...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Traits/Searchable.php
stubs/modules/Support/Traits/Searchable.php
<?php namespace Modules\Support\Traits; use Illuminate\Database\Eloquent\Builder; trait Searchable { /** * Add search functionality for the Model. */ public function scopeSearch(Builder $query, ?string $searchColumn, ?string $searchTerm): void { $searchTerm = trim($searchTerm ?? ''); ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Validators/recaptcha.php
stubs/modules/Support/Validators/recaptcha.php
<?php use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Validator; Validator::extend('recaptcha', function ($attribute, $value, $parameters, $validator) { $response = Http::asForm()->post('https://www.google.com/recaptcha/api/siteverify', [ 'secret' => config('services.recaptcha.secret_...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Validators/required_editor.php
stubs/modules/Support/Validators/required_editor.php
<?php use Illuminate\Support\Facades\Validator; Validator::extend('required_editor', function ($attribute, $value, $parameters, $validator) { if (! is_null($value) and $value != '<p></p>') { return true; } return false; }, trans('modular::validation.required_editor'));
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/ActivityLogTraitTest.php
stubs/modules/Support/Tests/ActivityLogTraitTest.php
<?php use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Schema\Blueprint; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Schema; use Modules\Support\Traits\ActivityLog; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class, ActivityLog::class); beforeEach(f...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/UpdateOrderTraitTest.php
stubs/modules/Support/Tests/UpdateOrderTraitTest.php
<?php use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Schema\Blueprint; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Schema; use Modules\Support\Traits\UpdateOrder; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class, UpdateOrder::class); beforeEach(f...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/SearchableTraitTest.php
stubs/modules/Support/Tests/SearchableTraitTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Modules\Support\Traits\Searchable; use Modules\User\Models\User; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class, Searchable::class); beforeEach(function () { $this->user = User::factory()->create([ 'name' => 'John Doe', ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/UploadFileTraitTest.php
stubs/modules/Support/Tests/UploadFileTraitTest.php
<?php use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Testing\RefreshDatabase; use Modules\Support\Traits\UploadFile; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class, UploadFile::class); beforeEach(function () { (new Filesystem)->deleteDirectory(storage_path('user-files')); }); ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/EditorImageTraitTest.php
stubs/modules/Support/Tests/EditorImageTraitTest.php
<?php use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\UploadedFile; use Modules\Support\Traits\EditorImage; use Tests\TestCase; use function PHPUnit\Framework\assertFileExists; uses(TestCase::class, RefreshDatabase::class, EditorImage::class); beforeEach(...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Tests/FileNameGeneratorTraitTest.php
stubs/modules/Support/Tests/FileNameGeneratorTraitTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\UploadedFile; use Modules\Support\Traits\FileNameGenerator; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class, FileNameGenerator::class); it('can set the name of a uploaded file', function () { $file = UploadedFile::fake(...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Support/Models/BaseModel.php
stubs/modules/Support/Models/BaseModel.php
<?php namespace Modules\Support\Models; use Illuminate\Database\Eloquent\Model; abstract class BaseModel extends Model { protected $guarded = ['_method']; /** * The "booting" method of the model. */ protected static function boot() { parent::boot(); } }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/AdminAuthServiceProvider.php
stubs/modules/AdminAuth/AdminAuthServiceProvider.php
<?php namespace Modules\AdminAuth; use Modules\Support\BaseServiceProvider; class AdminAuthServiceProvider extends BaseServiceProvider { /** * This namespace is applied to the controller routes in your routes file. * * In addition, it is set as the URL generator's root namespace. * * @va...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Http/Requests/LoginRequest.php
stubs/modules/AdminAuth/Http/Requests/LoginRequest.php
<?php namespace Modules\AdminAuth\Http\Requests; use Illuminate\Auth\Events\Lockout; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Str; use Illuminate\Validation\ValidationException; class LoginRequest extends FormR...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Http/Controllers/PasswordResetLinkController.php
stubs/modules/AdminAuth/Http/Controllers/PasswordResetLinkController.php
<?php namespace Modules\AdminAuth\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Password; use Modules\Support\Http\Controllers\AppController; class PasswordResetLinkController extends AppController { /** * Display the password reset link request view. * * @return \I...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Http/Controllers/NewPasswordController.php
stubs/modules/AdminAuth/Http/Controllers/NewPasswordController.php
<?php namespace Modules\AdminAuth\Http\Controllers; use Illuminate\Auth\Events\PasswordReset; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Password; use Illuminate\Support\Str; use Illuminate\Validation\Rules; use Modules\Support\Http\Controllers\AppController; cla...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Http/Controllers/AuthenticatedSessionController.php
stubs/modules/AdminAuth/Http/Controllers/AuthenticatedSessionController.php
<?php namespace Modules\AdminAuth\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Inertia\Inertia; use Modules\AdminAuth\Http\Requests\LoginRequest; use Modules\Support\Http\Controllers\AppController; class AuthenticatedSessionController extends AppController { /** * ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Http/Middleware/UserAuth.php
stubs/modules/AdminAuth/Http/Middleware/UserAuth.php
<?php namespace Modules\AdminAuth\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class UserAuth { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param string|null $guard * @return mixed */ public function handle($request...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/routes/site.php
stubs/modules/AdminAuth/routes/site.php
<?php use Illuminate\Support\Facades\Route; use Modules\AdminAuth\Http\Controllers\AuthenticatedSessionController; use Modules\AdminAuth\Http\Controllers\NewPasswordController; use Modules\AdminAuth\Http\Controllers\PasswordResetLinkController; Route::get(config('modular.login-url'), [ AuthenticatedSessionControl...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/views/emails/reset-password.blade.php
stubs/modules/AdminAuth/views/emails/reset-password.blade.php
@component('mail::message') # Forgot your password? Here is your password reset link. @component('mail::button', ['url' => $url]) Reset Password @endcomponent Thanks,<br> {{ config('app.name') }} @endcomponent
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Notifications/ResetPassword.php
stubs/modules/AdminAuth/Notifications/ResetPassword.php
<?php namespace Modules\AdminAuth\Notifications; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class ResetPassword extends Notification { /** * Create a notification instance. * * @param string $token */ public function __construct(public ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Tests/AuthenticationTest.php
stubs/modules/AdminAuth/Tests/AuthenticationTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Modules\User\Models\User; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); test('login screen can be rendered', function () { $loginRoute = config('modular.login-url'); $response = $this->get($loginRoute); $response->assertS...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/AdminAuth/Tests/PasswordResetTest.php
stubs/modules/AdminAuth/Tests/PasswordResetTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Notification; use Modules\AdminAuth\Notifications\ResetPassword as AdminAuthResetPassword; use Modules\User\Models\User; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); test('reset password link screen can be r...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/UserServiceProvider.php
stubs/modules/User/UserServiceProvider.php
<?php namespace Modules\User; use Illuminate\Database\Eloquent\Relations\Relation; use Modules\Support\BaseServiceProvider; use Modules\User\Console\Commands\CreateUserCommand; use Modules\User\Models\User; use Modules\User\Observers\UserObserver; class UserServiceProvider extends BaseServiceProvider { /** ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Http/Requests/UserValidate.php
stubs/modules/User/Http/Requests/UserValidate.php
<?php namespace Modules\User\Http\Requests; use Illuminate\Validation\Rules\Password; use Modules\Support\Http\Requests\Request; class UserValidate extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Http/Controllers/UserController.php
stubs/modules/User/Http/Controllers/UserController.php
<?php namespace Modules\User\Http\Controllers; use Modules\Support\Http\Controllers\BackendController; use Modules\User\Http\Requests\UserValidate; use Modules\User\Models\User; class UserController extends BackendController { public function index() { $users = User::orderBy('name') ->sea...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Observers/UserObserver.php
stubs/modules/User/Observers/UserObserver.php
<?php namespace Modules\User\Observers; use Illuminate\Support\Facades\Hash; use Modules\User\Models\User; class UserObserver { public function saving(User $user) { if (request()->filled('password')) { $user->password = Hash::make(request('password')); } } public function...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/routes/app.php
stubs/modules/User/routes/app.php
<?php use Illuminate\Support\Facades\Route; use Modules\User\Http\Controllers\UserController; Route::get('user', [ UserController::class, 'index', ])->name('user.index'); Route::get('user/create', [ UserController::class, 'create', ])->name('user.create'); Route::get('user/{id}/edit', [ UserController::...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Database/Migrations/2024_01_25_000000_add_custom_fields_to_users_table.php
stubs/modules/User/Database/Migrations/2024_01_25_000000_add_custom_fields_to_users_table.php
<?php namespace Modules\User\Database\Migrations; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { Schema::table('users', function (Blueprint $table) { ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Database/Factories/UserFactory.php
stubs/modules/User/Database/Factories/UserFactory.php
<?php namespace Modules\User\Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use Modules\User\Models\User; class UserFactory extends Factory { protected $model = User::class; public function definition(): array { return [ 'name' => ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Console/Commands/CreateUserCommand.php
stubs/modules/User/Console/Commands/CreateUserCommand.php
<?php namespace Modules\User\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rules\Password as PasswordRule; use Modules\User\Models\User; use Spatie\Permission\Models\Role; use function Laravel\Prompts\passwor...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Tests/CreateUserCommandTest.php
stubs/modules/User/Tests/CreateUserCommandTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Hash; use Modules\User\Models\User; use Spatie\Permission\Models\Role; use Tests\TestCase; use function Pest\Laravel\artisan; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { Role::create(['name' => 'r...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Tests/UserTest.php
stubs/modules/User/Tests/UserTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->user = User::factory()->create(); $this->loggedRequest = $this->actingAs($...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/User/Models/User.php
stubs/modules/User/Models/User.php
<?php namespace Modules\User\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Modules\AdminAuth\Notificati...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/AclServiceProvider.php
stubs/modules/Acl/AclServiceProvider.php
<?php namespace Modules\Acl; use Illuminate\Support\Facades\Gate; use Modules\Support\BaseServiceProvider; class AclServiceProvider extends BaseServiceProvider { /** * This namespace is applied to the controller routes in your routes file. * * In addition, it is set as the URL generator's root nam...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Requests/RoleValidate.php
stubs/modules/Acl/Http/Requests/RoleValidate.php
<?php namespace Modules\Acl\Http\Requests; use Illuminate\Validation\Rule; use Modules\Support\Http\Requests\Request; use Spatie\Permission\Models\Role; class RoleValidate extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rule...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Requests/PermissionValidate.php
stubs/modules/Acl/Http/Requests/PermissionValidate.php
<?php namespace Modules\Acl\Http\Requests; use Illuminate\Validation\Rule; use Modules\Support\Http\Requests\Request; use Spatie\Permission\Models\Permission; class PermissionValidate extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public f...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/RolePermissionController.php
stubs/modules/Acl/Http/Controllers/RolePermissionController.php
<?php namespace Modules\Acl\Http\Controllers; use Modules\Support\Http\Controllers\BackendController; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; class RolePermissionController extends BackendController { public function edit($id) { $role = Role::with(['permissions' =>...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/UserController.php
stubs/modules/Acl/Http/Controllers/UserController.php
<?php namespace Modules\Acl\Http\Controllers; use Illuminate\Http\Request; use Modules\Support\Http\Controllers\BackendController; use Modules\User\Models\User; class UserController extends BackendController { public function index() { $users = User::with('roles')->orderBy('name')->get(); re...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/UserPermissionController.php
stubs/modules/Acl/Http/Controllers/UserPermissionController.php
<?php namespace Modules\Acl\Http\Controllers; use Modules\Acl\Services\GetUserPermissions; use Modules\Support\Http\Controllers\BackendController; use Modules\User\Models\User; use Spatie\Permission\Models\Permission; class UserPermissionController extends BackendController { public function edit($id) { ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/PermissionController.php
stubs/modules/Acl/Http/Controllers/PermissionController.php
<?php namespace Modules\Acl\Http\Controllers; use Modules\Acl\Http\Requests\PermissionValidate; use Modules\Support\Http\Controllers\BackendController; use Spatie\Permission\Models\Permission; class PermissionController extends BackendController { public function index() { $searchTerm = request('sear...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/UserRoleController.php
stubs/modules/Acl/Http/Controllers/UserRoleController.php
<?php namespace Modules\Acl\Http\Controllers; use Modules\Support\Http\Controllers\BackendController; use Modules\User\Models\User; use Spatie\Permission\Models\Role; class UserRoleController extends BackendController { public function edit($id) { $user = User::with(['roles' => function ($q) { ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Http/Controllers/RoleController.php
stubs/modules/Acl/Http/Controllers/RoleController.php
<?php namespace Modules\Acl\Http\Controllers; use Modules\Acl\Http\Requests\RoleValidate; use Modules\Support\Http\Controllers\BackendController; use Spatie\Permission\Models\Role; class RoleController extends BackendController { public function index() { $searchTerm = request('searchTerm'); ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/routes/app.php
stubs/modules/Acl/routes/app.php
<?php use Illuminate\Support\Facades\Route; use Modules\Acl\Http\Controllers\PermissionController; use Modules\Acl\Http\Controllers\RoleController; use Modules\Acl\Http\Controllers\RolePermissionController; use Modules\Acl\Http\Controllers\UserController; use Modules\Acl\Http\Controllers\UserPermissionController; use ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Services/ListUserPermissions.php
stubs/modules/Acl/Services/ListUserPermissions.php
<?php namespace Modules\Acl\Services; use Illuminate\Support\Arr; class ListUserPermissions { public function run(int $userId): array { $userPermissions = (new GetUserPermissions)->run($userId); return Arr::pluck($userPermissions, 'name'); } }
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Services/GetUserPermissions.php
stubs/modules/Acl/Services/GetUserPermissions.php
<?php namespace Modules\Acl\Services; use Illuminate\Support\Collection; use Modules\User\Models\User; class GetUserPermissions { public function run(int $userId): array { $user = User::with(['permissions' => function ($query) { $query->get(['id', 'name']); }])->findOrFail($userId...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Database/Seeders/AclPermissionSeeder.php
stubs/modules/Acl/Database/Seeders/AclPermissionSeeder.php
<?php namespace Modules\Acl\Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Schema; use Spatie\Permission\Models\Permission; class AclPermissionSeeder extends Seeder { public function run(): void { Schema::disableForeignKeyConstraints(); Permission::truncate(...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Database/Seeders/AclRoleSeeder.php
stubs/modules/Acl/Database/Seeders/AclRoleSeeder.php
<?php namespace Modules\Acl\Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Schema; use Spatie\Permission\Models\Role; class AclRoleSeeder extends Seeder { public function run(): void { Schema::disableForeignKeyConstraints(); Role::truncate(); Role::...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Role/UserRoleTest.php
stubs/modules/Acl/Tests/Role/UserRoleTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->user = User::factory()->create(); $this...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Role/RoleTest.php
stubs/modules/Acl/Tests/Role/RoleTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->role = Role::create(['name' => 'root']); ...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Role/RolePermissionTest.php
stubs/modules/Acl/Tests/Role/RolePermissionTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->ro...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Permission/UserPermissionTest.php
stubs/modules/Acl/Tests/Permission/UserPermissionTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\Acl\Services\GetUserPermissions; use Modules\User\Models\User; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::cl...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Permission/GetUserPermissionTest.php
stubs/modules/Acl/Tests/Permission/GetUserPermissionTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Modules\Acl\Services\GetUserPermissions; use Modules\User\Models\User; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $this->user =...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/Tests/Permission/PermissionTest.php
stubs/modules/Acl/Tests/Permission/PermissionTest.php
<?php use Illuminate\Foundation\Testing\RefreshDatabase; use Inertia\Testing\AssertableInertia as Assert; use Modules\User\Models\User; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; use Tests\TestCase; uses(TestCase::class, RefreshDatabase::class); beforeEach(function () { $role = R...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/modules/Acl/config/config.php
stubs/modules/Acl/config/config.php
<?php return [ 'permissions' => [ // Menu Principal: Dashboard '1' => 'Menu Principal: Dashboard', // Menu Principal: Controles de Acesso '2' => 'Menu Principal: Controles de Acesso', '3' => 'Menu Principal: Controles de Acesso: Usuários - Listar', '4' => 'Menu Pri...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/config/auth.php
stubs/config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/database/seeders/DatabaseSeeder.php
stubs/database/seeders/DatabaseSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Modules\Acl\Database\Seeders\AclPermissionSeeder; use Modules\Acl\Database\Seeders\AclRoleSeeder; class DatabaseSeeder extends Seeder { public function run(): void { $this->call([ AclRoleSeeder::class, AclPe...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/resources/views/app.blade.php
stubs/resources/views/app.blade.php
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> {{-- If developing using SSL/HTTPS (uncomment the line below): Enforces loading all resources over HTTPS, upgradin...
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/stubs/resources/views/components/translations.blade.php
stubs/resources/views/components/translations.blade.php
<script> window._translations = @json($translations); </script>
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
ModularThink/modular
https://github.com/ModularThink/modular/blob/60a594b46f03aa8a9b223fea9862c3653199f0ee/resources/lang/en/validation.php
resources/lang/en/validation.php
<?php return [ 'required_editor' => 'The :attribute field is required.', ];
php
MIT
60a594b46f03aa8a9b223fea9862c3653199f0ee
2026-01-05T03:43:49.233096Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/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
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Exceptions/Handler.php
app/Exceptions/Handler.php
<?php namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Throwable; class Handler extends ExceptionHandler { /** * A list of the exception types that are not reported. * * @var array */ protected $dontReport = [ // ]; /** ...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/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
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Requests/Auth/LoginRequest.php
app/Http/Requests/Auth/LoginRequest.php
<?php namespace App\Http\Requests\Auth; use Illuminate\Auth\Events\Lockout; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Str; use Illuminate\Validation\ValidationException; class LoginRequest extends FormRequest { ...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Controllers/Controller.php
app/Http/Controllers/Controller.php
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesReques...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Controllers/ListingController.php
app/Http/Controllers/ListingController.php
<?php namespace App\Http\Controllers; use App\Models\Listing; use App\Models\Tag; use App\Models\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; class ListingController extends Controlle...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Controllers/Auth/ConfirmablePasswordController.php
app/Http/Controllers/Auth/ConfirmablePasswordController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Validation\ValidationException; class ConfirmablePasswordController extends Controller { /** * Show the con...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Controllers/Auth/PasswordResetLinkController.php
app/Http/Controllers/Auth/PasswordResetLinkController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Password; class PasswordResetLinkController extends Controller { /** * Display the password reset link request view. * * @return \Illuminate\View\View */...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false
aschmelyun/laravel-job-board
https://github.com/aschmelyun/laravel-job-board/blob/4a3c222dba17ac5595f1e745efc7c3553eddda7f/app/Http/Controllers/Auth/NewPasswordController.php
app/Http/Controllers/Auth/NewPasswordController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Auth\Events\PasswordReset; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Password; use Illuminate\Support\Str; use Illuminate\Validation\Rules; class NewPasswordController...
php
MIT
4a3c222dba17ac5595f1e745efc7c3553eddda7f
2026-01-05T03:44:03.830958Z
false