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
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Password; use Illuminate\Validation\ValidationException; use Inertia\Inertia; use Inertia\Response; class PasswordResetLinkController exten...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/EmailVerificationPromptController.php
app/Http/Controllers/Auth/EmailVerificationPromptController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Inertia\Inertia; use Inertia\Response; class EmailVerificationPromptController extends Controller { /** * Display the...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Password; use Illuminate\Support\Str; use Illuminate\Validati...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/PasswordController.php
app/Http/Controllers/Auth/PasswordController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Validation\Rules\Password; class PasswordController extends Controller { /** * Update the user's password. ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/AuthenticatedSessionController.php
app/Http/Controllers/Auth/AuthenticatedSessionController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Http\Requests\Auth\LoginRequest; use App\Providers\RouteServiceProvider; use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; use Inertia\Ine...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Controllers/Auth/VerifyEmailController.php
app/Http/Controllers/Auth/VerifyEmailController.php
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Verified; use Illuminate\Foundation\Auth\EmailVerificationRequest; use Illuminate\Http\RedirectResponse; class VerifyEmailController extends Controller { /** * M...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/Authenticate.php
app/Http/Middleware/Authenticate.php
<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Http\Request; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. */ protected function redirectTo(Request $request...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/RedirectIfAuthenticated.php
app/Http/Middleware/RedirectIfAuthenticated.php
<?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Symfony\Component\HttpFoundation\Response; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Closure(\Illumin...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/TrustProxies.php
app/Http/Middleware/TrustProxies.php
<?php namespace App\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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/ValidateSignature.php
app/Http/Middleware/ValidateSignature.php
<?php namespace App\Http\Middleware; use Illuminate\Routing\Middleware\ValidateSignature as Middleware; class ValidateSignature extends Middleware { /** * The names of the query string parameters that should be ignored. * * @var array<int, string> */ protected $except = [ // 'fbcl...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/PreventRequestsDuringMaintenance.php
app/Http/Middleware/PreventRequestsDuringMaintenance.php
<?php namespace App\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<int, string> */ ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/TrimStrings.php
app/Http/Middleware/TrimStrings.php
<?php namespace App\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<int, string> */ protected $except = [ 'current_password', ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/Feature.php
app/Http/Middleware/Feature.php
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Http\Response as HttpResponse; use Symfony\Component\HttpFoundation\Response; class Feature { /** * Handle an incoming request. * * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoun...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/HandleInertiaRequests.php
app/Http/Middleware/HandleInertiaRequests.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Inertia\Middleware; use Tightenco\Ziggy\Ziggy; class HandleInertiaRequests extends Middleware { /** * The root template that is loaded on the first page visit. * * @var string */ protected $rootView = 'app'; /** ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/TrustHosts.php
app/Http/Middleware/TrustHosts.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Middleware\TrustHosts as Middleware; class TrustHosts extends Middleware { /** * Get the host patterns that should be trusted. * * @return array<int, string|null> */ public function hosts(): array { return [ ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/EncryptCookies.php
app/Http/Middleware/EncryptCookies.php
<?php namespace App\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<int, string> */ protected $except = [ // ]; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Http/Middleware/VerifyCsrfToken.php
app/Http/Middleware/VerifyCsrfToken.php
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; class VerifyCsrfToken extends Middleware { /** * The URIs that should be excluded from CSRF verification. * * @var array<int, string> */ protected $except = [ // ]; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Console/Kernel.php
app/Console/Kernel.php
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. */ protected function schedule(Schedule $schedule): void { // $schedu...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Console/Commands/CreateUser.php
app/Console/Commands/CreateUser.php
<?php namespace App\Console\Commands; use App\Models\User; use Illuminate\Console\Command; use Illuminate\Support\Facades\Hash; use function Laravel\Prompts\error; use function Laravel\Prompts\info; use function Laravel\Prompts\password; use function Laravel\Prompts\text; class CreateUser extends Command { /** ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Console/Commands/CleanImages.php
app/Console/Commands/CleanImages.php
<?php namespace App\Console\Commands; use App\Models\Shot; use App\Models\ShotReaction; use Illuminate\Console\Command; use Illuminate\Support\Facades\Storage; class CleanImages extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Enums/ReactionType.php
app/Enums/ReactionType.php
<?php namespace App\Enums; enum ReactionType: string { case Upvote = 'upvote'; case Downvote = 'downvote'; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Models/Shot.php
app/Models/Shot.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMan...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Models/User.php
app/Models/User.php
<?php namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use DateTimeInterface; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illumina...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Models/PersonalAccessToken.php
app/Models/PersonalAccessToken.php
<?php namespace App\Models; use Laravel\Sanctum\PersonalAccessToken as SanctumPersonalAccessToken; class PersonalAccessToken extends SanctumPersonalAccessToken { protected $fillable = [ 'name', 'token', 'anonymized_token', 'abilities', 'expires_at', ]; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Models/ShotReaction.php
app/Models/ShotReaction.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ShotReaction extends Model { use HasFactory; protected $guarded = []; public $timestamps = false; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Providers/BroadcastServiceProvider.php
app/Providers/BroadcastServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Broadcast; use Illuminate\Support\ServiceProvider; class BroadcastServiceProvider extends ServiceProvider { /** * Bootstrap any application services. */ public function boot(): void { Broadcast::routes(); require bas...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Providers/RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
<?php namespace App\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 ServiceProvide...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Providers/EventServiceProvider.php
app/Providers/EventServiceProvider.php
<?php namespace App\Providers; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Event; class EventServiceProvider extends ServiceProvider { /*...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Providers/AppServiceProvider.php
app/Providers/AppServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\URL; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(): void { // } /** * Bootstrap any application...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/app/Providers/AuthServiceProvider.php
app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; // use Illuminate\Support\Facades\Gate; use App\Models\PersonalAccessToken; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Laravel\Sanctum\Sanctum; class AuthServiceProvider extends ServiceProvider { /** * The model to policy mappings ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Pest.php
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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; }
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/CreatesApplication.php
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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/ProfileTest.php
tests/Feature/ProfileTest.php
<?php use App\Models\User; test('profile page is displayed', function () { $user = User::factory()->create(); $response = $this ->actingAs($user) ->get('/profile'); $response->assertOk(); }); test('profile information can be updated', function () { $user = User::factory()->create();...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/AuthenticationTest.php
tests/Feature/Auth/AuthenticationTest.php
<?php use App\Models\User; use App\Providers\RouteServiceProvider; test('login screen can be rendered', function () { $response = $this->get('/login'); $response->assertStatus(200); }); test('users can authenticate using the login screen', function () { $user = User::factory()->create(); $response ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/PasswordConfirmationTest.php
tests/Feature/Auth/PasswordConfirmationTest.php
<?php use App\Models\User; test('confirm password screen can be rendered', function () { $user = User::factory()->create(); $response = $this->actingAs($user)->get('/confirm-password'); $response->assertStatus(200); }); test('password can be confirmed', function () { $user = User::factory()->create...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/PasswordResetTest.php
tests/Feature/Auth/PasswordResetTest.php
<?php use App\Models\User; use Illuminate\Auth\Notifications\ResetPassword; use Illuminate\Support\Facades\Notification; test('reset password link screen can be rendered', function () { $response = $this->get('/forgot-password'); $response->assertStatus(200); }); test('reset password link can be requested',...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/PasswordUpdateTest.php
tests/Feature/Auth/PasswordUpdateTest.php
<?php use App\Models\User; use Illuminate\Support\Facades\Hash; test('password can be updated', function () { $user = User::factory()->create(); $response = $this ->actingAs($user) ->from('/profile') ->put('/password', [ 'current_password' => 'password', 'passw...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/RegistrationTest.php
tests/Feature/Auth/RegistrationTest.php
<?php use App\Providers\RouteServiceProvider; test('registration screen can be rendered', function () { $response = $this->get('/register'); $response->assertStatus(200); }); test('new users can register', function () { $response = $this->post('/register', [ 'name' => 'Test User', 'email...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Feature/Auth/EmailVerificationTest.php
tests/Feature/Auth/EmailVerificationTest.php
<?php use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Verified; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\URL; test('email verification screen can be rendered', function () { $user = User::factory()->create([ 'email_verified_at' => null, ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Unit/Http/Controllers/ShotControllerTest.php
tests/Unit/Http/Controllers/ShotControllerTest.php
<?php namespace Tests\Unit\Http\Controllers; use App\Enums\ReactionType; use App\Models\Shot; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Storage; use Inertia\Testing\AssertableInertia as Assert; use Tests\TestCase; class ShotControllerTest extends TestCase ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Unit/Http/Controllers/UploadControllerTest.php
tests/Unit/Http/Controllers/UploadControllerTest.php
<?php namespace Tests\Unit\Http\Controllers; use App\Models\Shot; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use Tests\TestCase; class UploadControllerTest extends TestCase { use RefreshDatabase; protected...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Unit/Http/Controllers/ApiKeyControllerTest.php
tests/Unit/Http/Controllers/ApiKeyControllerTest.php
<?php namespace Tests\Unit\Http\Controllers; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; class ApiKeyControllerTest extends TestCase { use RefreshDatabase; protected User $user; public function setUp(): void { parent::setUp(); $this->...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/tests/Unit/Console/Commands/CleanImagesTest.php
tests/Unit/Console/Commands/CleanImagesTest.php
<?php namespace Tests\Unit\Http\Controllers; use App\Models\Shot; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Storage; use Tests\TestCase; class CleanImagesTest extends TestCase { use RefreshDatabase; public function test_it_cleans_up_shots_and_file...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/routes/web.php
routes/web.php
<?php use App\Http\Controllers\ApiKeyController; use App\Http\Controllers\ProfileController; use App\Http\Controllers\ShotController; use App\Http\Controllers\UploadController; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |---------------------------------------...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/routes/channels.php
routes/channels.php
<?php use Illuminate\Support\Facades\Broadcast; /* |-------------------------------------------------------------------------- | Broadcast Channels |-------------------------------------------------------------------------- | | Here you may register all of the event broadcasting channels that your | application suppo...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/routes/api.php
routes/api.php
<?php use App\Http\Controllers\UploadController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your applicat...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/routes/console.php
routes/console.php
<?php use Illuminate\Foundation\Inspiring; use Illuminate\Support\Facades\Artisan; /* |-------------------------------------------------------------------------- | Console Routes |-------------------------------------------------------------------------- | | This file is where you may define all of your Closure based...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/routes/auth.php
routes/auth.php
<?php use App\Http\Controllers\Auth\AuthenticatedSessionController; use App\Http\Controllers\Auth\ConfirmablePasswordController; use App\Http\Controllers\Auth\EmailVerificationNotificationController; use App\Http\Controllers\Auth\EmailVerificationPromptController; use App\Http\Controllers\Auth\NewPasswordController; u...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/public/index.php
public/index.php
<?php use Illuminate\Contracts\Http\Kernel; use Illuminate\Http\Request; define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Check If The Application Is Under Maintenance |--------------------------------------------------------------------------...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/app.php
config/app.php
<?php use Illuminate\Support\Facades\Facade; use Illuminate\Support\ServiceProvider; return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the nam...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/logging.php
config/logging.php
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; use Monolog\Processor\PsrLogMessageProcessor; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |--------------------------------...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/shots.php
config/shots.php
<?php return [ 'links' => [ 'share' => env('SHOTS_LINKS_SHARE_LINK', true), 'direct' => env('SHOTS_LINKS_DIRECT_LINK', true), 'markdown_reddit' => env('SHOTS_LINKS_MARKDOWN_REDDIT', true), 'markdown_other' => env('SHOTS_LINKS_MARKDOWN_OTHER', true), 'bbcode' => env('SHOTS_LI...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/database.php
config/database.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections b...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/features.php
config/features.php
<?php /** * A collection of feature flags to enable/disable select functionality */ return [ 'reactions' => env('FEATURE_REACTIONS', true), // TODO: Will move to uuid routes as the default in 2.0.0 'uuid_routes' => env('FEATURE_UUID_ROUTES', false), 'footer' => env('FEATURE_FOOTER', true), ];
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/services.php
config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/config/cors.php
config/cors.php
<?php return [ /* |-------------------------------------------------------------------------- | Cross-Origin Resource Sharing (CORS) Configuration |-------------------------------------------------------------------------- | | Here you may configure your settings for cross-origin resource shar...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/factories/UserFactory.php
database/factories/UserFactory.php
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User> */ class UserFactory extends Factory { /** * The current password being ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/factories/ShotFactory.php
database/factories/ShotFactory.php
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Shot> */ class ShotFactory extends Factory { /** * Define the model's default state. * * @return array<st...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php
database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('password_reset_tokens', function (Blueprint ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2024_01_16_032703_update_shots_table_add_visibity_settings.php
database/migrations/2024_01_16_032703_update_shots_table_add_visibity_settings.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('shots', function (Blueprint $table) { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2024_01_15_215829_update_personal_access_tokens_add_anonymized_column.php
database/migrations/2024_01_15_215829_update_personal_access_tokens_add_anonymized_column.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('personal_access_tokens', function (Blueprint ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2024_01_14_213925_update_shots_table_add_name.php
database/migrations/2024_01_14_213925_update_shots_table_add_name.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('shots', function (Blueprint $table) { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/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 { /** * Run the migrations. */ public function up(): void { Schema::create('users', function (Blueprint $table) { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2024_01_14_015100_create_shot_reactions_table.php
database/migrations/2024_01_14_015100_create_shot_reactions_table.php
<?php use App\Models\Shot; use App\Models\User; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('sh...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2024_01_14_211116_update_shots_table_add_uuid.php
database/migrations/2024_01_14_211116_update_shots_table_add_uuid.php
<?php use App\Models\Shot; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Illuminate\support\Str; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::tab...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
database/migrations/2019_08_19_000000_create_failed_jobs_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('failed_jobs', function (Blueprint $table) { ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2023_12_07_052547_create_shots_table.php
database/migrations/2023_12_07_052547_create_shots_table.php
<?php use App\Models\User; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('shots', function (Bluep...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('personal_access_tokens', function (Blueprint...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/migrations/2023_12_29_181202_update_shots_table_add_parent_shot_id.php
database/migrations/2023_12_29_181202_update_shots_table_add_parent_shot_id.php
<?php use App\Models\Shot; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('shots', function (Bluepr...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/database/seeders/DatabaseSeeder.php
database/seeders/DatabaseSeeder.php
<?php namespace Database\Seeders; // use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. */ public function run(): void { // \App\Models\User::factory(10)->create(); ...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
mdshack/shotshare
https://github.com/mdshack/shotshare/blob/e1a4feda10fb6558e9ef5190366f93237040f851/resources/views/app.blade.php
resources/views/app.blade.php
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php if (isset($page['props']['shot'])):?> <meta property="og:url" content="{{$page['props']['shot']['li...
php
MIT
e1a4feda10fb6558e9ef5190366f93237040f851
2026-01-05T03:57:40.857780Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__) ->exclude('var') ->exclude('config') ; $config = new PhpCsFixer\Config(); return $config ->setRiskyAllowed(true) ->setRules([ '@Symfony' => true, 'array_syntax' => ['syntax' => 'short'], 'declare_strict_types' => tru...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/ArtprimaPrometheusMetricsBundle.php
ArtprimaPrometheusMetricsBundle.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle; use Artprima\PrometheusMetricsBundle\DependencyInjection\Compiler\IgnoredRoutesPass; use Artprima\PrometheusMetricsBundle\DependencyInjection\Compiler\MetricInfoResolverCompilerPass; use Artprima\PrometheusMetricsBundle\DependencyInjection\Co...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/FactoryRegistry.php
StorageFactory/FactoryRegistry.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\Adapter; class FactoryRegistry { /** * @var StorageFactoryInterface[] */ private $factories; /** * @param StorageFactoryInterface[] $factories */ public function __co...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/StorageFactoryInterface.php
StorageFactory/StorageFactoryInterface.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\Adapter; /** * StorageFactoryInterface provides a way to create instance of @Prometheus\Storage\Adapter. * A storage factory should manage options type, and default values. */ interface StorageFactory...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/ApcFactory.php
StorageFactory/ApcFactory.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\Adapter; use Prometheus\Storage\APC; class ApcFactory implements StorageFactoryInterface { /** * @return APC */ public function create(array $options): Adapter { return new ...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/APCngFactory.php
StorageFactory/APCngFactory.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\APCng; class APCngFactory implements StorageFactoryInterface { public function create(array $options): APCng { return new APCng($options['prefix'] ?? APCng::PROMETHEUS_PREFIX); } ...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/InMemoryFactory.php
StorageFactory/InMemoryFactory.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\Adapter; use Prometheus\Storage\InMemory; class InMemoryFactory implements StorageFactoryInterface { /** * @return InMemory */ public function create(array $options): Adapter { ...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/StorageFactory/RedisFactory.php
StorageFactory/RedisFactory.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\StorageFactory; use Prometheus\Storage\Adapter; use Prometheus\Storage\Redis; class RedisFactory implements StorageFactoryInterface { /** * @return Redis */ public function create(array $options): Adapter { if (i...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/Controller/MetricsController.php
Controller/MetricsController.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\Controller; use Artprima\PrometheusMetricsBundle\Metrics\Renderer; use Symfony\Component\HttpFoundation\Response; /** * Class MetricsController. */ class MetricsController { public function __construct(private readonly Renderer $rendere...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.integration/patch.php
.integration/patch.php
<?php declare(strict_types=1); function patch_composer_json(): void { if (!file_exists('symfony/composer.json')) { echo 'symfony/composer.json not found!'.PHP_EOL; exit(-1); } $contents = file_get_contents('symfony/composer.json'); if ($contents === false) { exit(-1); } ...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.integration/symfony/src/Controller/DummyController.php
.integration/symfony/src/Controller/DummyController.php
<?php declare(strict_types=1); namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; /** * Controller to render a basic "homepage". */ class DummyController extends AbstractController { public function homepage() { ...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.integration/symfony/src/Metrics/CustomMetricsCollector.php
.integration/symfony/src/Metrics/CustomMetricsCollector.php
<?php declare(strict_types=1); namespace App\Metrics; use Artprima\PrometheusMetricsBundle\Metrics\ExceptionMetricsCollectorInterface; use Artprima\PrometheusMetricsBundle\Metrics\MetricsCollectorInitTrait; use Artprima\PrometheusMetricsBundle\Metrics\RequestMetricsCollectorInterface; use Prometheus\Exception\Metric...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.integration/symfony/tests/Functional/ArtprimaPrometheusBundleTest.php
.integration/symfony/tests/Functional/ArtprimaPrometheusBundleTest.php
<?php namespace App\Tests\Functional; use Prometheus\Storage\Adapter; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class ArtprimaPrometheusBundleTest extends WebTestCase { public function testHomepageMetrics() { $client = static::createClient(); $client->disableReboot(); $cli...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/.integration/symfony/config/bundles.php
.integration/symfony/config/bundles.php
<?php return [ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], Artprima\PrometheusMetricsBundle\ArtprimaPrometheusMetricsBundle::class => ['all' => true], ];
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/DependencyInjection/ArtprimaPrometheusMetricsExtension.php
DependencyInjection/ArtprimaPrometheusMetricsExtension.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\DependencyInjection; use Artprima\PrometheusMetricsBundle\DependencyInjection\Compiler\ResolveAdapterDefinitionPass; use Artprima\PrometheusMetricsBundle\Metrics\LabelConfig; use Artprima\PrometheusMetricsBundle\Metrics\LabelResolver; use Artp...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/DependencyInjection/Configuration.php
DependencyInjection/Configuration.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\DependencyInjection; use Symfony\Component\Config\Definition\BaseNode; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and me...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false
artprima/prometheus-metrics-bundle
https://github.com/artprima/prometheus-metrics-bundle/blob/b8f5ac2e536eba095fc32a5e773783b13d8a072f/DependencyInjection/Compiler/MetricInfoResolverCompilerPass.php
DependencyInjection/Compiler/MetricInfoResolverCompilerPass.php
<?php declare(strict_types=1); namespace Artprima\PrometheusMetricsBundle\DependencyInjection\Compiler; use Artprima\PrometheusMetricsBundle\Metrics\AppMetrics; use Artprima\PrometheusMetricsBundle\Metrics\MetricInfoResolverInterface; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symf...
php
MIT
b8f5ac2e536eba095fc32a5e773783b13d8a072f
2026-01-05T03:58:06.563649Z
false