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/lang/vendor/backup/cs/notifications.php | lang/vendor/backup/cs/notifications.php | <?php
return [
'exception_message' => 'Zpráva výjimky: :message',
'exception_trace' => 'Stopa výjimky: :trace',
'exception_message_title' => 'Zpráva výjimky',
'exception_trace_title' => 'Stopa výjimky',
'backup_failed_subject' => 'Záloha :application_name neuspěla',
'backup_failed_body' => 'Dů... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/en/notifications.php | lang/vendor/backup/en/notifications.php | <?php
return [
'exception_message' => 'Exception message: :message',
'exception_trace' => 'Exception trace: :trace',
'exception_message_title' => 'Exception message',
'exception_trace_title' => 'Exception trace',
'backup_failed_subject' => 'Failed backup of :application_name',
'backup_failed_b... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/ja/notifications.php | lang/vendor/backup/ja/notifications.php | <?php
return [
'exception_message' => '例外のメッセージ: :message',
'exception_trace' => '例外の追跡: :trace',
'exception_message_title' => '例外のメッセージ',
'exception_trace_title' => '例外の追跡',
'backup_failed_subject' => ':application_name のバックアップに失敗しました。',
'backup_failed_body' => '重要: :application_name のバックアップ中... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/pl/notifications.php | lang/vendor/backup/pl/notifications.php | <?php
return [
'exception_message' => 'Błąd: :message',
'exception_trace' => 'Zrzut błędu: :trace',
'exception_message_title' => 'Błąd',
'exception_trace_title' => 'Zrzut błędu',
'backup_failed_subject' => 'Tworzenie kopii zapasowej aplikacji :application_name nie powiodło się',
'backup_failed... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/ar/notifications.php | lang/vendor/backup/ar/notifications.php | <?php
return [
'exception_message' => 'رسالة استثناء: :message',
'exception_trace' => 'تتبع الإستثناء: :trace',
'exception_message_title' => 'رسالة استثناء',
'exception_trace_title' => 'تتبع الإستثناء',
'backup_failed_subject' => 'أخفق النسخ الاحتياطي لل :application_name',
'backup_failed_body... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/nl/notifications.php | lang/vendor/backup/nl/notifications.php | <?php
return [
'exception_message' => 'Fout bericht: :message',
'exception_trace' => 'Fout trace: :trace',
'exception_message_title' => 'Fout bericht',
'exception_trace_title' => 'Fout trace',
'backup_failed_subject' => 'Back-up van :application_name mislukt',
'backup_failed_body' => 'Belangri... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/fr/notifications.php | lang/vendor/backup/fr/notifications.php | <?php
return [
'exception_message' => 'Message de l\'exception : :message',
'exception_trace' => 'Trace de l\'exception : :trace',
'exception_message_title' => 'Message de l\'exception',
'exception_trace_title' => 'Trace de l\'exception',
'backup_failed_subject' => 'Échec de la sauvegarde de :appl... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/pt/notifications.php | lang/vendor/backup/pt/notifications.php | <?php
return [
'exception_message' => 'Exception message: :message',
'exception_trace' => 'Exception trace: :trace',
'exception_message_title' => 'Exception message',
'exception_trace_title' => 'Exception trace',
'backup_failed_subject' => 'Falha no backup da aplicação :application_name',
'bac... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/it/notifications.php | lang/vendor/backup/it/notifications.php | <?php
return [
'exception_message' => 'Messaggio dell\'eccezione: :message',
'exception_trace' => 'Traccia dell\'eccezione: :trace',
'exception_message_title' => 'Messaggio dell\'eccezione',
'exception_trace_title' => 'Traccia dell\'eccezione',
'backup_failed_subject' => 'Fallito il backup di :app... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/hr/notifications.php | lang/vendor/backup/hr/notifications.php | <?php
return [
'exception_message' => 'Greška: :message',
'exception_trace' => 'Praćenje greške: :trace',
'exception_message_title' => 'Greška',
'exception_trace_title' => 'Praćenje greške',
'backup_failed_subject' => 'Neuspješno sigurnosno kopiranje za :application_name',
'backup_failed_body'... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/ro/notifications.php | lang/vendor/backup/ro/notifications.php | <?php
return [
'exception_message' => 'Cu excepția mesajului: :message',
'exception_trace' => 'Urmă excepţie: :trace',
'exception_message_title' => 'Mesaj de excepție',
'exception_trace_title' => 'Urmă excepţie',
'backup_failed_subject' => 'Nu s-a putut face copie de rezervă pentru :application_na... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/id/notifications.php | lang/vendor/backup/id/notifications.php | <?php
return [
'exception_message' => 'Pesan pengecualian: :message',
'exception_trace' => 'Jejak pengecualian: :trace',
'exception_message_title' => 'Pesan pengecualian',
'exception_trace_title' => 'Jejak pengecualian',
'backup_failed_subject' => 'Gagal backup :application_name',
'backup_fail... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/fa/notifications.php | lang/vendor/backup/fa/notifications.php | <?php
return [
'exception_message' => 'پیغام خطا: :message',
'exception_trace' => 'جزییات خطا: :trace',
'exception_message_title' => 'پیغام خطا',
'exception_trace_title' => 'جزییات خطا',
'backup_failed_subject' => 'پشتیبانگیری :application_name با خطا مواجه شد.',
'backup_failed_body' => 'پیغا... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/hi/notifications.php | lang/vendor/backup/hi/notifications.php | <?php
return [
'exception_message' => 'अपवाद संदेश: :message',
'exception_trace' => 'अपवाद निशान: :trace',
'exception_message_title' => 'अपवादी संदेश',
'exception_trace_title' => 'अपवाद निशान',
'backup_failed_subject' => ':application_name का बैकअप असफल रहा',
'backup_failed_body' => 'जरूरी सुच... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/pt-BR/notifications.php | lang/vendor/backup/pt-BR/notifications.php | <?php
return [
'exception_message' => 'Exception message: :message',
'exception_trace' => 'Exception trace: :trace',
'exception_message_title' => 'Exception message',
'exception_trace_title' => 'Exception trace',
'backup_failed_subject' => 'Falha no backup da aplicação :application_name',
'bac... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/ru/notifications.php | lang/vendor/backup/ru/notifications.php | <?php
return [
'exception_message' => 'Сообщение об ошибке: :message',
'exception_trace' => 'Сведения об ошибке: :trace',
'exception_message_title' => 'Сообщение об ошибке',
'exception_trace_title' => 'Сведения об ошибке',
'backup_failed_subject' => 'Не удалось сделать резервную копию :application... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/no/notifications.php | lang/vendor/backup/no/notifications.php | <?php
return [
'exception_message' => 'Exception: :message',
'exception_trace' => 'Exception trace: :trace',
'exception_message_title' => 'Exception',
'exception_trace_title' => 'Exception trace',
'backup_failed_subject' => 'Backup feilet for :application_name',
'backup_failed_body' => 'Viktg:... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/zh-TW/notifications.php | lang/vendor/backup/zh-TW/notifications.php | <?php
return [
'exception_message' => '異常訊息: :message',
'exception_trace' => '異常追蹤: :trace',
'exception_message_title' => '異常訊息',
'exception_trace_title' => '異常追蹤',
'backup_failed_subject' => ':application_name 備份失敗',
'backup_failed_body' => '重要說明:備份 :application_name 時發生錯誤',
'backup_succ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/zh-CN/notifications.php | lang/vendor/backup/zh-CN/notifications.php | <?php
return [
'exception_message' => '异常信息: :message',
'exception_trace' => '异常跟踪: :trace',
'exception_message_title' => '异常信息',
'exception_trace_title' => '异常跟踪',
'backup_failed_subject' => ':application_name 备份失败',
'backup_failed_body' => '重要说明:备份 :application_name 时发生错误',
'backup_succ... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/es/notifications.php | lang/vendor/backup/es/notifications.php | <?php
return [
'exception_message' => 'Mensaje de la excepción: :message',
'exception_trace' => 'Traza de la excepción: :trace',
'exception_message_title' => 'Mensaje de la excepción',
'exception_trace_title' => 'Traza de la excepción',
'backup_failed_subject' => 'Copia de seguridad de :applicatio... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/lang/vendor/backup/da/notifications.php | lang/vendor/backup/da/notifications.php | <?php
return [
'exception_message' => 'Fejlbesked: :message',
'exception_trace' => 'Fejl trace: :trace',
'exception_message_title' => 'Fejlbesked',
'exception_trace_title' => 'Fejl trace',
'backup_failed_subject' => 'Backup af :application_name fejlede',
'backup_failed_body' => 'Vigtigt: Der s... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/functions.php | app/functions.php | <?php
use League\CommonMark\MarkdownConverter;
if (! function_exists('md')) {
function md(string $contents): string
{
/** @var MarkdownConverter $markdown */
$markdown = app(MarkdownConverter::class);
return $markdown->convert($contents)->getContent();
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Jobs/SendNewRfcMailJob.php | app/Jobs/SendNewRfcMailJob.php | <?php
namespace App\Jobs;
use App\Actions\SendUserMail;
use App\Mail\NewRfcMail;
use App\Models\Rfc;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Jobs/RenderMetaImageJob.php | app/Jobs/RenderMetaImageJob.php | <?php
namespace App\Jobs;
use App\Models\Rfc;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Spatie\Browsershot\Browsershot;
class RenderMetaImageJob implements S... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Exceptions/Handler.php | app/Exceptions/Handler.php | <?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* The list of the inputs that are never flashed to the session on validation exceptions.
*
* @var array<int, string>
*/
protected $... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Helpers/Dusk.php | app/Helpers/Dusk.php | <?php
use Illuminate\Support\HtmlString;
if (! function_exists('dusk')) {
function dusk(string $selector): ?HtmlString
{
if (app()->isProduction()) {
return null;
}
return new HtmlString("dusk=\"$selector\"");
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Kernel.php | app/Http/Kernel.php | <?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
use Spatie\MailPreview\Http\Middleware\AddMailPreviewOverlayToResponse;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your a... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Requests/UserRequest.php | app/Http/Requests/UserRequest.php | <?php
namespace App\Http\Requests;
use App\Models\UserFlair;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\Enum;
class UserRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<s... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Requests/RfcRequest.php | app/Http/Requests/RfcRequest.php | <?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class RfcRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, array<int, ValidationRule|string>|Vali... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Requests/Profile/UpdateRequest.php | app/Http/Requests/Profile/UpdateRequest.php | <?php
namespace App\Http\Requests\Profile;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\File;
class UpdateRequest extends FormRequest
{
public function authorize(): bool
{
return auth()-... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/VerificationRequestsList.php | app/Http/Livewire/VerificationRequestsList.php | <?php
namespace App\Http\Livewire;
use App\Actions\AcceptVerificationRequest;
use App\Actions\DenyVerificationRequest;
use App\Models\UserFlair;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Collection;
use Livewire\Component;
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/Events.php | app/Http/Livewire/Events.php | <?php
namespace App\Http\Livewire;
enum Events: string
{
case ARGUMENT_CREATED = 'argument_created';
case ARGUMENT_DELETED = 'argument_deleted';
case USER_VOTED_FOR_ARGUMENT = 'user_voted_for_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/Http/Livewire/VoteBar.php | app/Http/Livewire/VoteBar.php | <?php
namespace App\Http\Livewire;
use App\Actions\CreateArgument;
use App\Http\Controllers\RfcDetailController;
use App\Models\Rfc;
use App\Models\User;
use App\Models\VoteType;
use Illuminate\Contracts\View\View;
use Livewire\Component;
use Session;
class VoteBar extends Component
{
public Rfc $rfc;
publi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/SortField.php | app/Http/Livewire/SortField.php | <?php
namespace App\Http\Livewire;
use Illuminate\Database\Eloquent\Builder;
enum SortField: string
{
case VOTE_COUNT = 'vote_count';
case CREATED_AT = 'created_at';
/**
* @param \Illuminate\Database\Eloquent\Builder<\App\Models\Argument> $query
* @return \Illuminate\Database\Eloquent\Builde... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/MessageList.php | app/Http/Livewire/MessageList.php | <?php
namespace App\Http\Livewire;
use App\Models\Message;
use App\Models\MessageStatus;
use App\Models\User;
use Illuminate\Contracts\View\View;
use Livewire\Component;
class MessageList extends Component
{
public User $user;
public function render(): View
{
return view('livewire.message-list')... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/ArgumentList.php | app/Http/Livewire/ArgumentList.php | <?php
namespace App\Http\Livewire;
use App\Actions\DeleteArgument;
use App\Actions\ToggleArgumentVote;
use App\Http\Controllers\RfcDetailController;
use App\Models\Argument;
use App\Models\Rfc;
use App\Models\User;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Session;
use Livewire\Component;
use... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/UsernameInput.php | app/Http/Livewire/UsernameInput.php | <?php
namespace App\Http\Livewire;
use App\Rules\UsernameFormatRule;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Contracts\View\View;
use Livewire\Component;
class UsernameInput extends Component
{
public string $name;
public string $label;
public ?string $value;
public stri... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/UserList.php | app/Http/Livewire/UserList.php | <?php
namespace App\Http\Livewire;
use App\Models\User;
use Illuminate\Contracts\View\View;
use Livewire\Component;
use Livewire\WithPagination;
class UserList extends Component
{
use WithPagination;
public string $search = '';
public ?int $isDeletingId = null;
public function render(): View
{... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Livewire/RfcCounter.php | app/Http/Livewire/RfcCounter.php | <?php
namespace App\Http\Livewire;
use App\Models\Rfc;
use App\Models\VoteType;
use Illuminate\View\View;
use Livewire\Component;
class RfcCounter extends Component
{
public VoteType $voteType;
public Rfc $rfc;
/**
* @var array<string, string>
*/
protected $listeners = [
Events::U... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/MailPreviewController.php | app/Http/Controllers/MailPreviewController.php | <?php
namespace App\Http\Controllers;
use App\Mail\NewRfcMail;
use App\Models\Rfc;
use App\Models\User;
final readonly class MailPreviewController
{
public function __invoke(): string
{
abort_if(app()->isProduction(), 400);
$mail = new NewRfcMail(
rfc: Rfc::query()->findOrFail(1)... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/ProfileController.php | app/Http/Controllers/ProfileController.php | <?php
namespace App\Http\Controllers;
use App\Actions\CreateVerificationRequest;
use App\Actions\Fortify\PasswordValidationRules;
use App\Actions\RequestEmailChange;
use App\Http\Requests\Profile\UpdateRequest;
use App\Models\EmailChangeRequest;
use App\Models\User;
use Illuminate\Contracts\View\View;
use Illuminate\... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/Controller.php | app/Http/Controllers/Controller.php | <?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
use AuthorizesRequests, ValidatesRequests;
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/RfcAdminController.php | app/Http/Controllers/RfcAdminController.php | <?php
namespace App\Http\Controllers;
use App\Models\Rfc;
use Illuminate\Contracts\View\View;
final readonly class RfcAdminController
{
public function __invoke(): View
{
$rfcs = Rfc::query()->orderByDesc('created_at')->get();
return view('rfc-admin', [
'rfcs' => $rfcs,
]... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/ViewMessageController.php | app/Http/Controllers/ViewMessageController.php | <?php
namespace App\Http\Controllers;
use App\Models\Message;
use App\Models\MessageStatus;
use Illuminate\Http\RedirectResponse;
final readonly class ViewMessageController
{
public function __invoke(Message $message): RedirectResponse
{
$message->update(['status' => MessageStatus::READ]);
$... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/RfcEditController.php | app/Http/Controllers/RfcEditController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\RfcRequest;
use App\Models\Rfc;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
final readonly class RfcEditController
{
public function edit(Rfc $rfc): View
{
return view('rfc-form', [
'rfc' => $rfc,
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/SocialiteRedirectController.php | app/Http/Controllers/SocialiteRedirectController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Laravel\Socialite\Facades\Socialite;
use Symfony\Component\HttpFoundation\RedirectResponse as SymfonyRedirectResponse;
final readonly class SocialiteRedirectController
{
public function __invoke(string $driver): RedirectResponse|Symf... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/PhpInfoController.php | app/Http/Controllers/PhpInfoController.php | <?php
namespace App\Http\Controllers;
class PhpInfoController
{
public function __invoke(): void
{
phpinfo();
exit;
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/EndRfcController.php | app/Http/Controllers/EndRfcController.php | <?php
namespace App\Http\Controllers;
use App\Models\Rfc;
use Illuminate\Http\RedirectResponse;
final readonly class EndRfcController
{
public function __invoke(Rfc $rfc): RedirectResponse
{
$rfc->update([
'ends_at' => now(),
]);
return redirect()->action(RfcAdminControll... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/PublishRfcController.php | app/Http/Controllers/PublishRfcController.php | <?php
namespace App\Http\Controllers;
use App\Models\Rfc;
use Illuminate\Http\RedirectResponse;
final readonly class PublishRfcController
{
public function __invoke(Rfc $rfc): RedirectResponse
{
$rfc->update([
'published_at' => now(),
]);
return redirect()->action(RfcAdmi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/LogoutController.php | app/Http/Controllers/LogoutController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
final readonly class LogoutController
{
public function __invoke(): View
{
return view('auth.logout');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/EnableEmailOptinController.php | app/Http/Controllers/EnableEmailOptinController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
final readonly class EnableEmailOptinController
{
public const string STAY_UPDATED_MESSAGE = 'Stay updated! Get an email whenever a new RFC is added.';
public const string BUTTON_MESSAGE = 'Enable notifi... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/UserEditController.php | app/Http/Controllers/UserEditController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\UserRequest;
use App\Models\User;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
final readonly class UserEditController
{
public function edit(User $user): View
{
return view('user-form', [
'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/Http/Controllers/RfcMetaImageController.php | app/Http/Controllers/RfcMetaImageController.php | <?php
namespace App\Http\Controllers;
use App\Jobs\RenderMetaImageJob;
use App\Models\Rfc;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
final readonly class RfcMetaImageController
{
public function __invoke(Rfc $rfc, Request $request): Response|string
{
if ($request->has('html')) {
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/HomeController.php | app/Http/Controllers/HomeController.php | <?php
namespace App\Http\Controllers;
use App\Models\Argument;
use App\Models\ArgumentVote;
use App\Models\Rfc;
use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\DB;
final readonly class HomeController
{
public function __invoke(): View
{
$us... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/SocialiteCallbackController.php | app/Http/Controllers/SocialiteCallbackController.php | <?php
namespace App\Http\Controllers;
use App\Actions\GenerateUsername;
use App\Models\User;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Laravel\Socialite\Contracts\User as SocialiteUser;
use Laravel\Socialite\Facades\Socialite;
final readonly class Soc... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/RfcDetailController.php | app/Http/Controllers/RfcDetailController.php | <?php
namespace App\Http\Controllers;
use App\Models\Rfc;
use App\Models\User;
use App\Support\Meta;
use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Collection;
final readonly class RfcDetailController
{
public function __construct(private Meta $meta) {}
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/RfcCreateController.php | app/Http/Controllers/RfcCreateController.php | <?php
namespace App\Http\Controllers;
use App\Http\Requests\RfcRequest;
use App\Models\Rfc;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
final readonly class RfcCreateController
{
public function create(): View
{
return view('rfc-form', [
'rfc' => new Rfc,
... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/LoginController.php | app/Http/Controllers/LoginController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
use Illuminate\Support\Facades\Auth;
final readonly class LoginController
{
public function __invoke(): RedirectResponse|View
{
if (! Auth::check()) {
return view('auth.login');... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/DisableEmailOptinController.php | app/Http/Controllers/DisableEmailOptinController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
final readonly class DisableEmailOptinController
{
public function __invoke(Request $request): RedirectResponse
{
$user = $request->user();
if (! $user) {
return redirect()->t... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/MessagesController.php | app/Http/Controllers/MessagesController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
final readonly class MessagesController
{
public function __invoke(): View
{
$user = auth()->user()?->load([
'inboxMessages.user',
'inboxMessages.sender',
'archivedMessages.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/Http/Controllers/VerificationRequestsAdminController.php | app/Http/Controllers/VerificationRequestsAdminController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
final readonly class VerificationRequestsAdminController
{
public function __invoke(): View
{
return view('verification-request-admin');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/ForgotPasswordController.php | app/Http/Controllers/ForgotPasswordController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
final readonly class ForgotPasswordController
{
public function __invoke(): View
{
return view('auth.forgot-password');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/PublicProfileController.php | app/Http/Controllers/PublicProfileController.php | <?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Contracts\View\View;
final readonly class PublicProfileController
{
public function __invoke(User $user): View
{
$user->load([
'arguments.rfc',
'argumentVotes.argument.rfc',
'argumentVotes.ar... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/AboutController.php | app/Http/Controllers/AboutController.php | <?php
namespace App\Http\Controllers;
use App\Support\FetchContributors;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Cache;
final readonly class AboutController
{
public function __invoke(FetchContributors $contributors): View
{
$contributors = Cache::remember('contributors', n... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Controllers/RegisterController.php | app/Http/Controllers/RegisterController.php | <?php
namespace App\Http\Controllers;
use Illuminate\Contracts\View\View;
use Illuminate\Http\RedirectResponse;
final readonly class RegisterController
{
public function __invoke(): RedirectResponse|View
{
// Only allow GitHub login
return redirect('/');
}
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Middleware/SetCacheHeaders.php | app/Http/Middleware/SetCacheHeaders.php | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Symfony\Component\HttpFoundation\Response;
class SetCacheHeaders
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Res... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/Middleware/AdminMiddleware.php | app/Http/Middleware/AdminMiddleware.php | <?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class AdminMiddleware
{
/**
* @param Closure(Request): Response $next
*/
public function handle(Request $request, Closure $next): Res... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 = [
'theme',
];
}
| php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/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 | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Http/ViewComposers/AdminViewComposer.php | app/Http/ViewComposers/AdminViewComposer.php | <?php
namespace App\Http\ViewComposers;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
use Illuminate\View\View;
class AdminViewComposer
{
public function compose(View $view): void
{
$user = auth()->user();
if (! $user?->is_admin) {
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/Http/ViewComposers/ThemeViewComposer.php | app/Http/ViewComposers/ThemeViewComposer.php | <?php
namespace App\Http\ViewComposers;
use Illuminate\View\View;
class ThemeViewComposer
{
public function compose(View $view): void
{
$theme = request()->cookies->get('theme');
$themeCssClass = match ($theme) {
'dark', 'system-dark' => 'dark',
'light', 'system-light... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Mail/EmailVerificationMail.php | app/Mail/EmailVerificationMail.php | <?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class EmailVerificationMail extends Mailable
{
use Queueable, SerializesModels;
public function __construct(public string $verificationLink) {}... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Mail/HasMailId.php | app/Mail/HasMailId.php | <?php
namespace App\Mail;
interface HasMailId
{
public function getMailId(): 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/Mail/NewRfcMail.php | app/Mail/NewRfcMail.php | <?php
namespace App\Mail;
use App\Models\Rfc;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class NewRfcMail extends Mailable implements HasMailId
{
use Queueable, SerializesModels;
public funct... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Support/ExternalsRssFeed.php | app/Support/ExternalsRssFeed.php | <?php
namespace App\Support;
use Feed;
use SimpleXMLElement;
/**
* @codeCoverageIgnore this is a wrapper for `Feed::loadRss`, cannot be tested
*/
class ExternalsRssFeed
{
public function load(): SimpleXMLElement
{
/** @var SimpleXMLElement $rss */
$rss = Feed::loadRss('https://externals.io/... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Support/Meta.php | app/Support/Meta.php | <?php
namespace App\Support;
use Illuminate\Support\HtmlString;
final class Meta
{
public function __construct(
public string $title,
public string $description,
public string $image,
) {}
public function title(string $title): self
{
$this->title = $title;
re... | php | MIT | 7401f8a456d9586afefd336ea8d045cf6662c26d | 2026-01-05T04:33:15.533043Z | false |
rfc-vote/rfc-vote | https://github.com/rfc-vote/rfc-vote/blob/7401f8a456d9586afefd336ea8d045cf6662c26d/app/Support/FetchContributors.php | app/Support/FetchContributors.php | <?php
namespace App\Support;
use App\Models\Contributor;
use Illuminate\Support\Facades\File;
class FetchContributors
{
/**
* @return array<int, Contributor>
*/
public function getContributors(): array
{
return collect($this->getJson())
->map(fn (array $contributor) => new C... | 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/ToggleArgumentVote.php | app/Actions/ToggleArgumentVote.php | <?php
namespace App\Actions;
use App\Models\Argument;
use App\Models\ArgumentVote;
use App\Models\ReputationType;
use App\Models\User;
use Illuminate\Support\Facades\DB;
final readonly class ToggleArgumentVote
{
public function __invoke(User $user, Argument $argument): void
{
DB::transaction(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/Actions/SendUserMessage.php | app/Actions/SendUserMessage.php | <?php
namespace App\Actions;
use App\Models\Message;
use App\Models\User;
final readonly class SendUserMessage
{
public function __invoke(User $to, User $sender, string $url, string $body): void
{
if ($sender->is($to)) {
return;
}
Message::create([
'user_id' =... | 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/CreateArgumentComment.php | app/Actions/CreateArgumentComment.php | <?php
namespace App\Actions;
use App\Http\Controllers\RfcDetailController;
use App\Models\Argument;
use App\Models\ArgumentComment;
use App\Models\User;
final readonly class CreateArgumentComment
{
public function __invoke(
Argument $argument,
User $user,
string $body,
): 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/Actions/DenyVerificationRequest.php | app/Actions/DenyVerificationRequest.php | <?php
namespace App\Actions;
use App\Http\Controllers\ProfileController;
use App\Models\User;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
final readonly class DenyVerificationRequest
{
public function __construct(private SendUserMessage $sendMessage) {}
public function __in... | 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/GenerateUsername.php | app/Actions/GenerateUsername.php | <?php
namespace App\Actions;
use App\Models\User;
use Illuminate\Support\Str;
final class GenerateUsername
{
public function __invoke(User|string $userOrString): string
{
if ($userOrString instanceof User) {
return Str::slug($userOrString->name);
}
return Str::slug($userO... | 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/SendNewRfcMails.php | app/Actions/SendNewRfcMails.php | <?php
namespace App\Actions;
use App\Jobs\SendNewRfcMailJob;
use App\Models\Rfc;
use App\Models\User;
final readonly class SendNewRfcMails
{
public function __invoke(Rfc $rfc): void
{
$users = User::query()->where('email_optin', true)->get();
foreach ($users as $user) {
dispatch(... | 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/AcceptVerificationRequest.php | app/Actions/AcceptVerificationRequest.php | <?php
namespace App\Actions;
use App\Http\Controllers\PublicProfileController;
use App\Models\User;
use App\Models\UserFlair;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
final readonly class AcceptVerificationRequest
{
public function __construct(private SendUserMessage $sendMes... | 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/SendUserMail.php | app/Actions/SendUserMail.php | <?php
namespace App\Actions;
use App\Mail\HasMailId;
use App\Models\User;
use App\Models\UserMail;
use Illuminate\Mail\Mailable;
use Mail;
final readonly class SendUserMail
{
public function __invoke(User $user, Mailable $mailable): void
{
if (! $user->email_optin || ! method_exists($mailable, 'envel... | 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/CreateArgument.php | app/Actions/CreateArgument.php | <?php
namespace App\Actions;
use App\Models\Argument;
use App\Models\Rfc;
use App\Models\User;
use App\Models\VoteType;
use Illuminate\Support\Facades\DB;
final readonly class CreateArgument
{
public function __invoke(Rfc $rfc, User $user, VoteType $voteType, string $body): Argument
{
$argument = new... | 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/RemoveReputation.php | app/Actions/RemoveReputation.php | <?php
namespace App\Actions;
use App\Models\ReputationType;
use App\Models\User;
final readonly class RemoveReputation
{
public function __invoke(User $user, ReputationType $reputationType, int $times = 1): void
{
$user->decrement(
column: 'reputation',
amount: $reputationType... | 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/RequestEmailChange.php | app/Actions/RequestEmailChange.php | <?php
namespace App\Actions;
use App\Mail\EmailVerificationMail;
use App\Models\User;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\Str;
final readonly class RequestEmailChange
{
public function __invoke(User $user, string $newEmail): void
{
$token = ... | 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/CreateVerificationRequest.php | app/Actions/CreateVerificationRequest.php | <?php
namespace App\Actions;
use App\Http\Controllers\VerificationRequestsAdminController;
use App\Models\User;
use App\Models\VerificationRequest;
use App\Models\VerificationRequestStatus;
final readonly class CreateVerificationRequest
{
public function __construct(private SendUserMessage $sendMessage) {}
... | 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/DeleteArgument.php | app/Actions/DeleteArgument.php | <?php
namespace App\Actions;
use App\Models\Argument;
use App\Models\ReputationType;
use App\Models\User;
use Illuminate\Support\Facades\DB;
final readonly class DeleteArgument
{
public function __invoke(User $user, Argument $argument): void
{
if (! $user->can('delete', $argument)) {
retu... | 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/AddReputation.php | app/Actions/AddReputation.php | <?php
namespace App\Actions;
use App\Models\ReputationType;
use App\Models\User;
final readonly class AddReputation
{
public function __invoke(User $user, ReputationType $reputationType): void
{
$sql = <<<'SQL'
SELECT * FROM arguments
SQL;
$user->increment('reputation', $repu... | 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/UpdateUserProfileInformation.php | app/Actions/Fortify/UpdateUserProfileInformation.php | <?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
use Laravel\Fortify\Contracts\UpdatesUserProfileInformation;
class UpdateUserProfileInformation implemen... | 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/UpdateUserPassword.php | app/Actions/Fortify/UpdateUserPassword.php | <?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\UpdatesUserPasswords;
class UpdateUserPassword implements UpdatesUserPasswords
{
use PasswordValidationRules;
/**
* Validate and update ... | 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.