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 |
|---|---|---|---|---|---|---|---|---|
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Actions/Fortify/CreateNewUser.php | app/Actions/Fortify/CreateNewUser.php | <?php
namespace App\Actions\Fortify;
use App\Models\User;
use App\Rules\UsernameFormatRule;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\CreatesNewUsers;
use Laravel\Jetstream\Jetstream;
class CreateNewUser implements CreatesNewUsers
{
use PasswordV... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Actions/Fortify/PasswordValidationRules.php | app/Actions/Fortify/PasswordValidationRules.php | <?php
namespace App\Actions\Fortify;
use Illuminate\Contracts\Validation\ValidationRule;
use Laravel\Fortify\Rules\Password;
trait PasswordValidationRules
{
/**
* Get the validation rules used to validate passwords.
*
* @return array<int, array<int, ValidationRule|Password|string>|ValidationRule|P... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Actions/Fortify/ResetUserPassword.php | app/Actions/Fortify/ResetUserPassword.php | <?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\ResetsUserPasswords;
class ResetUserPassword implements ResetsUserPasswords
{
use PasswordValidationRules;
/**
* Validate and reset the ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Actions/Jetstream/DeleteUser.php | app/Actions/Jetstream/DeleteUser.php | <?php
namespace App\Actions\Jetstream;
use App\Models\User;
use Laravel\Jetstream\Contracts\DeletesUsers;
class DeleteUser implements DeletesUsers
{
/**
* Delete the given user.
*/
public function delete(User $user): void
{
$user->deleteProfilePhoto();
$user->tokens->each->delet... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Rules/UsernameFormatRule.php | app/Rules/UsernameFormatRule.php | <?php
namespace App\Rules;
use App\Actions\GenerateUsername;
use Closure;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Contracts\Validation\ValidatorAwareRule;
use Illuminate\Support\Facades\Validator as ValidatorFacade;
use Illuminate\Validation\Validator;
class UsernameFormatRule implements V... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Console/Kernel.php | app/Console/Kernel.php | <?php
namespace App\Console;
use App\Console\Commands\RfcSyncCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* @codeCoverageIgnore part of Laravel framework, no need to test
*/
protected functio... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Console/Commands/RfcSyncCommand.php | app/Console/Commands/RfcSyncCommand.php | <?php
namespace App\Console\Commands;
use App\Models\Rfc;
use App\Support\ExternalsRssFeed;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
class RfcSyncCommand extends Command
{
protected $signature = 'rfc:sync';
protected $description = 'Sync RFCs from Externals RSS feed';
public function... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/MessageStatus.php | app/Models/MessageStatus.php | <?php
namespace App\Models;
enum MessageStatus: string
{
case UNREAD = 'unread';
case READ = 'read';
case ARCHIVED = 'archived';
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/UserArgumentView.php | app/Models/UserArgumentView.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserArgumentView extends Model
{
use HasFactory;
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/User.php | app/Models/User.php | <?php
namespace App\Models;
use App\Http\Livewire\SortField;
use App\Mail\HasMailId;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Founda... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/VerificationRequest.php | app/Models/VerificationRequest.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property-read User $user
*/
class VerificationRequest extends Model
{
use HasFactory;
/**
* @var array<string, string... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/UserFlair.php | app/Models/UserFlair.php | <?php
namespace App\Models;
enum UserFlair: string
{
case CONTRIBUTOR = 'contributor';
case INTERNALS = 'internals';
case ADMIN = 'admin';
case LARAVEL = 'laravel';
case SYMFONY = 'symfony';
public function getDescription(): string
{
return match ($this) {
self::CONTRI... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/EmailChangeRequest.php | app/Models/EmailChangeRequest.php | <?php
namespace App\Models;
use Carbon\CarbonInterface;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property CarbonInterface $created_at
* @property-read User $user
*/
class EmailChangeRequest extends Model
{
/**
* @return BelongsTo<User, self>
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/VerificationRequestStatus.php | app/Models/VerificationRequestStatus.php | <?php
namespace App\Models;
enum VerificationRequestStatus: string
{
case PENDING = 'pending';
case ACCEPTED = 'accepted';
case DENIED = 'denied';
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/VoteType.php | app/Models/VoteType.php | <?php
namespace App\Models;
enum VoteType: string
{
case YES = 'yes';
case NO = 'no';
public function isYes(): bool
{
return $this === self::YES;
}
public function isNo(): bool
{
return $this === self::NO;
}
public function getColor(): string
{
return... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/ReputationType.php | app/Models/ReputationType.php | <?php
namespace App\Models;
enum ReputationType
{
case VOTE_FOR_ARGUMENT;
case GAIN_ARGUMENT_VOTE;
public function getPoints(): int
{
return match ($this) {
self::GAIN_ARGUMENT_VOTE => 10,
self::VOTE_FOR_ARGUMENT => 5,
};
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/Contributor.php | app/Models/Contributor.php | <?php
namespace App\Models;
final readonly class Contributor
{
/**
* @param array<int, string> $contributions
*/
public function __construct(
public int $id,
public string $name,
public string $url,
public array $contributions,
) {}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/ArgumentVote.php | app/Models/ArgumentVote.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* @property-read Argument $argument
*/
class ArgumentVote extends Model
{
use HasFac... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/ArgumentComment.php | app/Models/ArgumentComment.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property User $user
*/
class ArgumentComment extends Model
{
use HasFactory;
/**
* @return BelongsTo<User, self>
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/Argument.php | app/Models/Argument.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $user_id
* @property int $rfc_id
* @property-read User $user
* @... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/Rfc.php | app/Models/Rfc.php | <?php
namespace App\Models;
use App\Actions\SendNewRfcMails;
use App\Http\Controllers\RfcDetailController;
use App\Jobs\RenderMetaImageJob;
use Carbon\CarbonInterface;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/Message.php | app/Models/Message.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property-read User $user
*/
class Message extends Model
{
use HasFactory;
protected $casts = [
'status' => Message... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Models/UserMail.php | app/Models/UserMail.php | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class UserMail extends Model
{
use HasFactory;
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/FortifyServiceProvider.php | app/Providers/FortifyServiceProvider.php | <?php
namespace App\Providers;
use App\Actions\Fortify\CreateNewUser;
use App\Actions\Fortify\ResetUserPassword;
use App\Actions\Fortify\UpdateUserPassword;
use App\Actions\Fortify\UpdateUserProfileInformation;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/HorizonServiceProvider.php | app/Providers/HorizonServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Laravel\Horizon\Horizon;
use Laravel\Horizon\HorizonApplicationServiceProvider;
class HorizonServiceProvider extends HorizonApplicationServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot(): void
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/AppServiceProvider.php | app/Providers/AppServiceProvider.php | <?php
namespace App\Providers;
use App\Http\ViewComposers\AdminViewComposer;
use App\Http\ViewComposers\ThemeViewComposer;
use App\Support\Meta;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use League\CommonMark\Environment\Environment;
use Leagu... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/AuthServiceProvider.php | app/Providers/AuthServiceProvider.php | <?php
namespace App\Providers;
// use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The model to policy mappings for the application.
*
* @var array<class-string, class-... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/JetstreamServiceProvider.php | app/Providers/JetstreamServiceProvider.php | <?php
namespace App\Providers;
use App\Actions\Jetstream\DeleteUser;
use Illuminate\Support\ServiceProvider;
use Laravel\Jetstream\Jetstream;
class JetstreamServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Providers/HelperServiceProvider.php | app/Providers/HelperServiceProvider.php | <?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class HelperServiceProvider extends ServiceProvider
{
public function register(): void
{
$helperFiles = glob(app_path('Helpers').'/*.php');
if (is_array($helperFiles)) {
foreach ($helperFiles as $helperFile) {
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Policies/ArgumentPolicy.php | app/Policies/ArgumentPolicy.php | <?php
namespace App\Policies;
use App\Models\Argument;
use App\Models\User;
class ArgumentPolicy
{
public function vote(User $user, Argument $argument): bool
{
if ($user->id === $argument->user_id) {
return false;
}
if ($user->hasVotedForArgument($argument)) {
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Policies/RfcPolicy.php | app/Policies/RfcPolicy.php | <?php
namespace App\Policies;
use App\Models\Rfc;
use App\Models\User;
class RfcPolicy
{
public function vote(User $user, Rfc $rfc): bool
{
$maxAmount = $user->getVotesPerRfc();
return $maxAmount > $user->getArgumentVotesForRfc($rfc)->count();
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/View/Components/GuestLayout.php | app/View/Components/GuestLayout.php | <?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\View\View;
class GuestLayout extends Component
{
/**
* Get the view / contents that represents the component.
*/
public function render(): View
{
return view('layouts.guest');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/View/Components/AppLayout.php | app/View/Components/AppLayout.php | <?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\View\View;
class AppLayout extends Component
{
/**
* Get the view / contents that represents the component.
*/
public function render(): View
{
return view('layouts.app');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/TestCase.php | tests/TestCase.php | <?php
namespace Tests;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Spatie\Browsershot\Browsershot;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
use DatabaseMigrations;
protected funct... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/DuskTestCase.php | tests/DuskTestCase.php | <?php
namespace Tests;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Illuminate\Support\Collection;
use Laravel\Dusk\TestCase as BaseTestCase;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplica... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/FakeBrowsershot.php | tests/FakeBrowsershot.php | <?php
namespace Tests;
use Spatie\Browsershot\Browsershot;
final class FakeBrowsershot extends Browsershot
{
public function base64Screenshot(): string
{
return '';
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/HomePageTest.php | tests/Browser/HomePageTest.php | <?php
namespace Tests\Browser;
use App\Http\Controllers\EnableEmailOptinController;
use App\Models\Argument;
use App\Models\ArgumentVote;
use App\Models\Rfc;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Queue;
use Illuminate\S... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/MainMenuTest.php | tests/Browser/MainMenuTest.php | <?php
namespace Tests\Browser;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Laravel\Dusk\Browser;
use Tests\Browser\Components\Navbar;
use Tests\Browser\Components\Profile\UserMenu\Menu;
use Tests\DuskTestCase;
class MainMenuTest extends DuskTestCase
{
use DatabaseTruncation;
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/LoginTest.php | tests/Browser/LoginTest.php | <?php
namespace Tests\Browser;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Laravel\Dusk\Browser;
use Tests\Browser\Pages\LoginPage;
use Tests\DuskTestCase;
class LoginTest extends DuskTestCase
{
use DatabaseTruncation;
public function test_it_redirects_to_homepage_if_user_... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/AboutPageTest.php | tests/Browser/AboutPageTest.php | <?php
namespace Tests\Browser;
use App\Support\FetchContributors;
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Laravel\Dusk\Browser;
use Tests\Browser\Components\About\Contributors;
use Tests\Browser\Pages\AboutPage;
use Tests\DuskTestCase;
class AboutPageTest extends DuskTestCase
{
use DatabaseTrun... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/EmailVerificationTest.php | tests/Browser/EmailVerificationTest.php | <?php
namespace Tests\Browser;
use App\Models\User;
use Illuminate\Auth\Notifications\VerifyEmail;
use Illuminate\Foundation\Testing\DatabaseTruncation;
use Illuminate\Support\Facades\Notification;
use Laravel\Dusk\Browser;
use ProtoneMedia\LaravelDuskFakes\Notifications\PersistentNotifications;
use Tests\Browser\Pag... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Components/Navbar.php | tests/Browser/Components/Navbar.php | <?php
namespace Tests\Browser\Components;
use Laravel\Dusk\Browser;
use Laravel\Dusk\Component;
class Navbar extends Component
{
public function selector(): string
{
return '@navbar';
}
public function assert(Browser $browser): void
{
$browser->assertVisible($this->selector());
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Components/About/Contributors.php | tests/Browser/Components/About/Contributors.php | <?php
namespace Tests\Browser\Components\About;
use Laravel\Dusk\Browser;
use Laravel\Dusk\Component;
class Contributors extends Component
{
public function selector(): string
{
return '@about-contributors';
}
public function assert(Browser $browser): void
{
$browser->assertVisib... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Components/Profile/UserMenu/Menu.php | tests/Browser/Components/Profile/UserMenu/Menu.php | <?php
namespace Tests\Browser\Components\Profile\UserMenu;
use Laravel\Dusk\Browser;
use Laravel\Dusk\Component;
class Menu extends Component
{
public function selector(): string
{
return '@user-menu-menu';
}
public function assert(Browser $browser): void
{
$browser->assertVisibl... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/Page.php | tests/Browser/Pages/Page.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Page as BasePage;
abstract class Page extends BasePage
{
/**
* Get the global element shortcuts for the site.
*
* @return array<string, string>
*/
public static function siteElements(): array
{
return [];
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/AboutPage.php | tests/Browser/Pages/AboutPage.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class AboutPage extends Page
{
public function url(): string
{
return '/about';
}
public function assert(Browser $browser): void
{
$browser->assertPathIs($this->url());
}
public function elements(): array
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/HomePage.php | tests/Browser/Pages/HomePage.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class HomePage extends Page
{
/**
* Get the URL for the page.
*/
public function url(): string
{
return '/';
}
/**
* Assert that the browser is on the page.
*/
public function assert(Browser $browser):... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/LoginPage.php | tests/Browser/Pages/LoginPage.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class LoginPage extends Page
{
public function url(): string
{
return '/login';
}
public function assert(Browser $browser): void
{
$browser->assertPathIs($this->url());
}
public function fillLoginFormAndSubmi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/ProfilePage.php | tests/Browser/Pages/ProfilePage.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class ProfilePage extends Page
{
public function url(): string
{
return '/profile';
}
public function assert(Browser $browser): void
{
$browser->assertPathIs($this->url());
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Browser/Pages/EmailVerificationPage.php | tests/Browser/Pages/EmailVerificationPage.php | <?php
namespace Tests\Browser\Pages;
use Laravel\Dusk\Browser;
class EmailVerificationPage extends Page
{
public function url(): string
{
return '/email/verify';
}
public function assert(Browser $browser): void
{
$browser->assertPathIs($this->url());
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/CreateArgumentCommentTest.php | tests/Feature/CreateArgumentCommentTest.php | <?php
namespace Tests\Feature;
use App\Actions\CreateArgumentComment;
use App\Models\Argument;
use App\Models\Message;
use App\Models\Rfc;
use App\Models\User;
use Tests\TestCase;
class CreateArgumentCommentTest extends TestCase
{
/** @test */
public function test_send()
{
[$a, $b, $c] = User::fa... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/AuthenticationTest.php | tests/Feature/AuthenticationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Tests\TestCase;
class AuthenticationTest extends TestCase
{
public function test_login_screen_can_be_rendered(): void
{
$response = $this->get('/login');
$response->assertStatus(200);
}
p... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/CreateVerificationRequestTest.php | tests/Feature/CreateVerificationRequestTest.php | <?php
namespace Tests\Feature;
use App\Actions\CreateVerificationRequest;
use App\Http\Controllers\VerificationRequestsAdminController;
use App\Http\Livewire\VerificationRequestsList;
use App\Models\Message;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
use Illuminate\Foundation\Testin... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/TwoFactorAuthenticationSettingsTest.php | tests/Feature/TwoFactorAuthenticationSettingsTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Laravel\Fortify\Features;
use Laravel\Jetstream\Http\Livewire\TwoFactorAuthenticationForm;
use Livewire\Livewire;
use Tests\TestCase;
class TwoFactorAuthenticationSettingsTest extends TestCase
{
public function test_two_factor_authentication_can_be_enabled(... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/PasswordConfirmationTest.php | tests/Feature/PasswordConfirmationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Tests\TestCase;
class PasswordConfirmationTest extends TestCase
{
public function test_confirm_password_screen_can_be_rendered(): void
{
$user = User::factory()->withPersonalTeam()->create();
$response = $this->actingAs($user)->get('/us... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/NewRfcMailTest.php | tests/Feature/NewRfcMailTest.php | <?php
namespace Tests\Feature;
use App\Actions\SendUserMail;
use App\Mail\NewRfcMail;
use App\Models\Rfc;
use App\Models\User;
use App\Models\UserMail;
use Illuminate\Support\Facades\Mail;
use Tests\TestCase;
final class NewRfcMailTest extends TestCase
{
/** @test */
public function test_sent_to_the_correct_... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/AboutTest.php | tests/Feature/AboutTest.php | <?php
namespace Tests\Feature;
use App\Http\Controllers\AboutController;
use App\Models\Contributor;
use App\Support\FetchContributors;
use Mockery\MockInterface;
use Tests\TestCase;
class AboutTest extends TestCase
{
public function test_it_has_contributors(): void
{
$contributors = [
ne... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/RfcDetailTest.php | tests/Feature/RfcDetailTest.php | <?php
namespace Tests\Feature;
use App\Http\Controllers\RfcDetailController;
use App\Models\Rfc;
use Tests\TestCase;
final class RfcDetailTest extends TestCase
{
/** @test */
public function as_guest()
{
$rfc = Rfc::factory()->create();
$this->get(action(RfcDetailController::class, $rfc)... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/PasswordResetTest.php | tests/Feature/PasswordResetTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Support\Facades\Notification;
use Laravel\Fortify\Features;
use Tests\TestCase;
class PasswordResetTest extends TestCase
{
public function test_reset_password_link_screen_can_be_rendered(): void
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/DeleteAccountTest.php | tests/Feature/DeleteAccountTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Laravel\Jetstream\Features;
use Laravel\Jetstream\Http\Livewire\DeleteUserForm;
use Livewire\Livewire;
use Tests\TestCase;
class DeleteAccountTest extends TestCase
{
public function test_user_accounts_can_be_deleted(): void
{
if (! Features::has... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/AdminUserTest.php | tests/Feature/AdminUserTest.php | <?php
namespace Tests\Feature;
use App\Http\Controllers\UserEditController;
use App\Models\User;
use App\Models\UserFlair;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class AdminUserTest extends TestCase
{
use LazilyRefreshDatabase;
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/HomeTest.php | tests/Feature/HomeTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Tests\TestCase;
class HomeTest extends TestCase
{
public function test_the_application_returns_a_successful_response(): void
{
$this->get('/')->assertStatus(200);
}
public function test_the_application_returns_a_successful_response_when... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/ArgumentTest.php | tests/Feature/ArgumentTest.php | <?php
namespace Tests\Feature;
use App\Http\Livewire\ArgumentList;
use App\Http\Livewire\SortField;
use App\Models\Argument;
use App\Models\Rfc;
use Livewire\Livewire;
use Tests\TestCase;
class ArgumentTest extends TestCase
{
/** @test */
public function admin_can_delete_any_argument()
{
$user = ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/AcceptVerificationRequestTest.php | tests/Feature/AcceptVerificationRequestTest.php | <?php
namespace Tests\Feature;
use App\Actions\AcceptVerificationRequest;
use App\Http\Controllers\PublicProfileController;
use App\Models\Message;
use App\Models\UserFlair;
use App\Models\VerificationRequest;
use Tests\TestCase;
class AcceptVerificationRequestTest extends TestCase
{
/** @test */
public func... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/RfcTest.php | tests/Feature/RfcTest.php | <?php
namespace Tests\Feature;
use App\Http\Controllers\EndRfcController;
use App\Http\Controllers\PublishRfcController;
use App\Http\Controllers\RfcAdminController;
use App\Http\Controllers\RfcCreateController;
use App\Http\Controllers\RfcEditController;
use App\Http\Controllers\RfcMetaImageController;
use App\Model... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/UpdatePasswordTest.php | tests/Feature/UpdatePasswordTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Laravel\Jetstream\Http\Livewire\UpdatePasswordForm;
use Livewire\Livewire;
use Tests\TestCase;
class UpdatePasswordTest extends TestCase
{
public function test_password_can_be_updated(): void
{
$this->actingA... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/RfcVoteTest.php | tests/Feature/RfcVoteTest.php | <?php
namespace Tests\Feature;
use App\Http\Controllers\RfcDetailController;
use App\Http\Livewire\VoteBar;
use App\Models\Argument;
use App\Models\ReputationType;
use App\Models\Rfc;
use App\Models\VoteType;
use Livewire\Livewire;
use Tests\TestCase;
class RfcVoteTest extends TestCase
{
/** @test */
public ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/EmailVerificationTest.php | tests/Feature/EmailVerificationTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use App\Providers\RouteServiceProvider;
use Illuminate\Auth\Events\Verified;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL;
use Laravel\Fortify\Features;
use Tests\TestCase;
class EmailVerificationTest extends TestCase
{
public functi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/BrowserSessionsTest.php | tests/Feature/BrowserSessionsTest.php | <?php
namespace Tests\Feature;
use App\Models\User;
use Laravel\Jetstream\Http\Livewire\LogoutOtherBrowserSessionsForm;
use Livewire\Livewire;
use Tests\TestCase;
class BrowserSessionsTest extends TestCase
{
public function test_other_browser_sessions_can_be_logged_out(): void
{
$this->actingAs($user... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/DenyVerificationRequestTest.php | tests/Feature/DenyVerificationRequestTest.php | <?php
namespace Tests\Feature;
use App\Actions\DenyVerificationRequest;
use App\Http\Controllers\ProfileController;
use App\Models\Message;
use App\Models\VerificationRequest;
use Tests\TestCase;
class DenyVerificationRequestTest extends TestCase
{
/** @test */
public function test_deny()
{
$user... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/Livewire/UserListTest.php | tests/Feature/Livewire/UserListTest.php | <?php
namespace Tests\Feature\Livewire;
use App\Http\Livewire\UserList;
use App\Models\User;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Str;
use Livewire\Livewire;
use Tests\TestCase;
class UserListTest extends TestCase
{
use Lazil... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/Livewire/UsernameInputTest.php | tests/Feature/Livewire/UsernameInputTest.php | <?php
namespace Tests\Feature\Livewire;
use App\Actions\GenerateUsername;
use App\Http\Livewire\UsernameInput;
use App\Models\User;
use Illuminate\Support\Str;
use Livewire\Livewire;
use Tests\TestCase;
class UsernameInputTest extends TestCase
{
public function test_component_can_render(): void
{
$co... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/Support/FetchContributorsTest.php | tests/Feature/Support/FetchContributorsTest.php | <?php
namespace Tests\Feature\Support;
use App\Models\Contributor;
use App\Support\FetchContributors;
use Illuminate\Support\Arr;
use Tests\TestCase;
class FetchContributorsTest extends TestCase
{
public function test_no_duplicates_in_contributors_json(): void
{
$contributors = app(FetchContributors:... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/Profile/ProfileInformationTest.php | tests/Feature/Profile/ProfileInformationTest.php | <?php
namespace Tests\Feature\Profile;
use App\Models\User;
use Illuminate\Http\UploadedFile;
use Laravel\Jetstream\Http\Livewire\UpdateProfileInformationForm;
use Livewire\Livewire;
use Tests\TestCase;
class ProfileInformationTest extends TestCase
{
public function test_current_profile_information_is_available(... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Feature/Profile/UpdateProfileTest.php | tests/Feature/Profile/UpdateProfileTest.php | <?php
namespace Tests\Feature\Profile;
use App\Http\Controllers\ProfileController;
use App\Models\User;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;
class UpdateProfileTest extends TestCase
{
private string $url;
protected function setUp(): void
{
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/SendUserMessageActionTest.php | tests/Unit/SendUserMessageActionTest.php | <?php
namespace Tests\Unit;
use App\Actions\SendUserMessage;
use App\Models\Message;
use App\Models\User;
use Tests\TestCase;
class SendUserMessageActionTest extends TestCase
{
public function test_it_wont_send_a_message_from_the_same_user_to_the_same_user()
{
$user = User::factory()->create();
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/GenerateUsernameActionTest.php | tests/Unit/GenerateUsernameActionTest.php | <?php
namespace Tests\Unit;
use App\Actions\GenerateUsername;
use App\Models\User;
use Tests\TestCase;
class GenerateUsernameActionTest extends TestCase
{
public function test_username_generation_for_user(): void
{
$user = User::factory()->create(['name' => 'John Doe']);
$username = (new Gen... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/ToggleArgumentVoteActionTest.php | tests/Unit/ToggleArgumentVoteActionTest.php | <?php
namespace Tests\Unit;
use App\Actions\ToggleArgumentVote;
use App\Models\Argument;
use App\Models\ReputationType;
use App\Models\User;
use App\Models\VoteType;
use Tests\TestCase;
class ToggleArgumentVoteActionTest extends TestCase
{
public function test_it_toggle_argument_vote(): void
{
$user ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/RequestEmailChangeActionTest.php | tests/Unit/RequestEmailChangeActionTest.php | <?php
namespace Tests\Unit;
use App\Actions\RequestEmailChange;
use App\Mail\EmailVerificationMail;
use App\Models\EmailChangeRequest;
use App\Models\User;
use Illuminate\Support\Facades\Mail;
use Tests\TestCase;
class RequestEmailChangeActionTest extends TestCase
{
public function test_request_change()
{
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/DuskHelperTest.php | tests/Unit/DuskHelperTest.php | <?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class DuskHelperTest extends TestCase
{
public function test_it_renders_nothing_if_in_production_env(): void
{
app()->detectEnvironment(fn () => 'production');
$this->assertFalse(dusk('test'));
}
public function test_it_rend... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/tests/Unit/RfcSyncCommandTest.php | tests/Unit/RfcSyncCommandTest.php | <?php
namespace Tests\Unit;
use App\Console\Commands\RfcSyncCommand;
use App\Support\ExternalsRssFeed;
use Mockery\MockInterface;
use SimpleXMLElement;
use Tests\TestCase;
class RfcSyncCommandTest extends TestCase
{
public function test_command(): void
{
$this->mock(ExternalsRssFeed::class, function ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/routes/web.php | routes/web.php | <?php
use App\Http\Controllers\AboutController;
use App\Http\Controllers\DisableEmailOptinController;
use App\Http\Controllers\EnableEmailOptinController;
use App\Http\Controllers\EndRfcController;
use App\Http\Controllers\ForgotPasswordController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\Logi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/routes/api.php | routes/api.php | <?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/routes/console.php | routes/console.php | <?php
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/config/backup.php | config/backup.php | <?php
return [
'backup' => [
/*
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => env('APP_NAME', 'laravel-backup'),
'source' => [
'files' => [
/*
* The list of directorie... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/config/horizon.php | config/horizon.php | <?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Horizon Domain
|--------------------------------------------------------------------------
|
| This is the subdomain where Horizon will be accessible from. If this
|... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.