repo_id
stringclasses
16 values
file_path
stringlengths
34
106
content
stringlengths
24
327k
__index_level_0__
int64
0
0
hf_public_repos
hf_public_repos/experiment/.php-cs-fixer.dist.php
<?php return (new PhpCsFixer\Config()) ->setRules([ '@PSR12' => true, 'array_syntax' => ['syntax' => 'short'], 'ordered_imports' => ['sort_algorithm' => 'alpha'], 'no_unused_imports' => true, 'not_operator_with_successor_space' => true, 'trailing_comma_in_multiline' ...
0
hf_public_repos
hf_public_repos/experiment/composer.lock
{ "_readme": [ "This file locks the dependencies of your project to a known state", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "ebb1226830bfc265411ba14a029e4ddf", "packa...
0
hf_public_repos
hf_public_repos/experiment/tailwind.config.js
const defaultTheme = require('tailwindcss/defaultTheme'); /** @type {import('tailwindcss').Config} */ module.exports = { content: [ './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/laravel/jetstream/**/*.blade.php', './storage/framework/views/*.p...
0
hf_public_repos
hf_public_repos/experiment/phpunit.xml
<?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" > <testsuites> <testsuite name="Unit"> <directory su...
0
hf_public_repos
hf_public_repos/experiment/script.sh
#!/bin/sh PATH=./node_modules/.bin:$PATH function composer_asdf { composer update } function npm_asdf { npm ci } function start { echo 'start' } function default { start } function help { echo "$0 <task> <args>" echo "Tasks:" compgen -A function | cat -n } TIMEFORMAT="Task completed in %3lR" time ${...
0
hf_public_repos
hf_public_repos/experiment/vite.config.js
import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import vue from '@vitejs/plugin-vue'; export default defineConfig({ plugins: [ laravel({ input: 'resources/js/app.js', refresh: true, }), vue({ template: { tra...
0
hf_public_repos
hf_public_repos/experiment/.editorconfig
root = true [*] charset = utf-8 end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false [*.{yml,yaml}] indent_size = 2 [docker-compose.yml] indent_size = 4
0
hf_public_repos
hf_public_repos/experiment/README.md
> **Note** > asfawefawef > > This is a note > **Warning** > This is a warning ```mermaid flowchart TD; A-->B; A-->C; B-->D; C-->D; ``` ```mermaid sequenceDiagram participant Server participant Browser Note right of Browser: User loads page Browser->>Server: Standard HTTP request activate Server Note ...
0
hf_public_repos
hf_public_repos/experiment/artisan
#!/usr/bin/env php <?php define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loa...
0
hf_public_repos
hf_public_repos/experiment/package-lock.json
{ "name": "experiment", "lockfileVersion": 3, "requires": true, "packages": { "": { "devDependencies": { "@inertiajs/vue3": "^1.0.0", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.2", "@vitejs/plugin-v...
0
hf_public_repos
hf_public_repos/experiment/package.json
{ "private": true, "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "@inertiajs/vue3": "^1.0.0", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.2", "@vitejs/plugin-vue": "^4.0.0", "autoprefixer": "^10.4.7"...
0
hf_public_repos
hf_public_repos/experiment/.prettierrc
{ "semi": false, "singleQuote": true, "tabWidth": 2, "trailingComma": "all", "htmlWhitespaceSensitivity": "css", "printWidth": 140, "arrowParens": "avoid" }
0
hf_public_repos
hf_public_repos/experiment/.eslintrc.js
module.exports = { env: { amd: true, browser: true, es6: true, }, extends: ['eslint:recommended', 'plugin:vue/vue3-recommended'], parserOptions: { sourceType: 'module', }, rules: { indent: ['error', 2], quotes: ['warn', 'single'], semi: ['warn', 'never'], 'comma-dangle': ['wa...
0
hf_public_repos
hf_public_repos/experiment/.env.example
APP_NAME=Laravel APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=experiment DB_USERNAME=root DB_PASSWORD= BROADCAST_DRIVER=log CACHE_DRIVER=file FILESYSTEM_DISK=local QUEUE_CO...
0
hf_public_repos
hf_public_repos/experiment/postcss.config.js
module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, }, };
0
hf_public_repos
hf_public_repos/experiment/composer.json
{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": [ "framework", "laravel" ], "license": "MIT", "require": { "php": "^8.1", "guzzlehttp/guzzle": "^7.2", "inertiajs/inertia-laravel": "^0.6.8", "...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2020_09_17_002541_create_device_rendering_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateDeviceRenderingTable extends Migration { public function up() { Schema::create('device_renderings', function (Blueprint $table) { $table->id(); ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2020_05_21_300000_create_team_invitations_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('team_invitations', function (Blueprint $tabl...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2020_05_21_100000_create_teams_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class () extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('teams', function (Blueprint $table) { ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2023_02_21_141149_create_sessions_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('sessions', function (Blueprint $table) { ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('personal_access_tokens', function (Blueprint...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2020_05_21_200000_create_team_user_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('team_user', function (Blueprint $table) { ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('password_reset_tokens', function (Blueprint ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; use Laravel\Fortify\Fortify; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('users', function...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2014_10_12_000000_create_users_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class () extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('users', function (Blueprint $table) { ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/migrations/2019_08_19_000000_create_failed_jobs_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('failed_jobs', function (Blueprint $table) { ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/seeders/DatabaseSeeder.php
<?php namespace Database\Seeders; use App\Models\DeviceRendering; use App\Models\User; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. */ public function run(): void { User::create([ 'name' => 'John Doe2', ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/factories/DeviceRenderingFactory.php
<?php namespace Database\Factories; use App\Models\DeviceRendering; use Illuminate\Database\Eloquent\Factories\Factory; class DeviceRenderingFactory extends Factory { public function definition(): array { return [ 'uuid' => $this->faker->uuid(), 'device_id' => $this->faker->rand...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/factories/UserFactory.php
<?php namespace Database\Factories; use App\Models\Team; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; use Laravel\Jetstream\Features; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string ...
0
hf_public_repos/experiment/database
hf_public_repos/experiment/database/factories/TeamFactory.php
<?php namespace Database\Factories; use App\Models\Team; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; class TeamFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Team::class; /** * Def...
0
hf_public_repos/experiment
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Providers/AppServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(): void { // } /** * Bootstrap any application services. */ public functi...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; use App\Models\Team; use App\Policies\TeamPolicy; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array<class-string, class...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Providers/JetstreamServiceProvider.php
<?php namespace App\Providers; use App\Actions\Jetstream\AddTeamMember; use App\Actions\Jetstream\CreateTeam; use App\Actions\Jetstream\DeleteTeam; use App\Actions\Jetstream\DeleteUser; use App\Actions\Jetstream\InviteTeamMember; use App\Actions\Jetstream\RemoveTeamMember; use App\Actions\Jetstream\UpdateTeamName; us...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/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 { /*...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Enum/Permission.php
<?php namespace App\Enum; use App\Attributes\Abilities; use App\Attributes\Description; use App\Attributes\Key; enum Permission: string { #[Key('admin')] #[Description('Admin users can perform any action.')] #[Abilities(['create','read','update','delete'])] case ADMIN = 'ADMIN'; #[Key('editor')]...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/Team.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Laravel\Jetstream\Events\TeamCreated; use Laravel\Jetstream\Events\TeamDeleted; use Laravel\Jetstream\Events\TeamUpdated; use Laravel\Jetstream\Team as JetstreamTeam; class Team extends JetstreamTeam { use HasFactory; /**...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/TeamInvitation.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Laravel\Jetstream\Jetstream; use Laravel\Jetstream\TeamInvitation as JetstreamTeamInvitation; class TeamInvitation extends JetstreamTeamInvitation { /** * The attributes that are mass assignable. * * @var array<i...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/DeviceRendering.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class DeviceRendering extends Model { use HasFactory; protected $guarded = []; protected $casts = [ 'rendering_completed_at' => 'datetime', ]; }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/User.php
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; use Laravel\Jetstream\HasProfilePhoto; use La...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/Membership.php
<?php namespace App\Models; use Laravel\Jetstream\Membership as JetstreamMembership; class Membership extends JetstreamMembership { /** * Indicates if the IDs are auto-incrementing. * * @var bool */ public $incrementing = true; }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Models/CanAccessAttributes.php
<?php namespace App\Models; use App\Attributes\Abilities; use App\Attributes\Description; use App\Attributes\Key; use BackedEnum; use Illuminate\Support\Str; use ReflectionClassConstant; trait CanAccessAttributes { public static function abilities(BackedEnum $enum): array { $reflection = new Reflect...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Exceptions/Handler.php
<?php namespace App\Exceptions; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Throwable; class Handler extends ExceptionHandler { /** * A list of exception types with their corresponding custom log levels. * * @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*> ...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Policies/TeamPolicy.php
<?php namespace App\Policies; use App\Models\Team; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class TeamPolicy { use HandlesAuthorization; /** * Determine whether the user can view any models. */ public function viewAny(User $user): bool { return true; ...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Attributes/Key.php
<?php namespace App\Attributes; use Attribute; #[Attribute] final readonly class Key { public function __construct( public array $key, ) { } }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Attributes/Abilities.php
<?php namespace App\Attributes; use Attribute; #[Attribute] final readonly class Abilities { public function __construct( public array $abilities, ) { } }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Attributes/Description.php
<?php namespace App\Attributes; use Attribute; #[Attribute] final readonly class Description { public function __construct( public string $description, ) { } }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Livewire/Counter.php
<?php namespace App\Livewire; use Livewire\Component; class Counter extends Component { public $count = 0; public function increment() { $this->count++; } public function render() { return view('livewire.counter'); } }
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Http/Kernel.php
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array<int, class-string|string> */ ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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 = [ '*', ]; ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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', ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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; /** ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/app/Http/Middleware/HandleInertiaRequests.php
<?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Inertia\Middleware; class HandleInertiaRequests extends Middleware { /** * The root template that's loaded on the first page visit. * * @see https://inertiajs.com/server-side-setup#root-template * @var string */ pr...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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> */ ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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 = [ // ]; }
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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 [ ...
0
hf_public_repos/experiment/app/Http
hf_public_repos/experiment/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; }
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Fortify/UpdateUserProfileInformation.php
<?php namespace App\Actions\Fortify; use App\Models\User; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; use Laravel\Fortify\Contracts\UpdatesUserProfileInformation; class UpdateUserProfileInformation implements UpdatesUserProfileInformation {...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Fortify/PasswordValidationRules.php
<?php namespace App\Actions\Fortify; use Laravel\Fortify\Rules\Password; trait PasswordValidationRules { /** * Get the validation rules used to validate passwords. * * @return array<int, \Illuminate\Contracts\Validation\Rule|array|string> */ protected function passwordRules(): array {...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/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 ...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/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 ...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Fortify/CreateNewUser.php
<?php namespace App\Actions\Fortify; use App\Models\Team; use App\Models\User; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Laravel\Fortify\Contracts\CreatesNewUsers; use Laravel\Jetstream\Jetstream; class CreateNewUser implements CreatesNewUse...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/DeleteUser.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Illuminate\Support\Facades\DB; use Laravel\Jetstream\Contracts\DeletesTeams; use Laravel\Jetstream\Contracts\DeletesUsers; class DeleteUser implements DeletesUsers { /** * The team deleter implementation. * * @var...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/InviteTeamMember.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Closure; use Illuminate\Database\Query\Builder; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Validator; use Illuminate\Validation\Rule; use Laravel\Jetstream\Contracts\Invit...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/RemoveTeamMember.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Support\Facades\Gate; use Illuminate\Validation\ValidationException; use Laravel\Jetstream\Contracts\RemovesTeamMembers; use Laravel\Jetstream\Events\TeamMemberRemoved; c...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/DeleteTeam.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use Laravel\Jetstream\Contracts\DeletesTeams; class DeleteTeam implements DeletesTeams { /** * Delete the given team. */ public function delete(Team $team): void { $team->purge(); } }
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/AddTeamMember.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Closure; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Validator; use Laravel\Jetstream\Contracts\AddsTeamMembers; use Laravel\Jetstream\Events\AddingTeamMember; use Laravel\Jetstream\Events\TeamMemberAdded; use...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/UpdateTeamName.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Validator; use Laravel\Jetstream\Contracts\UpdatesTeamNames; class UpdateTeamName implements UpdatesTeamNames { /** * Validate and update the given team's name...
0
hf_public_repos/experiment/app/Actions
hf_public_repos/experiment/app/Actions/Jetstream/CreateTeam.php
<?php namespace App\Actions\Jetstream; use App\Models\Team; use App\Models\User; use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Validator; use Laravel\Jetstream\Contracts\CreatesTeams; use Laravel\Jetstream\Events\AddingTeam; use Laravel\Jetstream\Jetstream; class CreateTeam implements CreatesTe...
0
hf_public_repos/experiment/app
hf_public_repos/experiment/app/Console/Kernel.php
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. */ protected function schedule(Schedule $schedule): void { // $schedu...
0
hf_public_repos/experiment/app/Console
hf_public_repos/experiment/app/Console/Commands/asdf.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Symfony\Component\Process\Process; class asdf extends Command { protected $signature = 'asdf'; public function handle(): void { dump(base_path()); Process::fromShellCommandline('node ./cli.js', base_path(), null, n...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/sanctum.php
<?php use Laravel\Sanctum\Sanctum; return [ /* |-------------------------------------------------------------------------- | Stateful Domains |-------------------------------------------------------------------------- | | Requests from the following domains / hosts will receive stateful API ...
0
hf_public_repos/experiment
hf_public_repos/experiment/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...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/fortify.php
<?php use App\Providers\RouteServiceProvider; use Laravel\Fortify\Features; return [ /* |-------------------------------------------------------------------------- | Fortify Guard |-------------------------------------------------------------------------- | | Here you may specify which authen...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/app.php
<?php use Illuminate\Support\Facades\Facade; return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is use...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/mail.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Mailer |-------------------------------------------------------------------------- | | This option controls the default mailer that is used to send any email | messages sent by your appl...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/database.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections b...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/cache.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache connection that gets used whil...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/session.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be use...
0
hf_public_repos/experiment
hf_public_repos/experiment/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...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/broadcasting.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an even...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/cors.php
<?php return [ /* |-------------------------------------------------------------------------- | Cross-Origin Resource Sharing (CORS) Configuration |-------------------------------------------------------------------------- | | Here you may configure your settings for cross-origin resource shar...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/jetstream.php
<?php use Laravel\Jetstream\Features; use Laravel\Jetstream\Http\Middleware\AuthenticateSession; return [ /* |-------------------------------------------------------------------------- | Jetstream Stack |-------------------------------------------------------------------------- | | This confi...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/logging.php
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |-------------------------------------------------------------------------- ...
0
hf_public_repos/experiment
hf_public_repos/experiment/config/filesystems.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
0
hf_public_repos/experiment/resources
hf_public_repos/experiment/resources/css/app.css
@tailwind base; @tailwind components; @tailwind utilities;
0
hf_public_repos/experiment/resources
hf_public_repos/experiment/resources/js/bootstrap.js
/** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the * CSRF token as a header based on the value of the "XSRF" token cookie. */ import axios from 'axios' window.axios = axios window.axios.defaults.headers.common[...
0
hf_public_repos/experiment/resources
hf_public_repos/experiment/resources/js/vueEvent.js
import { ref, onMounted, onBeforeUnmount } from 'vue' export function useEvent(event, handler, interval, options) {}
0
hf_public_repos/experiment/resources
hf_public_repos/experiment/resources/js/app.js
import './bootstrap' import '../css/app.css' import { createApp, h } from 'vue' import { createInertiaApp } from '@inertiajs/vue3' import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers' import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m' const appName = window.document.getElementsBy...
0
hf_public_repos/experiment/resources/js
hf_public_repos/experiment/resources/js/Components/Banner.vue
<script setup> import { computed, ref, watch } from 'vue'; import { usePage } from '@inertiajs/vue3'; const show = ref(true); const style = computed(() => usePage().props.jetstream.flash?.bannerStyle || 'success'); const message = computed(() => usePage().props.jetstream.flash?.banner || ''); watch(message, async () ...
0
hf_public_repos/experiment/resources/js
hf_public_repos/experiment/resources/js/Components/SectionBorder.vue
<template> <div class="hidden sm:block"> <div class="py-8"> <div class="border-t border-gray-200" /> </div> </div> </template>
0