file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
config/logging.php
PHP
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; use Monolog\Processor\PsrLogMessageProcessor; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |-------------------------------------------------------------------------- | | This option defines the default log channel that is utilized to write | messages to your logs. The value provided here should match one of | the channels present in the list of "channels" configured below. | */ 'default' => env('LOG_CHANNEL', 'stack'), /* |-------------------------------------------------------------------------- | Deprecations Log Channel |-------------------------------------------------------------------------- | | This option controls the log channel that should be used to log warnings | regarding deprecated PHP and library features. This allows you to get | your application ready for upcoming major versions of dependencies. | */ 'deprecations' => [ 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 'trace' => env('LOG_DEPRECATIONS_TRACE', false), ], /* |-------------------------------------------------------------------------- | Log Channels |-------------------------------------------------------------------------- | | Here you may configure the log channels for your application. Laravel | utilizes the Monolog PHP logging library, which includes a variety | of powerful log handlers and formatters that you're free to use. | | Available drivers: "single", "daily", "slack", "syslog", | "errorlog", "monolog", "custom", "stack" | */ 'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => explode(',', env('LOG_STACK', 'single')), 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'debug'), 'replace_placeholders' => true, ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => env('LOG_LEVEL', 'debug'), 'days' => env('LOG_DAILY_DAYS', 14), 'replace_placeholders' => true, ], 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'), 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), 'level' => env('LOG_LEVEL', 'critical'), 'replace_placeholders' => true, ], 'papertrail' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), ], 'processors' => [PsrLogMessageProcessor::class], ], 'stderr' => [ 'driver' => 'monolog', 'level' => env('LOG_LEVEL', 'debug'), 'handler' => StreamHandler::class, 'handler_with' => [ 'stream' => 'php://stderr', ], 'formatter' => env('LOG_STDERR_FORMATTER'), 'processors' => [PsrLogMessageProcessor::class], ], 'syslog' => [ 'driver' => 'syslog', 'level' => env('LOG_LEVEL', 'debug'), 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), 'replace_placeholders' => true, ], 'errorlog' => [ 'driver' => 'errorlog', 'level' => env('LOG_LEVEL', 'debug'), 'replace_placeholders' => true, ], 'null' => [ 'driver' => 'monolog', 'handler' => NullHandler::class, ], 'emergency' => [ 'path' => storage_path('logs/laravel.log'), ], ], ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/mail.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Default Mailer |-------------------------------------------------------------------------- | | This option controls the default mailer that is used to send all email | messages unless another mailer is explicitly specified when sending | the message. All additional mailers can be configured within the | "mailers" array. Examples of each type of mailer are provided. | */ 'default' => env('MAIL_MAILER', 'log'), /* |-------------------------------------------------------------------------- | Mailer Configurations |-------------------------------------------------------------------------- | | Here you may configure all of the mailers used by your application plus | their respective settings. Several examples have been configured for | you and you are free to add your own as your application requires. | | Laravel supports a variety of mail "transport" drivers that can be used | when delivering an email. You may specify which one you're using for | your mailers below. You may also add additional mailers if needed. | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", | "postmark", "resend", "log", "array", | "failover", "roundrobin" | */ 'mailers' => [ 'smtp' => [ 'transport' => 'smtp', 'scheme' => env('MAIL_SCHEME'), 'url' => env('MAIL_URL'), 'host' => env('MAIL_HOST', '127.0.0.1'), 'port' => env('MAIL_PORT', 2525), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)), ], 'ses' => [ 'transport' => 'ses', ], 'postmark' => [ 'transport' => 'postmark', // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), // 'client' => [ // 'timeout' => 5, // ], ], 'resend' => [ 'transport' => 'resend', ], 'sendmail' => [ 'transport' => 'sendmail', 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), ], 'log' => [ 'transport' => 'log', 'channel' => env('MAIL_LOG_CHANNEL'), ], 'array' => [ 'transport' => 'array', ], 'failover' => [ 'transport' => 'failover', 'mailers' => [ 'smtp', 'log', ], 'retry_after' => 60, ], 'roundrobin' => [ 'transport' => 'roundrobin', 'mailers' => [ 'ses', 'postmark', ], 'retry_after' => 60, ], ], /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all emails sent by your application to be sent from | the same address. Here you may specify a name and address that is | used globally for all emails that are sent by your application. | */ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'name' => env('MAIL_FROM_NAME', 'Example'), ], ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/queue.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Default Queue Connection Name |-------------------------------------------------------------------------- | | Laravel's queue supports a variety of backends via a single, unified | API, giving you convenient access to each backend using identical | syntax for each. The default queue connection is defined below. | */ 'default' => env('QUEUE_CONNECTION', 'database'), /* |-------------------------------------------------------------------------- | Queue Connections |-------------------------------------------------------------------------- | | Here you may configure the connection options for every queue backend | used by your application. An example configuration is provided for | each backend supported by Laravel. You're also free to add more. | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" | */ 'connections' => [ 'sync' => [ 'driver' => 'sync', ], 'database' => [ 'driver' => 'database', 'connection' => env('DB_QUEUE_CONNECTION'), 'table' => env('DB_QUEUE_TABLE', 'jobs'), 'queue' => env('DB_QUEUE', 'default'), 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 'after_commit' => false, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 'queue' => env('BEANSTALKD_QUEUE', 'default'), 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 'block_for' => 0, 'after_commit' => false, ], 'sqs' => [ 'driver' => 'sqs', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'queue' => env('SQS_QUEUE', 'default'), 'suffix' => env('SQS_SUFFIX'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'after_commit' => false, ], 'redis' => [ 'driver' => 'redis', 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 'block_for' => null, 'after_commit' => false, ], ], /* |-------------------------------------------------------------------------- | Job Batching |-------------------------------------------------------------------------- | | The following options configure the database and table that store job | batching information. These options can be updated to any database | connection and table which has been defined by your application. | */ 'batching' => [ 'database' => env('DB_CONNECTION', 'sqlite'), 'table' => 'job_batches', ], /* |-------------------------------------------------------------------------- | Failed Queue Jobs |-------------------------------------------------------------------------- | | These options configure the behavior of failed queue job logging so you | can control how and where failed jobs are stored. Laravel ships with | support for storing failed jobs in a simple file or in a database. | | Supported drivers: "database-uuids", "dynamodb", "file", "null" | */ 'failed' => [ 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 'database' => env('DB_CONNECTION', 'sqlite'), 'table' => 'failed_jobs', ], ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/services.php
PHP
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark, AWS and more. This file provides the de facto | location for this type of information, allowing packages to have | a conventional file to locate the various service credentials. | */ 'postmark' => [ 'token' => env('POSTMARK_TOKEN'), ], 'resend' => [ 'key' => env('RESEND_KEY'), ], 'ses' => [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'slack' => [ 'notifications' => [ 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), ], ], ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/session.php
PHP
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option determines the default session driver that is utilized for | incoming requests. Laravel supports a variety of storage options to | persist session data. Database storage is a great default choice. | | Supported: "file", "cookie", "database", "memcached", | "redis", "dynamodb", "array" | */ 'driver' => env('SESSION_DRIVER', 'database'), /* |-------------------------------------------------------------------------- | Session Lifetime |-------------------------------------------------------------------------- | | Here you may specify the number of minutes that you wish the session | to be allowed to remain idle before it expires. If you want them | to expire immediately when the browser is closed then you may | indicate that via the expire_on_close configuration option. | */ 'lifetime' => (int) env('SESSION_LIFETIME', 120), 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), /* |-------------------------------------------------------------------------- | Session Encryption |-------------------------------------------------------------------------- | | This option allows you to easily specify that all of your session data | should be encrypted before it's stored. All encryption is performed | automatically by Laravel and you may use the session like normal. | */ 'encrypt' => env('SESSION_ENCRYPT', false), /* |-------------------------------------------------------------------------- | Session File Location |-------------------------------------------------------------------------- | | When utilizing the "file" session driver, the session files are placed | on disk. The default storage location is defined here; however, you | are free to provide another location where they should be stored. | */ 'files' => storage_path('framework/sessions'), /* |-------------------------------------------------------------------------- | Session Database Connection |-------------------------------------------------------------------------- | | When using the "database" or "redis" session drivers, you may specify a | connection that should be used to manage these sessions. This should | correspond to a connection in your database configuration options. | */ 'connection' => env('SESSION_CONNECTION'), /* |-------------------------------------------------------------------------- | Session Database Table |-------------------------------------------------------------------------- | | When using the "database" session driver, you may specify the table to | be used to store sessions. Of course, a sensible default is defined | for you; however, you're welcome to change this to another table. | */ 'table' => env('SESSION_TABLE', 'sessions'), /* |-------------------------------------------------------------------------- | Session Cache Store |-------------------------------------------------------------------------- | | When using one of the framework's cache driven session backends, you may | define the cache store which should be used to store the session data | between requests. This must match one of your defined cache stores. | | Affects: "dynamodb", "memcached", "redis" | */ 'store' => env('SESSION_STORE'), /* |-------------------------------------------------------------------------- | Session Sweeping Lottery |-------------------------------------------------------------------------- | | Some session drivers must manually sweep their storage location to get | rid of old sessions from storage. Here are the chances that it will | happen on a given request. By default, the odds are 2 out of 100. | */ 'lottery' => [2, 100], /* |-------------------------------------------------------------------------- | Session Cookie Name |-------------------------------------------------------------------------- | | Here you may change the name of the session cookie that is created by | the framework. Typically, you should not need to change this value | since doing so does not grant a meaningful security improvement. | */ 'cookie' => env( 'SESSION_COOKIE', Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), /* |-------------------------------------------------------------------------- | Session Cookie Path |-------------------------------------------------------------------------- | | The session cookie path determines the path for which the cookie will | be regarded as available. Typically, this will be the root path of | your application, but you're free to change this when necessary. | */ 'path' => env('SESSION_PATH', '/'), /* |-------------------------------------------------------------------------- | Session Cookie Domain |-------------------------------------------------------------------------- | | This value determines the domain and subdomains the session cookie is | available to. By default, the cookie will be available to the root | domain and all subdomains. Typically, this shouldn't be changed. | */ 'domain' => env('SESSION_DOMAIN'), /* |-------------------------------------------------------------------------- | HTTPS Only Cookies |-------------------------------------------------------------------------- | | By setting this option to true, session cookies will only be sent back | to the server if the browser has a HTTPS connection. This will keep | the cookie from being sent to you when it can't be done securely. | */ 'secure' => env('SESSION_SECURE_COOKIE'), /* |-------------------------------------------------------------------------- | HTTP Access Only |-------------------------------------------------------------------------- | | Setting this value to true will prevent JavaScript from accessing the | value of the cookie and the cookie will only be accessible through | the HTTP protocol. It's unlikely you should disable this option. | */ 'http_only' => env('SESSION_HTTP_ONLY', true), /* |-------------------------------------------------------------------------- | Same-Site Cookies |-------------------------------------------------------------------------- | | This option determines how your cookies behave when cross-site requests | take place, and can be used to mitigate CSRF attacks. By default, we | will set this value to "lax" to permit secure cross-site requests. | | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value | | Supported: "lax", "strict", "none", null | */ 'same_site' => env('SESSION_SAME_SITE', 'lax'), /* |-------------------------------------------------------------------------- | Partitioned Cookies |-------------------------------------------------------------------------- | | Setting this value to true will tie the cookie to the top-level site for | a cross-site context. Partitioned cookies are accepted by the browser | when flagged "secure" and the Same-Site attribute is set to "none". | */ 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
config/torchlight.php
PHP
<?php return [ // The Torchlight client caches highlighted code blocks. Here // you can define which cache driver you'd like to use. If // leave this blank your default app cache will be used. 'cache' => env('TORCHLIGHT_CACHE_DRIVER'), // Which theme you want to use. You can find all of the themes at // https://torchlight.dev/docs/themes. 'theme' => env('TORCHLIGHT_THEME', 'olaolu-palenight'), // Your API token from torchlight.dev. 'token' => env('TORCHLIGHT_TOKEN'), // If you want to register the blade directives, set this to true. 'blade_components' => true, // The Host of the API. 'host' => env('TORCHLIGHT_HOST', 'https://api.torchlight.dev'), // We replace tabs in your code blocks with spaces in HTML. Set // the number of spaces you'd like to use per tab. Set to // `false` to leave literal tabs in the HTML. 'tab_width' => 4, // If you pass a filename to the code component or in a markdown // block, Torchlight will look for code snippets in the // following directories. 'snippet_directories' => [ resource_path(), ], // Global options to control blocks-level settings. // https://torchlight.dev/docs/options 'options' => [ // Turn line numbers on or off globally. 'lineNumbers' => false, // Control the `style` attribute applied to line numbers. // 'lineNumbersStyle' => '', // Turn on +/- diff indicators. // 'diffIndicators' => true, // If there are any diff indicators for a line, put them // in place of the line number to save horizontal space. // 'diffIndicatorsInPlaceOfLineNumbers' => true, // When lines are collapsed, this is the text that will // be shown to indicate that they can be expanded. // 'summaryCollapsedIndicator' => '...', 'defaultLanguage' => 'php', ], ];
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/factories/UserFactory.php
PHP
<?php namespace Database\Factories; use App\Models\Team; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; use Laravel\Jetstream\Features; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User> */ class UserFactory extends Factory { /** * The current password being used by the factory. */ protected static ?string $password; /** * Define the model's default state. * * @return array<string, mixed> */ public function definition(): array { return [ 'name' => fake()->name(), 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => static::$password ??= Hash::make('password'), 'two_factor_secret' => null, 'two_factor_recovery_codes' => null, 'remember_token' => Str::random(10), 'profile_photo_path' => null, 'current_team_id' => null, ]; } /** * Indicate that the model's email address should be unverified. */ public function unverified(): static { return $this->state(fn (array $attributes) => [ 'email_verified_at' => null, ]); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/0001_01_01_000000_create_users_table.php
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) { $table->id(); $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); $table->foreignId('current_team_id')->nullable(); $table->string('profile_photo_path', 2048)->nullable(); $table->timestamps(); }); Schema::create('password_reset_tokens', function (Blueprint $table) { $table->string('email')->primary(); $table->string('token'); $table->timestamp('created_at')->nullable(); }); Schema::create('sessions', function (Blueprint $table) { $table->string('id')->primary(); $table->foreignId('user_id')->nullable()->index(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->longText('payload'); $table->integer('last_activity')->index(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('users'); Schema::dropIfExists('password_reset_tokens'); Schema::dropIfExists('sessions'); } };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/0001_01_01_000001_create_cache_table.php
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('cache', function (Blueprint $table) { $table->string('key')->primary(); $table->mediumText('value'); $table->integer('expiration'); }); Schema::create('cache_locks', function (Blueprint $table) { $table->string('key')->primary(); $table->string('owner'); $table->integer('expiration'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('cache'); Schema::dropIfExists('cache_locks'); } };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/0001_01_01_000002_create_jobs_table.php
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('jobs', function (Blueprint $table) { $table->id(); $table->string('queue')->index(); $table->longText('payload'); $table->unsignedTinyInteger('attempts'); $table->unsignedInteger('reserved_at')->nullable(); $table->unsignedInteger('available_at'); $table->unsignedInteger('created_at'); }); Schema::create('job_batches', function (Blueprint $table) { $table->string('id')->primary(); $table->string('name'); $table->integer('total_jobs'); $table->integer('pending_jobs'); $table->integer('failed_jobs'); $table->longText('failed_job_ids'); $table->mediumText('options')->nullable(); $table->integer('cancelled_at')->nullable(); $table->integer('created_at'); $table->integer('finished_at')->nullable(); }); Schema::create('failed_jobs', function (Blueprint $table) { $table->id(); $table->string('uuid')->unique(); $table->text('connection'); $table->text('queue'); $table->longText('payload'); $table->longText('exception'); $table->timestamp('failed_at')->useCurrent(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('jobs'); Schema::dropIfExists('job_batches'); Schema::dropIfExists('failed_jobs'); } };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/2025_02_02_042601_add_two_factor_columns_to_users_table.php
PHP
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::table('users', function (Blueprint $table) { $table->text('two_factor_secret') ->after('password') ->nullable(); $table->text('two_factor_recovery_codes') ->after('two_factor_secret') ->nullable(); $table->timestamp('two_factor_confirmed_at') ->after('two_factor_recovery_codes') ->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('users', function (Blueprint $table) { $table->dropColumn([ 'two_factor_secret', 'two_factor_recovery_codes', 'two_factor_confirmed_at', ]); }); } };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/migrations/2025_02_02_042625_create_personal_access_tokens_table.php
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 $table) { $table->id(); $table->morphs('tokenable'); $table->string('name'); $table->string('token', 64)->unique(); $table->text('abilities')->nullable(); $table->timestamp('last_used_at')->nullable(); $table->timestamp('expires_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('personal_access_tokens'); } };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
database/seeders/DatabaseSeeder.php
PHP
<?php namespace Database\Seeders; // use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // \App\Models\User::factory(10)->create(); // \App\Models\User::factory()->create([ // 'name' => 'Test User', // 'email' => 'test@example.com', // ]); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
postcss.config.js
JavaScript
export default { plugins: { "@tailwindcss/postcss": {}, }, };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
public/index.php
PHP
<?php use Illuminate\Http\Request; define('LARAVEL_START', microtime(true)); if (! defined('DEFAULT_VERSION')) { define('DEFAULT_VERSION', 'master'); } if (! defined('DEFAULT_PACKAGE')) { define('DEFAULT_PACKAGE', 'laravel-datatables'); } // Determine if the application is in maintenance mode... if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { require $maintenance; } // Register the Composer autoloader... require __DIR__.'/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... (require_once __DIR__.'/../bootstrap/app.php') ->handleRequest(Request::capture());
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/app.css
CSS
@import "tailwindcss"; @config "../../tailwind.config.js"; [x-cloak] { display: none; }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs.css
CSS
@import "./docs/_typography.css"; @import "./docs/_sidebar_layout.css"; @import "./docs/_docs.css"; @import "./docs/_carbon_ads.css"; @import "./docs/_accessibility.css"; @import "./docs/_dark_mode.css"; @import "./docs/_code.css"; @import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *)); @config "../../tailwind.config.js"; [x-cloak] { display: none !important; } .bg-radial-gradient { background-image: radial-gradient(50% 50% at 50% 50%, #EB4432 0%, rgba(255, 255, 255, 0) 100%); } .partners_body a { color: theme('colors.red.600'); text-decoration: underline; } .version-colors { @apply sm:flex dark:text-gray-400 mb-1; } .version-colors .color-box { @apply w-3 h-3 mr-2 ; } .version-colors div.end-of-life { @apply flex items-center mr-4; } .version-colors div.end-of-life div:first-child { @apply bg-red-500; } .version-colors div.security-fixes { @apply flex items-center; } .version-colors div.security-fixes div:first-child { @apply bg-orange-600; }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_accessibility.css
CSS
#skip-to-content-link:not(:focus) { position: absolute !important; clip: rect(0, 0, 0, 0) !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; } #skip-to-content-link { z-index: 2147483647; } #main-content { outline: none; }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_carbon_ads.css
CSS
#carbonads { position: fixed; bottom: 20px; right: 20px; background-color: #F7F8FB; z-index: 100; box-shadow: 0 0 1px hsla(0, 0%, 0%, 0.25); padding: .625em; max-width: 130px; box-sizing: content-box; span { display: block; } img { display: block; margin-bottom: .75em; } .carbon-text { display: block; font-size: .75em; line-height: 1.4em; color: theme('colors.gray.700'); } .carbon-poweredby { font-size: .5em; text-transform: uppercase; letter-spacing: 1px; line-height: 1; color: theme('colors.gray.600'); } } @media only screen and (min-width: 320px) and (max-width: 1239px) { #carbonads { position: relative; float: none; bottom: initial; right: initial; margin: 20px 0; max-width: 330px; padding: 1em; .carbon-wrap { display: flex; flex-direction: row; } img { margin: 0 1em 0 0; } .carbon-text { font-size: .825em; margin-bottom: 1em; } .carbon-poweredby { position: absolute; left: 162px; bottom: 15px; } } } @media only screen and (min-width: 320px) and (max-width: 429px) { #carbonads { .carbon-wrap { flex-direction: column; } img { margin: initial; margin: 0 0 .5em 0; } .carbon-text { margin-bottom: initial; } .carbon-poweredby { position: initial; left: initial; right: initial; } } } @media only print { #carbonads { display: none; } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_code.css
CSS
:not(pre) > code { color: theme('colors.gray.900'); background: none; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; tab-size: 4; hyphens: none; } .docs_main :not(pre) > code { display: inline-flex; padding: 0 .125rem; border-radius: .125rem; max-width: 100%; overflow-x: auto; vertical-align: middle; @apply dark:bg-dark-600 dark:text-red-600; } pre { margin-top: 1rem; margin-bottom: 1rem; overflow-x: auto; tab-size: 4; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; box-shadow: 0 1px 1px rgb(0 0 0 / 8%); @apply relative bg-dark-600 rounded-lg; } .code-block-wrapper .copyBtn { @apply absolute right-2 top-2 outline-none text-gray-200 hover:text-gray-500 opacity-25 hover:opacity-100; } pre .copyBtn:hover, pre .copyBtn:focus, pre .copyBtn:active { @apply text-white outline-none; } pre code.torchlight { display: block; min-width: max-content; padding-top: 1rem; padding-bottom: 1rem; @apply bg-dark-600; } pre code.torchlight .line { padding-left: 1rem; padding-right: 1rem; } .tabbed-code { @apply my-5 bg-dark-500 rounded-md overflow-hidden; .tabbed-code-nav { @apply flex px-2 pt-2; .tabbed-code-nav-button { @apply px-3 pt-2.5 pb-2.5 rounded-t text-sm text-gray-300; &[data-tab="Vue"], &[data-tab="React"] { @apply pl-9; background-size: 1rem; background-repeat: no-repeat; background-position: 0.75rem center; } &[data-tab="Vue"] { background-image: url('../images/icons/vue.svg'); } &[data-tab="React"] { background-image: url('../images/icons/react.svg'); } &.active { background-color: #292D3E; } } } .tabbed-code-body { background-color: #292D3E; .code-container { @apply m-0 rounded-none hidden; &.active { @apply block; } } } } .code-container { @apply my-5 rounded-md overflow-hidden; .code-container-filename { @apply flex items-center px-4 pb-2 pt-3 text-sm font-mono border-b border-dark-500 text-gray-600; background-color: #292D3E; background-size: 1.25rem; background-position: 12px center; background-repeat: no-repeat; &:before { @apply block w-4 h-4 mr-1 bg-gray-700; content: ''; mask-image: url('../../images/icons/document.svg'); mask-repeat: no-repeat; mask-size: 100% } } pre { @apply m-0 rounded-none; } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_dark_mode.css
CSS
.docs_main { /* Headers */ & h1, & h2, & h3, & h4, & h5, & h6, & h4 a, & h3 a, & h2 a { @apply dark:text-gray-200; } /* Body text */ & p, & ul:not(:first-of-type) li, & .content-list ul li, & #software-list, & #valet-support { @apply dark:text-gray-400; } /* Table of contents */ & h1 + ul li a { @apply dark:text-gray-300; } /* Links */ & p a, & ul a, & ol a { @apply dark:text-red-600; } /* Tables */ & table th { @apply dark:text-gray-200; } & table td { @apply dark:text-gray-400; } & table td.support-policy-highlight { @apply dark:text-black; } } .docs_sidebar { /* Sidebar links */ & ul li h2, & ul li a { @apply dark:text-gray-400; } & h3 { @apply dark:text-gray-200; } } /* Pound sign before headings */ .dark .docs_main { & h4 a:before, & h3 a:before, & h2 a:before { opacity: 1; } } /* Carbon ads */ #carbonads { @apply dark:bg-dark-600; & .carbon-text { @apply dark:text-gray-400; } & .carbon-poweredby { @apply dark:text-gray-500; } } html #docs_search__version_arrow_dark { display: none; } /* Dark mode icons */ html.dark { #docs_search__version_arrow { display: none; } #docs_search__version_arrow_dark, #footer__twitter_dark, #footer__github_dark, #footer__discord_dark, #footer__youtube_dark { @apply dark:hidden; } } /* Color mode buttons */ #header__sun, #header__moon, #header__indeterminate { display: none; } html[color-theme="dark"] #header__moon { display: block; } html[color-theme="light"] #header__sun { display: block; } html[color-theme="system"] #header__indeterminate { display: block; }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_docs.css
CSS
.callout p { margin-bottom: 0; } .docs_main { a[name] { position: relative; display: block; visibility: hidden; top: -45px; } table { border-collapse: collapse; width: 100%; font-size: 13px; margin-bottom: 2em; th, td { border: 1px solid theme('colors.gray.300'); padding: 10px; text-align: left; } th { font-size: 16px; } } @screen sm { a[name] { position: relative; display: block; visibility: hidden; top: -30px; } } } .docs_main { .page_title { display: none; } h1 { font-size: 2.5em; letter-spacing: 0em; } h2 { font-size: 1.75em; letter-spacing: 0; } h3 { font-size: 1.25em; letter-spacing: 0; font-weight: 500; } h4 { font-size: 1em; font-weight: 500; letter-spacing: 0; } h4 a, h3 a, h2 a { color: theme('colors.gray.900'); } h4 a:before, h3 a:before, h2 a:before { content: "#"; font-weight: 400; position: absolute; color: theme('colors.red.600'); opacity: .6; } h3 a:before, h2 a:before { margin-left: -25px; font-size: 28px; } h4 a:before { margin-left: -18px; font-size: 17px; } code { font-size: 0.8rem; font-weight: 500; line-height: 1.9; color: theme('colors.gray.900'); } p { font-size: 1rem; line-height: 1.8em; code { font-size: 0.8rem; } } ul:not(:first-of-type), .content-list ul { list-style-type: none; margin: 0 0 2.5em 0; padding: 0; li { position: relative; display: block; padding-left: 1.25em; margin-bottom: 1rem; font-size: .89em; color: theme('colors.gray.700'); line-height: 1.714em; a { text-decoration: none; } code { font-size: .875em; } &::before { content: ""; position: absolute; top: .40em; left: 0; width: 9px; height: 10px; background: url('/img/icons/ul_marker.min.svg') no-repeat center; background-size: contain; } } } } .docs_main h1 + ul { margin-bottom: 4em; list-style-type: none; margin: 0; padding: 0; li { display: block; margin-bottom: .5em; a { position: relative; font-size: .89em; font-weight: 500; color: theme('colors.gray.900'); text-decoration: none; &::before { content: "# "; color: theme('colors.red.600'); } } } ul { margin-top: .5em; padding: 0; margin-bottom: 0; li { padding-left: 1.5em; a { font-weight: 400; } } } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_sidebar_layout.css
CSS
.docs_sidebar { h3 { font-size: 1.25em; font-weight: 500; line-height: 1.25em; letter-spacing: -.33px; margin-top: 1.5em; margin-bottom: 0.75em; } ul { list-style-type: none; margin: 0; padding: 0; li { display: block; padding: .65em 0; white-space: nowrap; h2 { display: block; font-size: 0.875em; font-weight: 500; color: theme('colors.gray.900'); text-decoration: none; margin-bottom: 0; cursor: pointer; transition: all 0.3s ease; &:hover { transform: translate3d(5px, 0, 0); } } a { display: block; font-size: .875em; font-weight: 500; color: theme('colors.gray.900'); text-decoration: none; transition: transform 0.3s ease; &:hover { transform: translate3d(5px, 0, 0); } } } ul { overflow: hidden; max-height: 0; transition: max-height .45s ease; li { a { position: relative; padding-left: 1em; font-weight: 400; line-height: 1.25; } &.active a::before { content: ""; position: absolute; top: .25em; left: 0; width: .5rem; height: .5rem; background: url(/img/icons/active_marker.min.svg) no-repeat center; } } } .sub--on { &> h2 { margin-bottom: 1em; } ul { max-height: none; } } } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/css/docs/_typography.css
CSS
.docs_main { h1, h2, h3, h4, h5, h6 { font-weight: 500; margin-bottom: 0.75em; } h2, h3 { margin-top: 2em; } h4 { margin-top: 1.5em; } h1 { font-size: 2em; letter-spacing: -1px; line-height: 1.125em; margin-bottom: .65em; @screen md { font-size: 2.5em; } @screen lg { font-size: 3em; } @screen xl { font-size: 3.5em; } @screen 2xl { font-size: 4em; } } h2 { font-size: 1.75em; font-weight: 400; letter-spacing: -.5px; line-height: 1.125em; @screen md { font-size: 2.25em; } @screen lg { font-size: 3em; } } h3 { font-size: 1.25em; font-weight: 500; line-height: 1.25em; letter-spacing: -.33px; @screen sm { font-size: 1.75em; } @screen md { font-size: 2em; } } h4 { font-size: 1em; font-weight: 400; letter-spacing: -.25px; @screen sm { font-size: 1.5em; } } h5 { font-size: .95em; font-weight: 700; line-height: 1.666em; color: theme('colors.gray.700'); @screen sm { font-size: 1.125em; } } h6 { font-size: .875em; font-weight: 500; color: theme('colors.gray.600'); } a { position: relative; text-decoration: none; transition: all .3s ease; &.learn_more { color: theme('colors.red.600'); font-weight: 500; span { display: inline-block; transition: transform .3s ease; } &:hover { span { transform: translateX(.5em); } } } } p { font-size: 1em; line-height: 1.666em; color: theme('colors.gray.700'); strong { font-weight: 500; } &.small { font-size: .75em; line-height: 1.714em; } @screen md { font-size: 1.125em; &.small { font-size: .875em; } } } p + pre { margin-top: 0; } p, ul, ol, pre { margin-bottom: 1.5em; a { color: theme('colors.red.600'); text-decoration: underline; word-break: break-word; &:hover { color: darken(theme('colors.red.600'), 10%); } } } q, blockquote p { quotes: "“" "”" "‘" "’"; } @screen sm { blockquote { margin-left: 0; margin-right: 0; } } span.small_text { display: block; font-size: .625em; line-height: 1.4em; color: theme('colors.gray.700'); } span.label, label { display: block; font-size: .625em; line-height: 1.4em; text-transform: uppercase; opacity: .4; margin-bottom: .875em; letter-spacing: 2.5px; } code { font-size: .875em; font-family: theme('fontFamily.mono'); line-height: 1.714em; color: theme('colors.gray.900'); } :not(pre) > code { background: theme('colors.gray.50'); color: theme('colors.red.800'); padding: 0 .25em; } } .list-custom li { position: relative; padding-left: 1rem; } .list-custom li:before { content: ""; position: absolute; top: .15em; left: 0; width: 9px; height: 10px; background: url(/img/icons/ul_marker.min.svg) no-repeat 50%; background-size: contain; }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/app.js
JavaScript
import './bootstrap'; import Alpine from 'alpinejs'; window.Alpine = Alpine; Alpine.start();
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/bootstrap.js
JavaScript
import _ from 'lodash'; window._ = _; /** * 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['X-Requested-With'] = 'XMLHttpRequest'; /** * Echo exposes an expressive API for subscribing to channels and listening * for events that are broadcast by Laravel. Echo and event broadcasting * allows your team to easily build robust real-time web applications. */ // import Echo from 'laravel-echo'; // import Pusher from 'pusher-js'; // window.Pusher = Pusher; // window.Echo = new Echo({ // broadcaster: 'pusher', // key: import.meta.env.VITE_PUSHER_APP_KEY, // wsHost: import.meta.env.VITE_PUSHER_HOST ?? `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', // enabledTransports: ['ws', 'wss'], // });
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs.js
JavaScript
import './bootstrap'; import Alpine from 'alpinejs'; import Focus from '@alpinejs/focus'; import SearchComponent from './docs/components/search'; import './docs/clipboard'; import './docs/docs'; window.Alpine = Alpine; window.searchComponent = SearchComponent; Alpine.plugin(Focus); Alpine.start();
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs/clipboard.js
JavaScript
import ClipboardJS from 'clipboard/dist/clipboard'; // These icons must be inline to avoid rendering bugs. const clipboardIcon = `<svg class="fill-current h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path d="M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"></path><path d="M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"></path></svg>`; const clipboardCopiedIcon = `<svg fill="currentColor" class="fill-current text-white h-5 w-5" viewBox="0 0 20 20"><path d="M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"></path><path fill-rule="evenodd" d="M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>`; // Copy to Clipboard. let codeBlocks = document.querySelectorAll('#main-content pre'); codeBlocks.forEach((element, key) => { // Add wrapper to code block. var wrapper = document.createElement('div'); ['relative', 'code-block-wrapper'].forEach((value) => { wrapper.classList.add(value); }); element.parentNode.insertBefore(wrapper, element); wrapper.appendChild(element); // Copy to clipboard button. let copyToClipboardBtn = document.createElement('button'); copyToClipboardBtn.innerHTML = clipboardIcon; copyToClipboardBtn.id = `clipButton-${key}`; ['md:block', 'hidden'].forEach((value) => { copyToClipboardBtn.classList.add(value); }); copyToClipboardBtn.setAttribute('aria-label', 'Copy to Clipboard'); copyToClipboardBtn.setAttribute('title', 'Copy to Clipboard'); copyToClipboardBtn.classList.add('copyBtn'); wrapper.appendChild(copyToClipboardBtn); let copyToClipboard = new ClipboardJS(`#${copyToClipboardBtn.id}`); copyToClipboard.on('success', (element) => { copyToClipboardBtn.innerHTML = clipboardCopiedIcon; element.clearSelection(); setTimeout(() => { copyToClipboardBtn.innerHTML = clipboardIcon; }, 1500); }); // Code Element. let codeElement = element.querySelector('code'); codeElement.id = `clipText-${key}`; copyToClipboardBtn.dataset.clipboardTarget = `#${codeElement.id}`; });
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs/components/accessibility.js
JavaScript
const skipToContentLink = document.querySelector('#skip-to-content-link'); const mainContentWrapper = document.querySelector('#main-content'); if (skipToContentLink && mainContentWrapper) { skipToContentLink.addEventListener('click', setFocusOnContentWrapper); mainContentWrapper.addEventListener('blur', removeContentWrapperTabIndex); } if (skipToContentLink && !mainContentWrapper) { removeSkipToContentLink(); } function setFocusOnContentWrapper(e) { e.preventDefault(); mainContentWrapper.setAttribute('tabindex', -1); mainContentWrapper.focus(); } function removeContentWrapperTabIndex() { mainContentWrapper.removeAttribute('tabindex'); } function removeSkipToContentLink() { skipToContentLink.parentNode.removeChild(skipToContentLink); }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs/components/search.js
JavaScript
import algoliasearch from 'algoliasearch/lite'; export default function () { return { search: '', open: false, hits: [], searching: false, init() { const searchClient = algoliasearch(window.algolia_app_id, window.algolia_search_key); const index = searchClient.initIndex('yajrabox'); this.$watch('search', (query) => { if (!query) { this.searching = false this.hits = []; return } this.searching = true index.search(query, { hitsPerPage: 5, facetFilters: ['version: ' + window.version, 'package: ' + window.package], highlightPreTag: '<em class="not-italic bg-red-600 opacity-25">', highlightPostTag: '</em>' }).then(({hits}) => { this.searching = false this.hits = hits; }); }); this.$watch('open', (value) => { if (value) { setTimeout(() => this.$refs.searchInput.focus(), 50); } }); }, close() { this.open = false; this.search = ''; this.hits = []; }, focusPreviousResult(index = -1) { if (index <= 0) { index = this.hits.length; } const previous = document.querySelector('#search-result-' + (index - 1)); if (previous) { return previous.focus(); } }, focusNextResult(index = -1) { if (index >= this.hits.length - 1) { index = -1; } const next = document.querySelector('#search-result-' + (index + 1)); if (next) { return next.focus(); } }, handleKeydown(event) { if ( event.key === "/" || (event.key === "p" && event.metaKey) || (event.key === "k" && event.metaKey) || (event.key === "k" && event.ctrlKey) ) { event.preventDefault(); this.open = true; this.$refs.searchInput.focus(); } } } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs/components/theme.js
JavaScript
export const toDarkMode = () => { localStorage.theme = 'dark'; window.updateTheme(); } export const toLightMode = () => { localStorage.theme = 'light'; window.updateTheme(); } export const toSystemMode = () => { localStorage.theme = 'system'; window.updateTheme(); }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/js/docs/docs.js
JavaScript
import Prism from 'prismjs'; Prism.manual = true; // highlightCode(); wrapHeadingsInAnchors(); setupNavCurrentLinkHandling(); replaceBlockquotesWithCalloutsInDocs(); highlightSupportPolicyTable(); function highlightCode() { [...document.querySelectorAll('pre code')].forEach(el => { Prism.highlightElement(el); }); } function wrapHeadingsInAnchors() { [...document.querySelector('.docs_main').querySelectorAll('a[name]')].forEach(anchor => { const heading = anchor.parentNode.nextElementSibling; heading.id = anchor.name; anchor.href = `#${anchor.name}`; anchor.removeAttribute('name'); [...heading.childNodes].forEach(node => anchor.appendChild(node)); heading.appendChild(anchor); }); } function setupNavCurrentLinkHandling() { // Can return two, one for mobile nav and one for desktop nav [...document.querySelectorAll('.docs_sidebar ul')].forEach(nav => { const pathLength = window.location.pathname.split('/').length; const current = nav.querySelector('li a[href="' + (pathLength === 3 ? window.location.pathname+"/installation" : window.location.pathname) + '"]'); if (current) { current.parentNode.parentNode.parentNode.classList.add('sub--on'); current.parentNode.classList.add('active'); } }); [...document.querySelectorAll('.docs_sidebar h2')].forEach(el => { el.addEventListener('click', (e) => { e.preventDefault(); const active = el.parentNode.classList.contains('sub--on'); [...document.querySelectorAll('.docs_sidebar ul li')].forEach(el => el.classList.remove('sub--on')); if(! active) { el.parentNode.classList.add('sub--on'); } }); }); } function replaceBlockquotesWithCalloutsInDocs() { [...document.querySelectorAll('.docs_main blockquote p')].forEach(el => { // Legacy Laravel styled notes... replaceBlockquote(el, /\{(.*?)\}/, (type) => { switch (type) { case "note": return ['/img/callouts/exclamation.min.svg', 'bg-red-600']; case "tip": return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600']; case "laracasts": case "video": return ['/img/callouts/laracast.min.svg', 'bg-blue-600']; default: return [null, null]; } }); // GitHub styled notes... replaceBlockquote(el, /^<strong>(.*?)<\/strong>(?:<br>\n?)?/, (type) => { switch (type) { case "Warning": return ['/img/callouts/exclamation.min.svg', 'bg-red-600']; case "Note": return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600']; default: return [null, null]; } }); }); } function replaceBlockquote(el, regex, getImageAndColorByType) { var str = el.innerHTML; var match = str.match(regex); var img, color; if (match) { var type = match[1] || false; } if (type) { [img, color] = getImageAndColorByType(type); if (img === null && color === null) { return; } const wrapper = document.createElement('div'); wrapper.classList = 'mb-10 max-w-2xl mx-auto px-4 py-8 shadow-lg lg:flex lg:items-center'; const imageWrapper = document.createElement('div'); imageWrapper.classList = `w-20 h-20 mb-6 flex items-center justify-center shrink-0 ${color} lg:mb-0`; const image = document.createElement('img'); image.src = img; image.classList = `opacity-75`; imageWrapper.appendChild(image); wrapper.appendChild(imageWrapper); el.parentNode.insertBefore(wrapper, el); el.innerHTML = str.replace(regex, ''); el.classList = 'mb-0 lg:ml-6'; wrapper.classList.add('callout'); wrapper.appendChild(el); } } function highlightSupportPolicyTable() { const table = document.querySelector('.docs_main #support-policy ~ table:first-of-type'); if (table) { const currentDate = new Date().valueOf(); Array.from(table.rows).forEach((row, rowIndex) => { if (rowIndex > 0) { const cells = row.cells; const versionCell = cells[0]; const bugDateCell = getCellDate(cells[cells.length - 2]); const securityDateCell = getCellDate(cells[cells.length - 1]); if (currentDate > securityDateCell) { // End of life. versionCell.classList.add('bg-red-500', 'support-policy-highlight'); } else if ((currentDate <= securityDateCell) && (currentDate > bugDateCell)) { // Security fixes only. versionCell.classList.add('bg-orange-600', 'support-policy-highlight'); } } }); } } function getCellDate(cell) { return Date.parse(cell.innerHTML.replace(/(\d+)(st|nd|rd|th)/, '$1')); } import { toDarkMode, toLightMode, toSystemMode } from './components/theme'; window.toDarkMode = toDarkMode; window.toLightMode = toLightMode; window.toSystemMode = toSystemMode;
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/accessibility/main-content-wrapper.blade.php
PHP
<div id="main-content" class="mb-10"> {{ $slot }} @isset($editRepoLink) {{ $editRepoLink }} @endif </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/accessibility/skip-to-content-link.blade.php
PHP
<a id="skip-to-content-link" href="#main-content" class="absolute bg-gray-100 px-4 py-2 top-3 left-3 text-gray-700 shadow-xl" > Skip to content </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/action-message.blade.php
PHP
@props(['on']) <div x-data="{ shown: false, timeout: null }" x-init="@this.on('{{ $on }}', () => { clearTimeout(timeout); shown = true; timeout = setTimeout(() => { shown = false }, 2000); })" x-show.transition.out.opacity.duration.1500ms="shown" x-transition:leave.opacity.duration.1500ms style="display: none;" {{ $attributes->merge(['class' => 'text-sm text-gray-600']) }}> {{ $slot->isEmpty() ? 'Saved.' : $slot }} </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/action-section.blade.php
PHP
<div {{ $attributes->merge(['class' => 'md:grid md:grid-cols-3 md:gap-6']) }}> <x-section-title> <x-slot name="title">{{ $title }}</x-slot> <x-slot name="description">{{ $description }}</x-slot> </x-section-title> <div class="mt-5 md:mt-0 md:col-span-2"> <div class="px-4 py-5 sm:p-6 bg-white shadow sm:rounded-lg"> {{ $content }} </div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/ads.blade.php
PHP
@props(['adSlot', 'publisher' => 'ca-pub-2399525660597307', 'type' => 'auto']) @production <ins class="adsbygoogle" style="display:block" data-ad-client="{{ $publisher }}" data-ad-slot="{{ $adSlot }}" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> @endproduction
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/application-logo.blade.php
PHP
<svg viewBox="0 0 317 48" fill="none" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}> <path d="M74.09 30.04V13h-4.14v21H82.1v-3.96h-8.01zM95.379 19v1.77c-1.08-1.35-2.7-2.19-4.89-2.19-3.99 0-7.29 3.45-7.29 7.92s3.3 7.92 7.29 7.92c2.19 0 3.81-.84 4.89-2.19V34h3.87V19h-3.87zm-4.17 11.73c-2.37 0-4.14-1.71-4.14-4.23 0-2.52 1.77-4.23 4.14-4.23 2.4 0 4.17 1.71 4.17 4.23 0 2.52-1.77 4.23-4.17 4.23zM106.628 21.58V19h-3.87v15h3.87v-7.17c0-3.15 2.55-4.05 4.56-3.81V18.7c-1.89 0-3.78.84-4.56 2.88zM124.295 19v1.77c-1.08-1.35-2.7-2.19-4.89-2.19-3.99 0-7.29 3.45-7.29 7.92s3.3 7.92 7.29 7.92c2.19 0 3.81-.84 4.89-2.19V34h3.87V19h-3.87zm-4.17 11.73c-2.37 0-4.14-1.71-4.14-4.23 0-2.52 1.77-4.23 4.14-4.23 2.4 0 4.17 1.71 4.17 4.23 0 2.52-1.77 4.23-4.17 4.23zM141.544 19l-3.66 10.5-3.63-10.5h-4.26l5.7 15h4.41l5.7-15h-4.26zM150.354 28.09h11.31c.09-.51.15-1.02.15-1.59 0-4.41-3.15-7.92-7.59-7.92-4.71 0-7.92 3.45-7.92 7.92s3.18 7.92 8.22 7.92c2.88 0 5.13-1.17 6.54-3.21l-3.12-1.8c-.66.87-1.86 1.5-3.36 1.5-2.04 0-3.69-.84-4.23-2.82zm-.06-3c.45-1.92 1.86-3.03 3.93-3.03 1.62 0 3.24.87 3.72 3.03h-7.65zM164.516 34h3.87V12.1h-3.87V34zM185.248 34.36c3.69 0 6.9-2.01 6.9-6.3V13h-2.1v15.06c0 3.03-2.07 4.26-4.8 4.26-2.19 0-3.93-.78-4.62-2.61l-1.77 1.05c1.05 2.43 3.57 3.6 6.39 3.6zM203.124 18.64c-4.65 0-7.83 3.45-7.83 7.86 0 4.53 3.24 7.86 7.98 7.86 3.03 0 5.34-1.41 6.6-3.45l-1.74-1.02c-.81 1.44-2.46 2.55-4.83 2.55-3.18 0-5.55-1.89-5.97-4.95h13.17c.03-.3.06-.63.06-.93 0-4.11-2.85-7.92-7.44-7.92zm0 1.92c2.58 0 4.98 1.71 5.4 5.01h-11.19c.39-2.94 2.64-5.01 5.79-5.01zM221.224 20.92V19h-4.32v-4.2l-1.98.6V19h-3.15v1.92h3.15v9.09c0 3.6 2.25 4.59 6.3 3.99v-1.74c-2.91.12-4.32.33-4.32-2.25v-9.09h4.32zM225.176 22.93c0-1.62 1.59-2.37 3.15-2.37 1.44 0 2.97.57 3.6 2.1l1.65-.96c-.87-1.86-2.79-3.06-5.25-3.06-3 0-5.13 1.89-5.13 4.29 0 5.52 8.76 3.39 8.76 7.11 0 1.77-1.68 2.4-3.45 2.4-2.01 0-3.57-.99-4.11-2.52l-1.68.99c.75 1.92 2.79 3.45 5.79 3.45 3.21 0 5.43-1.77 5.43-4.32 0-5.52-8.76-3.39-8.76-7.11zM244.603 20.92V19h-4.32v-4.2l-1.98.6V19h-3.15v1.92h3.15v9.09c0 3.6 2.25 4.59 6.3 3.99v-1.74c-2.91.12-4.32.33-4.32-2.25v-9.09h4.32zM249.883 21.49V19h-1.98v15h1.98v-8.34c0-3.72 2.34-4.98 4.74-4.98v-1.92c-1.92 0-3.69.63-4.74 2.73zM263.358 18.64c-4.65 0-7.83 3.45-7.83 7.86 0 4.53 3.24 7.86 7.98 7.86 3.03 0 5.34-1.41 6.6-3.45l-1.74-1.02c-.81 1.44-2.46 2.55-4.83 2.55-3.18 0-5.55-1.89-5.97-4.95h13.17c.03-.3.06-.63.06-.93 0-4.11-2.85-7.92-7.44-7.92zm0 1.92c2.58 0 4.98 1.71 5.4 5.01h-11.19c.39-2.94 2.64-5.01 5.79-5.01zM286.848 19v2.94c-1.26-2.01-3.39-3.3-6.06-3.3-4.23 0-7.74 3.42-7.74 7.86s3.51 7.86 7.74 7.86c2.67 0 4.8-1.29 6.06-3.3V34h1.98V19h-1.98zm-5.91 13.44c-3.33 0-5.91-2.61-5.91-5.94 0-3.33 2.58-5.94 5.91-5.94s5.91 2.61 5.91 5.94c0 3.33-2.58 5.94-5.91 5.94zM309.01 18.64c-1.92 0-3.75.87-4.86 2.73-.84-1.74-2.46-2.73-4.56-2.73-1.8 0-3.42.72-4.59 2.55V19h-1.98v15H295v-8.31c0-3.72 2.16-5.13 4.32-5.13 2.13 0 3.51 1.41 3.51 4.08V34h1.98v-8.31c0-3.72 1.86-5.13 4.17-5.13 2.13 0 3.66 1.41 3.66 4.08V34h1.98v-9.36c0-3.75-2.31-6-5.61-6z" class="fill-black"/> <path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/> <path d="M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z" fill="#6875F5"/> </svg>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/application-mark.blade.php
PHP
<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}> <path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/> <path d="M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z" fill="#6875F5"/> </svg>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/authentication-card-logo.blade.php
PHP
<a href="/"> <svg class="size-16" viewbox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M11.395 44.428C4.557 40.198 0 32.632 0 24 0 10.745 10.745 0 24 0a23.891 23.891 0 0113.997 4.502c-.2 17.907-11.097 33.245-26.602 39.926z" fill="#6875F5"/> <path d="M14.134 45.885A23.914 23.914 0 0024 48c13.255 0 24-10.745 24-24 0-3.516-.756-6.856-2.115-9.866-4.659 15.143-16.608 27.092-31.75 31.751z" fill="#6875F5"/> </svg> </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/authentication-card.blade.php
PHP
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"> <div> {{ $logo }} </div> <div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"> {{ $slot }} </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/banner.blade.php
PHP
@props(['style' => session('flash.bannerStyle', 'success'), 'message' => session('flash.banner')]) <div x-data="{{ json_encode(['show' => true, 'style' => $style, 'message' => $message]) }}" :class="{ 'bg-indigo-500': style == 'success', 'bg-red-700': style == 'danger', 'bg-yellow-500': style == 'warning', 'bg-gray-500': style != 'success' && style != 'danger' && style != 'warning'}" style="display: none;" x-show="show && message" x-on:banner-message.window=" style = event.detail.style; message = event.detail.message; show = true; "> <div class="max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"> <div class="flex items-center justify-between flex-wrap"> <div class="w-0 flex-1 flex items-center min-w-0"> <span class="flex p-2 rounded-lg" :class="{ 'bg-indigo-600': style == 'success', 'bg-red-600': style == 'danger', 'bg-yellow-600': style == 'warning' }"> <svg x-show="style == 'success'" class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> </svg> <svg x-show="style == 'danger'" class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" /> </svg> <svg x-show="style != 'success' && style != 'danger' && style != 'warning'" class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /> </svg> <svg x-show="style == 'warning'" class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5" fill="none" /> <path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4v.01 0 0 " /> </svg> </span> <p class="ms-3 font-medium text-sm text-white truncate" x-text="message"></p> </div> <div class="shrink-0 sm:ms-3"> <button type="button" class="-me-1 flex p-2 rounded-md focus:outline-none sm:-me-2 transition" :class="{ 'hover:bg-indigo-600 focus:bg-indigo-600': style == 'success', 'hover:bg-red-600 focus:bg-red-600': style == 'danger', 'hover:bg-yellow-600 focus:bg-yellow-600': style == 'warning'}" aria-label="Dismiss" x-on:click="show = false"> <svg class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> </div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/button.blade.php
PHP
<button {{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-50 transition ease-in-out duration-150']) }}> {{ $slot }} </button>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/button/primary.blade.php
PHP
<a {{ $attributes->merge(['class' => 'group relative inline-flex border border-red-500 focus:outline-none' ]) }}> <span class="w-full inline-flex items-center justify-center self-stretch px-4 py-2 text-sm text-white text-center font-bold uppercase bg-red-500 ring-1 ring-red-500 ring-offset-1 ring-offset-red-500 transform transition-transform group-hover:-translate-y-1 group-hover:-translate-x-1 group-focus:-translate-y-1 group-focus:-translate-x-1"> {{ $slot }} </span> </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/button/secondary.blade.php
PHP
<a {{ $attributes->merge(['class' => 'group relative inline-flex border border-red-600 focus:outline-none']) }}> <span class="w-full inline-flex items-center justify-center self-stretch px-4 py-2 text-sm text-red-600 text-center font-bold uppercase bg-white ring-1 ring-red-600 ring-offset-1 transform transition-transform group-hover:-translate-y-1 group-hover:-translate-x-1 group-focus:-translate-y-1 group-focus:-translate-x-1"> {{ $slot }} </span> </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/checkbox.blade.php
PHP
<input type="checkbox" {!! $attributes->merge(['class' => 'rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500']) !!}>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/confirmation-modal.blade.php
PHP
@props(['id' => null, 'maxWidth' => null]) <x-modal :id="$id" :maxWidth="$maxWidth" {{ $attributes }}> <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> <div class="sm:flex sm:items-start"> <div class="mx-auto shrink-0 flex items-center justify-center size-12 rounded-full bg-red-100 sm:mx-0 sm:size-10"> <svg class="size-6 text-red-600" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" /> </svg> </div> <div class="mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start"> <h3 class="text-lg font-medium text-gray-900"> {{ $title }} </h3> <div class="mt-4 text-sm text-gray-600"> {{ $content }} </div> </div> </div> </div> <div class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-end"> {{ $footer }} </div> </x-modal>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/confirms-password.blade.php
PHP
@props(['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')]) @php $confirmableId = md5($attributes->wire('then')); @endphp <span {{ $attributes->wire('then') }} x-data x-ref="span" x-on:click="$wire.startConfirmingPassword('{{ $confirmableId }}')" x-on:password-confirmed.window="setTimeout(() => $event.detail.id === '{{ $confirmableId }}' && $refs.span.dispatchEvent(new CustomEvent('then', { bubbles: false })), 250);" > {{ $slot }} </span> @once <x-dialog-modal wire:model.live="confirmingPassword"> <x-slot name="title"> {{ $title }} </x-slot> <x-slot name="content"> {{ $content }} <div class="mt-4" x-data="{}" x-on:confirming-password.window="setTimeout(() => $refs.confirmable_password.focus(), 250)"> <x-input type="password" class="mt-1 block w-3/4" placeholder="{{ __('Password') }}" autocomplete="current-password" x-ref="confirmable_password" wire:model="confirmablePassword" wire:keydown.enter="confirmPassword" /> <x-input-error for="confirmable_password" class="mt-2" /> </div> </x-slot> <x-slot name="footer"> <x-secondary-button wire:click="stopConfirmingPassword" wire:loading.attr="disabled"> {{ __('Cancel') }} </x-secondary-button> <x-button class="ms-3" dusk="confirm-password-button" wire:click="confirmPassword" wire:loading.attr="disabled"> {{ $button }} </x-button> </x-slot> </x-dialog-modal> @endonce
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/cube.blade.php
PHP
@props(['delay' => 0]) <svg x-data="{ initializeAnimation: false, init() { setTimeout(() => { this.initializeAnimation = true; }, {{ $delay }}); }, }" :class="initializeAnimation ? 'animate-cube' : ''" {{ $attributes->merge(['class' => 'text-red-600']) }} width="46" height="53" viewBox="0 0 46 53" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="m23.102 1 22.1 12.704v25.404M23.101 1l-22.1 12.704v25.404" stroke="currentColor" stroke-width="1.435" stroke-linejoin="bevel"/><path d="m45.202 39.105-22.1 12.702L1 39.105" stroke="currentColor" stroke-width="1.435" stroke-linejoin="bevel"/><path transform="matrix(.86698 .49834 .00003 1 1 13.699)" stroke="currentColor" stroke-width="1.435" stroke-linejoin="bevel" d="M0 0h25.491v25.405H0z"/><path transform="matrix(.86698 -.49834 -.00003 1 23.102 26.402)" stroke="currentColor" stroke-width="1.435" stroke-linejoin="bevel" d="M0 0h25.491v25.405H0z"/><path transform="matrix(.86701 -.49829 .86701 .49829 1 13.702)" stroke="currentColor" stroke-width="1.435" stroke-linejoin="bevel" d="M0 0h25.491v25.491H0z"/> </svg>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/danger-button.blade.php
PHP
<button {{ $attributes->merge(['type' => 'button', 'class' => 'inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150']) }}> {{ $slot }} </button>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/dialog-modal.blade.php
PHP
@props(['id' => null, 'maxWidth' => null]) <x-modal :id="$id" :maxWidth="$maxWidth" {{ $attributes }}> <div class="px-6 py-4"> <div class="text-lg font-medium text-gray-900"> {{ $title }} </div> <div class="mt-4 text-sm text-gray-600"> {{ $content }} </div> </div> <div class="flex flex-row justify-end px-6 py-4 bg-gray-100 text-end"> {{ $footer }} </div> </x-modal>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/dropdown-link.blade.php
PHP
<a {{ $attributes->merge(['class' => 'block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }}</a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/dropdown.blade.php
PHP
@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white', 'dropdownClasses' => '']) @php $alignmentClasses = match ($align) { 'left' => 'ltr:origin-top-left rtl:origin-top-right start-0', 'top' => 'origin-top', 'none', 'false' => '', default => 'ltr:origin-top-right rtl:origin-top-left end-0', }; $width = match ($width) { '48' => 'w-48', '60' => 'w-60', default => 'w-48', }; @endphp <div class="relative" x-data="{ open: false }" @click.away="open = false" @close.stop="open = false"> <div @click="open = ! open"> {{ $trigger }} </div> <div x-show="open" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="transform opacity-0 scale-95" x-transition:enter-end="transform opacity-100 scale-100" x-transition:leave="transition ease-in duration-75" x-transition:leave-start="transform opacity-100 scale-100" x-transition:leave-end="transform opacity-0 scale-95" class="absolute z-50 mt-2 {{ $width }} rounded-md shadow-lg {{ $alignmentClasses }} {{ $dropdownClasses }}" style="display: none;" @click="open = false"> <div class="rounded-md ring-1 ring-black ring-opacity-5 {{ $contentClasses }}"> {{ $content }} </div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/form-section.blade.php
PHP
@props(['submit']) <div {{ $attributes->merge(['class' => 'md:grid md:grid-cols-3 md:gap-6']) }}> <x-section-title> <x-slot name="title">{{ $title }}</x-slot> <x-slot name="description">{{ $description }}</x-slot> </x-section-title> <div class="mt-5 md:mt-0 md:col-span-2"> <form wire:submit="{{ $submit }}"> <div class="px-4 py-5 bg-white sm:p-6 shadow {{ isset($actions) ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md' }}"> <div class="grid grid-cols-6 gap-6"> {{ $form }} </div> </div> @if (isset($actions)) <div class="flex items-center justify-end px-4 py-3 bg-gray-50 text-end sm:px-6 shadow sm:rounded-bl-md sm:rounded-br-md"> {{ $actions }} </div> @endif </form> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/input-error.blade.php
PHP
@props(['for']) @error($for) <p {{ $attributes->merge(['class' => 'text-sm text-red-600']) }}>{{ $message }}</p> @enderror
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/input.blade.php
PHP
@props(['disabled' => false]) <input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm']) !!}>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/label.blade.php
PHP
@props(['value']) <label {{ $attributes->merge(['class' => 'block font-medium text-sm text-gray-700']) }}> {{ $value ?? $slot }} </label>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/modal.blade.php
PHP
@props(['id', 'maxWidth']) @php $id = $id ?? md5($attributes->wire('model')); $maxWidth = [ 'sm' => 'sm:max-w-sm', 'md' => 'sm:max-w-md', 'lg' => 'sm:max-w-lg', 'xl' => 'sm:max-w-xl', '2xl' => 'sm:max-w-2xl', ][$maxWidth ?? '2xl']; @endphp <div x-data="{ show: @entangle($attributes->wire('model')) }" x-on:close.stop="show = false" x-on:keydown.escape.window="show = false" x-show="show" id="{{ $id }}" class="jetstream-modal fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50" style="display: none;" > <div x-show="show" class="fixed inset-0 transform transition-all" x-on:click="show = false" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0"> <div class="absolute inset-0 bg-gray-500 opacity-75"></div> </div> <div x-show="show" class="mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full {{ $maxWidth }} sm:mx-auto" x-trap.inert.noscroll="show" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"> {{ $slot }} </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/nav-link.blade.php
PHP
@props(['active']) @php $classes = ($active ?? false) ? 'inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out' : 'inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out'; @endphp <a {{ $attributes->merge(['class' => $classes]) }}> {{ $slot }} </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/partners/body.blade.php
PHP
<div class="relative"> <div class="max-w-screen-xl mx-auto px-8 py-12 lg:py-24"> <div style="width: 130%;z-index: -9998" class="hidden md:transform md:-translate-x-1/2 md:absolute md:inset-y-0 md:left-0 md:w-full md:flex md:items-center xl:left-16 2xl:left-32"> <video poster="/img/blocks/blocks_2.jpg" playsinline autoplay muted loop> <source src="/img/blocks/blocks_2.mp4" type="video/mp4"> </video> </div> <div class="md:w-3/4 md:ml-auto lg:grid lg:gap-6 lg:grid-cols-5 xl:gap-16 xl:grid-cols-12"> <div class="space-y-12 text-gray-600 md:text-lg lg:col-span-3 xl:col-span-7 partners_body"> {{ $content }} </div> <div class="mt-12 lg:mt-0 lg:col-span-2 xl:col-span-5"> <div class="p-12 bg-white shadow-lg xl:p-16"> <h3 class="text-xl font-medium md:text-3xl">{{ $proficienciesWording ?? 'Proficiencies' }}</h3> <ul class="mt-3 grid grid-cols-1 gap-4 list-custom font-medium text-sm text-gray-600 leading-4 md:grid-cols-2 lg:grid-cols-1"> {{ $proficiencies }} </ul> </div> <ul class="mt-12 flex items-center space-x-4"> @isset ($twitter) <li> <a href="{{ $twitter }}"> <img class="opacity-25" src="/img/social/twitter.min.svg" alt="Twitter"> </a> </li> @endif @isset ($github) <li> <a href="{{ $github }}"> <img class="opacity-25" src="/img/social/github.min.svg" alt="GitHub"> </a> </li> @endif @isset ($linkedin) <li> <a href="{{ $linkedin }}"> <img class="opacity-25" src="/img/social/linkedin.min.svg" alt="LinkedIn"> </a> </li> @endif @isset ($facebook) <li> <a href="{{ $facebook }}"> <img class="opacity-25" src="/img/social/facebook.min.svg" alt="Facebook"> </a> </li> @endif </ul> </div> </div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/partners/hero.blade.php
PHP
<section class="py-12 md:py-20 lg:py-32"> <div class="max-w-screen-xl mx-auto px-8"> <h6 class="text-gray-600 font-medium text-sm">Laravel Partner</h6> <div class="mt-8 lg:flex lg:items-center lg:justify-between"> {{ $logo }} <div class="mt-8 flex items-center space-x-4 lg:mt-0"> <x-button.primary href="{{ $primaryButtonUrl }}"> {{ $primaryButtonText }} </x-button.primary> <x-button.secondary href="{{ $secondaryButtonUrl }}"> {{ $secondaryButtonText ?? 'Visit Website' }} → </x-button.secondary> </div> </div> </div> <div class="max-w-screen-xl mt-12 mx-auto px-8 md:pr-0 md:mt-16 lg:mt-24 xl:pr-8"> <div class="md:grid md:grid-cols-5 md:gap-x-8 lg:gap-12"> <h3 class="text-lg font-medium leading-6 md:col-span-3 md:text-3xl md:leading-9 lg:text-4xl lg:leading-10"> {{ $description }} </h3> <div class="mt-8 md:mt-0 md:col-span-2"> {{ $image }} </div> </div> </div> </section>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/project.blade.php
PHP
<blockquote class="rounded-lg shadow-sm relative flex flex-col w-full bg-white p-5 border border-gray-200 break-inside-avoid-column"> <a href="{{ $project['doc_url'] }}" class="text-blue-800 hover:text-blue-500"> <h3 class="text-xl font-bold">{{ package_to_title($project['name']) }}</h3> </a> <p class="mt-2 text-gray-700"> {{ $project['description'] }} </p> <div class="mt-5 flex items-start gap-4"> <img src="{{ $project['owner']['avatar_url'] }}" class="rounded-full w-10 h-10 object-cover object-center" alt="{{ $project['full_name'] }}"> <a href="{{ $project['html_url'] }}" class="text-xs"> <cite class="not-italic font-medium">{{ $project['full_name'] }}</cite> <p class="text-gray-700"> {{ $project['description'] }} </p> </a> </div> <div class="flex space-x-2 mt-4"> <a href="{{ $project['html_url'] }}" class="flex"> <span>{{ number_format($project['stargazers_count']) }}</span> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 ml-1"> <path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"/> </svg> </a> <a href="{{ $project['html_url'] }}/issues" class="flex"> {{ $project['open_issues'] }} <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 ml-1"> <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 010 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 010-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375z"/> </svg> </a> <a href="{{ $project['html_url'] }}/network" class="flex"> {{ $project['forks_count'] }} <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 ml-1"> <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"/> </svg> </a> </div> <ul class="flex flex-wrap items-center space-x-2 mt-4"> @foreach($project['versions'] as $version) @if($loop->first) <li class="text-xs">Doc Versions:</li> @endif <li> <a href="{{ route('docs.version', [$project['doc'], Str::lower($version)]).$project['section'] }}" class="bg-blue-500 px-1 rounded border text-white text-xs" >{{ $version }}</a> </li> @endforeach </ul> </blockquote>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/radial-blur.blade.php
PHP
<span {{ $attributes->merge(['class' => 'hidden absolute bg-radial-gradient opacity-[.15] pointer-events-none lg:inline-flex']) }}></span>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/responsive-nav-link.blade.php
PHP
@props(['active']) @php $classes = ($active ?? false) ? 'block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out' : 'block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out'; @endphp <a {{ $attributes->merge(['class' => $classes]) }}> {{ $slot }} </a>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/search-modal.blade.php
PHP
<div x-data="searchComponent()" @toggle-search-modal.window="open = !open" @keydown.window.escape="close" @keydown.window="handleKeydown" @keydown.escape.prevent.stop="close" x-init="$nextTick(() => { if (! window.URLSearchParams) { return } const searchQuery = new URLSearchParams(document.location.search).get('q') if (searchQuery) { search = searchQuery open = true } })" x-show="open" x-cloak x-trap.noscroll.inert="open" role="dialog" aria-modal="true" x-id="['search-modal']" :aria-labelledby="$id('search-modal')" class="fixed inset-0 z-50 text-gray-400 overflow-y-auto" > <div x-show="open" x-transition.opacity class="fixed inset-0 bg-dark-900 opacity-80"></div> <div x-show="open" x-transition @click="close()" class="relative min-h-screen flex items-start justify-center p-4 lg:py-20" > <div @click.stop class="relative max-w-2xl w-full bg-dark-700 pt-8 px-8 pb-16" > <div class="relative w-full border-b border-gray-600 border-opacity-50 overflow-hidden transition-all duration-500 focus-within:border-gray-600" > <svg class="absolute inset-y-0 left-0 mt-1 w-5 h-5 text-gray-500 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/> </svg> <input x-model.debounce.200ms="search" x-ref="searchInput" class="flex-1 w-full pl-8 pr-4 py-1 tracking-wide text-gray-400 placeholder-gray-500 bg-transparent focus:outline-none" placeholder="Search Docs (Press '/')" aria-label="Search in the documentation" @keydown.arrow-up.prevent="focusPreviousResult()" @keydown.arrow-down.prevent="focusNextResult()" > </div> <div x-show="search"> <div x-show="hits.length" x-cloak class="mt-5 divide-y divide-gray-700 z-30"> <template x-for="(hit, index) in hits" :key="index" hidden> <div> <a :id="'search-result-' + index" :href="hit.url" class="search-result -mx-2 block p-3 text-gray-400 transition-colors duration-200 focus:outline-none focus:bg-dark-800 focus:text-gray-200 hover:text-gray-200" @keydown.arrow-up.prevent="focusPreviousResult(index)" @keydown.arrow-down.prevent="focusNextResult(index)" @click="close()" > <div x-show="hit._highlightResult.hierarchy.lvl0" class="text-sm font-medium" x-html="hit._highlightResult.hierarchy.lvl0 ? hit._highlightResult.hierarchy.lvl0.value : ''"></div> <div class="mt-2"> <div x-show="hit._highlightResult.hierarchy.lvl1" class="text-sm"> <span class="text-red-600 opacity-75">#</span> <span x-html="hit._highlightResult.hierarchy.lvl1 ? hit._highlightResult.hierarchy.lvl1.value : ''"></span> </div> <div x-show="hit._highlightResult.hierarchy.lvl2" class="text-sm"> > <span x-html="hit._highlightResult.hierarchy.lvl2 ? hit._highlightResult.hierarchy.lvl2.value : ''"></span> </div> <div x-show="hit._highlightResult.hierarchy.lvl3" class="text-sm"> > <span x-html="hit._highlightResult.hierarchy.lvl3 ? hit._highlightResult.hierarchy.lvl3.value : ''"></span> </div> <div x-show="hit._highlightResult.hierarchy.lvl4" class="text-sm"> > <span x-html="hit._highlightResult.hierarchy.lvl4 ? hit._highlightResult.hierarchy.lvl4.value : ''"></span> </div> <div x-show="hit._highlightResult.hierarchy.lvl5" class="text-sm"> > <span x-html="hit._highlightResult.hierarchy.lvl5 ? hit._highlightResult.hierarchy.lvl5.value : ''"></span> </div> </div> </a> </div> </template> </div> <div x-show="! hits.length && searching" x-cloak class="mt-8 pb-32"> Searching... </div> <div x-show="! hits.length && ! searching" x-cloak class="mt-8 pb-32"> <div x-text="`We didn't find any result for '${search}'. Sorry!`"></div> </div> </div> <div x-show="! search" class="mt-8 pb-32"> <p>Enter a search term to find results in the documentation.</p> </div> <div class="absolute bottom-0 inset-x-0 border-t border-dark-800 text-gray-400 flex justify-end"> <a class="px-4 py-2 inline-block" target="_blank" href="https://www.algolia.com/?utm_source=yajra&utm_medium=link&utm_campaign=yajra_documentation_search"> <img width="105" src="{{ asset('img/icons/algolia.dark.min.svg') }}" id="docs_search__algolia_dark" alt="Algolia"> </a> </div> </div> <button x-show="open" x-transition.opacity class="absolute top-8 right-8 text-gray-400" @click.prevent="close"> <span class="sr-only">Close search</span> <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/> </svg> </button> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/secondary-button.blade.php
PHP
<button {{ $attributes->merge(['type' => 'button', 'class' => 'inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-25 transition ease-in-out duration-150']) }}> {{ $slot }} </button>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/section-border.blade.php
PHP
<div class="hidden sm:block"> <div class="py-8"> <div class="border-t border-gray-200"></div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/section-title.blade.php
PHP
<div class="md:col-span-1 flex justify-between"> <div class="px-4 sm:px-0"> <h3 class="text-lg font-medium text-gray-900">{{ $title }}</h3> <p class="mt-1 text-sm text-gray-600"> {{ $description }} </p> </div> <div class="px-4 sm:px-0"> {{ $aside ?? '' }} </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/switchable-team.blade.php
PHP
@props(['team', 'component' => 'dropdown-link']) <form method="POST" action="{{ route('current-team.update') }}" x-data> @method('PUT') @csrf <!-- Hidden Team ID --> <input type="hidden" name="team_id" value="{{ $team->id }}"> <x-dynamic-component :component="$component" href="#" x-on:click.prevent="$root.submit();"> <div class="flex items-center"> @if (Auth::user()->isCurrentTeam($team)) <svg class="me-2 size-5 text-green-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> </svg> @endif <div class="truncate">{{ $team->name }}</div> </div> </x-dynamic-component> </form>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/testimonial.blade.php
PHP
<blockquote class="relative w-full bg-white p-5 border border-gray-200 break-inside-avoid-column"> <h2 class="text-sm">“{{ $content }}“</h2> <div class="mt-5 flex items-start gap-4"> <img src="/images/testimonials/{{ Str::slug($name) }}.jpg" class="w-10 h-10 object-cover object-center" alt="{{ $name }}"> <div class="text-xs"> <cite class="not-italic">{{ $name }}</cite> <p class="text-gray-700">{{ $title }}</p> </div> </div> </blockquote>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/validation-errors.blade.php
PHP
@if ($errors->any()) <div {{ $attributes }}> <div class="font-medium text-red-600">{{ __('Whoops! Something went wrong.') }}</div> <ul class="mt-3 list-disc list-inside text-sm text-red-600"> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/components/welcome.blade.php
PHP
<div class="p-6 lg:p-8 bg-white border-b border-gray-200"> <x-application-logo class="block h-12 w-auto" /> <h1 class="mt-8 text-2xl font-medium text-gray-900"> Welcome to your Jetstream application! </h1> <p class="mt-6 text-gray-500 leading-relaxed"> Laravel Jetstream provides a beautiful, robust starting point for your next Laravel application. Laravel is designed to help you build your application using a development environment that is simple, powerful, and enjoyable. We believe you should love expressing your creativity through programming, so we have spent time carefully crafting the Laravel ecosystem to be a breath of fresh air. We hope you love it. </p> </div> <div class="bg-gray-200 opacity-25 grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 p-6 lg:p-8"> <div> <div class="flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25" /> </svg> <h2 class="ms-3 text-xl font-semibold text-gray-900"> <a href="https://laravel.com/docs">Documentation</a> </h2> </div> <p class="mt-4 text-gray-500 text-sm leading-relaxed"> Laravel has wonderful documentation covering every aspect of the framework. Whether you're new to the framework or have previous experience, we recommend reading all of the documentation from beginning to end. </p> <p class="mt-4 text-sm"> <a href="https://laravel.com/docs" class="inline-flex items-center font-semibold text-indigo-700"> Explore the documentation <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="ms-1 size-5 fill-indigo-500"> <path fill-rule="evenodd" d="M5 10a.75.75 0 01.75-.75h6.638L10.23 7.29a.75.75 0 111.04-1.08l3.5 3.25a.75.75 0 010 1.08l-3.5 3.25a.75.75 0 11-1.04-1.08l2.158-1.96H5.75A.75.75 0 015 10z" clip-rule="evenodd" /> </svg> </a> </p> </div> <div> <div class="flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400"> <path stroke-linecap="round" d="M15.75 10.5l4.72-4.72a.75.75 0 011.28.53v11.38a.75.75 0 01-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 002.25-2.25v-9a2.25 2.25 0 00-2.25-2.25h-9A2.25 2.25 0 002.25 7.5v9a2.25 2.25 0 002.25 2.25z" /> </svg> <h2 class="ms-3 text-xl font-semibold text-gray-900"> <a href="https://laracasts.com">Laracasts</a> </h2> </div> <p class="mt-4 text-gray-500 text-sm leading-relaxed"> Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. </p> <p class="mt-4 text-sm"> <a href="https://laracasts.com" class="inline-flex items-center font-semibold text-indigo-700"> Start watching Laracasts <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="ms-1 size-5 fill-indigo-500"> <path fill-rule="evenodd" d="M5 10a.75.75 0 01.75-.75h6.638L10.23 7.29a.75.75 0 111.04-1.08l3.5 3.25a.75.75 0 010 1.08l-3.5 3.25a.75.75 0 11-1.04-1.08l2.158-1.96H5.75A.75.75 0 015 10z" clip-rule="evenodd" /> </svg> </a> </p> </div> <div> <div class="flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400"> <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 001.5-1.5V6a1.5 1.5 0 00-1.5-1.5H3.75A1.5 1.5 0 002.25 6v12a1.5 1.5 0 001.5 1.5zm10.5-11.25h.008v.008h-.008V8.25zm.375 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z" /> </svg> <h2 class="ms-3 text-xl font-semibold text-gray-900"> <a href="https://tailwindcss.com/">Tailwind</a> </h2> </div> <p class="mt-4 text-gray-500 text-sm leading-relaxed"> Laravel Jetstream is built with Tailwind, an amazing utility first CSS framework that doesn't get in your way. You'll be amazed how easily you can build and maintain fresh, modern designs with this wonderful framework at your fingertips. </p> </div> <div> <div class="flex items-center"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400"> <path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /> </svg> <h2 class="ms-3 text-xl font-semibold text-gray-900"> Authentication </h2> </div> <p class="mt-4 text-gray-500 text-sm leading-relaxed"> Authentication and registration views are included with Laravel Jetstream, as well as support for user email verification and resetting forgotten passwords. So, you're free to get started with what matters most: building your application. </p> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/dashboard.blade.php
PHP
<x-app-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __('Dashboard') }} </h2> </x-slot> <div class="py-12"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> <div class="bg-white overflow-hidden shadow-xl sm:rounded-lg"> <x-welcome /> </div> </div> </div> </x-app-layout>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/app.blade.php
PHP
<!DOCTYPE html> <html lang="en"> <head> @include('partials.meta') <!-- Fonts --> <link rel="stylesheet" href="https://use.typekit.net/ins2wgm.css"> <!-- Scripts --> @vite(['resources/css/docs.css', 'resources/js/docs.js']) <!-- Styles --> @livewireStyles @php $routesThatAreAlwaysLightMode = collect([ 'marketing', 'team', ]) @endphp <script> const alwaysLightMode = {{ ($routesThatAreAlwaysLightMode->contains(request()->route()->getName())) ? 'true' : 'false' }}; </script> @include('partials.theme') @production <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2399525660597307" crossorigin="anonymous"></script> @endproduction </head> <body x-data="{ navIsOpen: false, searchIsOpen: false, search: '', }" class="language-php h-full w-full font-sans text-gray-900 antialiased dark:bg-dark-700" > @yield('content') @include('partials.footer') <x-search-modal/> <script> var algolia_app_id = '{{ config('algolia.connections.main.id', false) }}'; var algolia_search_key = '{{ config('algolia.connections.main.search_key', false) }}'; var version = '{{ $currentVersion ?? DEFAULT_VERSION }}'; var package = '{{ package_to_title($package ?? DEFAULT_PACKAGE) }}'; </script> @include('partials.analytics') </body> </html>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/missing.blade.php
PHP
<h1>Page not found.</h1> @if($otherVersions->isEmpty()) <p>Nothing to see here.</p> @else <p>This page does not exist for this version of Laravel but was found in other versions.</p> <div> <ul class="list-custom leading-4 space-y-3"> @foreach($otherVersions as $key => $title) <li><a href="{{ url('/docs/'.$package.'/'.$key.'/'.$page) }}">{{ $title }}</a></li> @endforeach </ul> </div> @endif
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/partials/search.blade.php
PHP
<div class="relative mt-8 flex items-center justify-end w-full h-10 lg:mt-0"> <div class="flex-1 flex items-center"> <button class="relative inline-flex items-center text-gray-800 transition-colors w-full" @click.prevent="$dispatch('toggle-search-modal')" > <svg class="w-5 h-5 text-gray-700 dark:text-gray-200 pointer-events-none transition-colors" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/> </svg> <span class="ml-3 dark:text-gray-200">Search</span> </button> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/partials/sidebar.blade.php
PHP
<aside class="hidden dark:text-gray-200 dark:bg-gradient-to-b dark:from-dark-900 dark:to-dark-700 fixed top-0 bottom-0 left-0 z-20 h-full w-16 bg-gradient-to-b from-gray-100 to-white transition-all duration-300 overflow-hidden lg:sticky lg:w-80 lg:shrink-0 lg:flex lg:flex-col lg:justify-end lg:items-end 2xl:max-w-lg 2xl:w-full"> <div class="relative min-h-0 flex-1 flex flex-col xl:w-80"> <a href="/" class="flex items-center py-8 px-4 lg:px-8 xl:px-16"> <img src="{{ asset('img/logo.min.svg') }}" alt="{{ config('app.name') }}" class="hidden lg:block mr-2" width="114" height="29" > <h1 class="font-bold">{{ package_to_title($package) }}</h1> </a> <div class="overflow-y-auto overflow-x-hidden px-4 lg:overflow-hidden lg:px-8 xl:px-16"> <iframe src="https://github.com/sponsors/yajra/button" title="Sponsor yajra" height="35" width="116" style="border: 0;"></iframe> <nav id="indexed-nav" class="hidden lg:block lg:mt-4"> <div class="docs_sidebar"> {!! $index !!} <x-ads ad-slot="5965792075" /> </div> </nav> </div> </div> </aside>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/partials/theme-switcher.blade.php
PHP
<div class="hidden lg:flex items-center justify-center ml-8"> <button id="header__sun" onclick="toSystemMode()" title="Switch to system theme" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sun" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <circle cx="12" cy="12" r="4"></circle> <path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"></path> </svg> </button> <button id="header__moon" onclick="toLightMode()" title="Switch to light mode" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="currentColor" d="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z"/> </svg> </button> <button id="header__indeterminate" onclick="toDarkMode()" title="Switch to dark mode" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="currentColor" d="M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z"/> </svg> </button> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/partials/version-switcher.blade.php
PHP
<div class="w-full lg:w-40 lg:pl-12"> <div> <label class="text-gray-600 text-xs tracking-widest uppercase" for="version-switcher">Version</label> <div x-data class="relative w-full transition-all duration-500 focus-within:border-gray-600"> <select id="version-switcher" aria-label="Laravel version" class="appearance-none flex-1 w-full px-0 py-1 placeholder-gray-900 tracking-wide focus:outline-none" @change="window.location = $event.target.value" > @foreach ($versions as $key => $display) <option {{ $currentVersion == $key ? 'selected' : '' }} value="{{ url('docs/'.$package.'/'.$key.$currentSection) }}">{{ $display }}</option> @endforeach </select> <img class="absolute inset-y-0 right-0 mt-2.5 w-2.5 h-2.5 text-gray-900 pointer-events-none dark:hidden" src="{{ asset('img/icons/drop_arrow.min.svg') }}" alt=""> <img class="absolute inset-y-0 right-0 mt-2.5 w-2.5 h-2.5 text-gray-900 pointer-events-none dark:block" src="{{ asset('img/icons/drop_arrow.dark.min.svg') }}" alt=""> </div> </div> </div>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/docs/show.blade.php
PHP
@extends('docs.app') @section('title', $title . ' - ' . package_to_title($package) . ' - YajraBox') @section('description', "$title $package package documentation.") @section('content') <x-accessibility.skip-to-content-link/> <div class="relative overflow-auto dark:bg-dark-700 dark:text-gray-300" id="docsScreen"> <div class="relative lg:flex lg:items-start"> @include('docs.partials.sidebar') {{-- Responsive Menu --}} <header class="lg:hidden" @keydown.window.escape="navIsOpen = false" @click.away="navIsOpen = false" > <div class="relative mx-auto w-full py-10 bg-white transition duration-200"> <div class="mx-auto px-8 sm:px-16 flex items-center justify-between"> <a href="/" class="flex items-center"> <img class="" width="50" height="50" src="{{ asset('img/logomark.min.svg') }}" alt="{{ config('app.name') }}"> <img class="hidden ml-5 sm:block" height="29" width="114" src="{{ asset('img/logotype.min.svg') }}" alt="{{ config('app.name') }}"> <h3 class="font-bold ml-5 text-2xl">{{ package_to_title($package) }}</h3> </a> <div class="flex-1 flex items-center justify-end"> <button id="header__sun" onclick="toSystemMode()" title="Switch to system theme" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sun" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <circle cx="12" cy="12" r="4"></circle> <path d="M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"></path> </svg> </button> <button id="header__moon" onclick="toLightMode()" title="Switch to light mode" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="currentColor" d="M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z"/> </svg> </button> <button id="header__indeterminate" onclick="toDarkMode()" title="Switch to dark mode" class="relative w-10 h-10 focus:outline-none focus:shadow-outline text-gray-500"> <svg style="width:24px;height:24px" viewBox="0 0 24 24"> <path fill="currentColor" d="M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z"/> </svg> </button> <button class="ml-2 relative w-10 h-10 p-2 text-red-600 lg:hidden focus:outline-none focus:shadow-outline" aria-label="Menu" @click.prevent="navIsOpen = !navIsOpen"> <svg x-show="! navIsOpen" x-transition.opacity class="absolute inset-0 mt-2 ml-2 w-6 h-6" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"> <line x1="3" y1="12" x2="21" y2="12"></line> <line x1="3" y1="6" x2="21" y2="6"></line> <line x1="3" y1="18" x2="21" y2="18"></line> </svg> <svg x-show="navIsOpen" x-transition.opacity x-cloak class="absolute inset-0 mt-2 ml-2 w-6 h-6" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"> <line x1="18" y1="6" x2="6" y2="18"></line> <line x1="6" y1="6" x2="18" y2="18"></line> </svg> </button> </div> </div> <span :class="{ 'shadow-sm': navIsOpen }" class="absolute inset-0 z-20 pointer-events-none"></span> </div> <div x-show="navIsOpen" x-transition:enter="duration-150" x-transition:leave="duration-100 ease-in" x-cloak > <nav x-show="navIsOpen" x-cloak class="absolute w-full transform origin-top shadow-sm z-10" x-transition:enter="duration-150 ease-out" x-transition:enter-start="opacity-0 -translate-y-8 scale-75" x-transition:enter-end="opacity-100 scale-100" x-transition:leave="duration-100 ease-in" x-transition:leave-start="opacity-100 scale-100" x-transition:leave-end="opacity-0 -translate-y-8 scale-75" > <div class="relative p-8 bg-white docs_sidebar"> {!! $index !!} </div> </nav> </div> </header> {{-- Main Content --}} <section class="flex-1" id="main-content"> <div class="max-w-screen-lg px-8 sm:px-16 lg:px-24"> <div class="flex flex-col items-end border-b border-gray-200 py-1 transition-colors lg:mt-8 lg:flex-row-reverse"> @include('docs.partials.theme-switcher') @include('docs.partials.version-switcher') @include('docs.partials.search') </div> <section class="mt-8 md:mt-16"> <section class="docs_main"> @unless ($currentVersion == 'master' || version_compare($currentVersion, $defaultVersion) >= 0) <blockquote> <div class="mb-10 max-w-2xl mx-auto px-4 py-8 shadow-lg lg:flex lg:items-center"> <div class="w-20 h-20 mb-6 flex items-center justify-center shrink-0 bg-orange-600 lg:mb-0"> <img src="{{ asset('/img/callouts/exclamation.min.svg') }}" alt="Icon" class="opacity-75"/> </div> <p class="mb-0 lg:ml-4"> <strong>WARNING</strong> You're browsing the documentation for an old version of <strong>{{ Str::upper($package) }}</strong>. Consider upgrading your project to <a href="{{ route('docs.version', ['package' => $package, 'version' => $defaultVersion]) }}">{{ $package }} {{ $defaultVersion }}</a>. </p> </div> </blockquote> @endunless @if ($currentVersion == 'master' || version_compare($currentVersion, $defaultVersion) > 0) <blockquote> <div class="callout"> <div class="mb-10 max-w-2xl mx-auto px-4 py-8 shadow-lg lg:flex lg:items-center"> <div class="w-20 h-20 mb-6 flex items-center justify-center shrink-0 bg-orange-600 lg:mb-0"> <img src="{{ asset('/img/callouts/exclamation.min.svg') }}" alt="Icon" class="opacity-75"/> </div> <p class="mb-0 lg:ml-4"> <strong>WARNING</strong> You're browsing the documentation for an upcoming version of <strong>{{ package_to_title($package) }}</strong>. The documentation and features of this release are subject to change. </p> </div> </div> </blockquote> @endif <x-accessibility.main-content-wrapper> <div class="block mb-10"> <x-ads ad-slot="6524198363"/> </div> {!! $content !!} @isset($repositoryLink) <x-slot name="editRepoLink"> <div class="border-box flex"> <a title="Something wrong? You can edit the file and contribute." target="_blank" class="btn-sm btn-group-item btn float-right flex justify-between text-sm items-center font-medium text-red-600 mt-10" href="{{$repositoryLink}}" > <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" fill="currentColor" class="octicon octicon-pencil"> <path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path> </svg> <span class="ml-2">Edit this page on GitHub</span> </a> </div> </x-slot> @endif </x-accessibility.main-content-wrapper> </section> </section> </div> </section> </div> </div> @endsection
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/layouts/app.blade.php
PHP
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> <!-- Fonts --> <link rel="preconnect" href="https://fonts.bunny.net"> <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <!-- Scripts --> @vite(['resources/css/app.css', 'resources/js/app.js']) <!-- Styles --> @livewireStyles </head> <body class="font-sans antialiased"> <x-banner /> <div class="min-h-screen bg-gray-100"> @livewire('navigation-menu') <!-- Page Heading --> @if (isset($header)) <header class="bg-white shadow"> <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> {{ $header }} </div> </header> @endif <!-- Page Content --> <main> {{ $slot }} </main> </div> @stack('modals') @livewireScripts </body> </html>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/layouts/guest.blade.php
PHP
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> <!-- Fonts --> <link rel="preconnect" href="https://fonts.bunny.net"> <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" /> <!-- Scripts --> @vite(['resources/css/app.css', 'resources/js/app.js']) <!-- Styles --> @livewireStyles </head> <body> <div class="font-sans text-gray-900 antialiased"> {{ $slot }} </div> @livewireScripts </body> </html>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/partials/analytics.blade.php
PHP
@production <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-L84M3XWG39"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-L84M3XWG39'); </script> @endproduction
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/partials/footer.blade.php
PHP
@php $is_docs_page = request()->is('docs/*'); @endphp <footer class="relative pt-12 {{ $is_docs_page ? 'dark:bg-dark-700' : '' }}"> <div class="max-w-screen-2xl mx-auto w-full {{ $is_docs_page ? 'px-8' : 'px-5' }}"> <div class="text-center text-xs text-gray-700 sm:text-sm {{ $is_docs_page ? 'dark:text-gray-500' : '' }}"> <div class="flex justify-center"> <div class="max-w-sm"> Arjay Angeles, also known as "<cite>yajra</cite>", is an open source software advocate and a Laravel enthusiast. He is the author of many open source projects and a contributor to the Laravel community. </div> </div> <div> <ul class="mt-6 flex justify-center items-center space-x-3"> <li> <a href="https://twitter.com/aqangeles"> <img id="footer__twitter_dark" class="{{ $is_docs_page ? 'hidden' : 'hidden' }} w-6 h-6" src="{{ asset('img/social/twitter.dark.min.svg') }}" alt="Twitter" width="24" height="20" loading="lazy"> <img id="footer__twitter" class="{{ $is_docs_page ? 'inline-block' : 'inline-block' }} w-6 h-6" src="{{ asset('img/social/twitter.min.svg') }}" alt="Twitter" width="24" height="20" loading="lazy"> </a> </li> <li> <a href="https://github.com/yajra"> <img id="footer__github_dark" class="{{ $is_docs_page ? 'hidden' : 'hidden' }} w-6 h-6" src="{{ asset('img/social/github.dark.min.svg') }}" alt="GitHub" width="24" height="24" loading="lazy"> <img id="footer__github" class="{{ $is_docs_page ? 'inline-block' : 'inline-block' }} w-6 h-6" src="{{ asset('img/social/github.min.svg') }}" alt="GitHub" width="24" height="24" loading="lazy"> </a> </li> </ul> </div> </div> <div class="mt-10 border-t pt-6 pb-16 border-gray-200 {{ $is_docs_page ? 'dark:border-dark-500' : '' }}"> <div class="flex justify-center"> <p class="flex text-xs text-gray-700 max-w-sm {{ $is_docs_page ? 'dark:text-gray-400' : '' }}"> {{ config('app.name') }} Copyright &copy; {{ now()->format('Y') }}. </p> </div> <div class="mt-6 flex justify-center"> <p class="flex text-xs text-gray-700 max-w-sm {{ $is_docs_page ? 'dark:text-gray-400' : '' }}"> Code highlighting provided by <a href="https://torchlight.dev">Torchlight</a> </p> </div> </div> </div> </footer>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/partials/header.blade.php
PHP
<header x-trap.inert.noscroll="navIsOpen" class="relative z-50 text-gray-700" @keydown.window.escape="navIsOpen = false" @click.away="navIsOpen = false" > <div class="relative max-w-screen-2xl mx-auto w-full py-4 bg-white transition duration-200 lg:bg-transparent lg:py-6"> <div class="max-w-screen-xl mx-auto px-5 flex items-center justify-between"> <div class="flex-1 items-center flex"> <a href="/" class="inline-flex items-center"> <svg height="60" class="w-auto" xmlns="http://www.w3.org/2000/svg" id="Layer_2" viewBox="0 0 1239.0986 325.3486"><g id="Components"><g id="_93be7333-3f28-4bef-a0c0-c99b4abfffce_1"><path d="M496.0859,109.3105l-45.167,101.6641h24.1084l9.0596-21.7852h47.0908l9.0596,21.7852h24.6904l-45.6035-101.6641h-23.2383Zm-4.5703,62.0146l16.1167-38.7549,16.1167,38.7549h-32.2334Zm89.8223-43.1338h35.582v48.3623c0,11.1357-4.793,16.7021-14.3779,16.7021-3.583,0-6.9482-.9189-10.0938-2.7598-3.1475-1.8379-6.0771-4.5967-8.7871-8.2783l-13.0713,15.54c3.6787,4.8428,8.3994,8.5469,14.1611,11.1113,5.7588,2.5635,12.0771,3.8486,18.9531,3.8486,12.0039,0,21.1309-3.0977,27.376-9.2949,6.2451-6.1953,9.3682-15.5879,9.3682-28.1758V109.3105h-59.1104v18.8809Zm-151.042-18.8809l-27.2163,45.0152-27.1011-45.0152h-25.126l39.5039,65.4559v36.2082h23.6729v-36.2646l39.2139-65.3994h-22.9473Zm770.877,49.094l35.457-49.094h-25.416l-23.0244,32.7922-23.3057-32.7922h-26.5781l35.5347,49.8964-37.4224,51.7676h26.8682l24.1484-35.3306,24.5049,35.3306h27.1592l-37.9258-52.5701Zm-462.8389,19.8201c6.583-2.8555,11.666-7.0195,15.249-12.4902,3.5811-5.4697,5.374-12.0293,5.374-19.6797,0-7.5518-1.793-14.0879-5.374-19.6064-3.583-5.519-8.666-9.7534-15.249-12.708-6.5859-2.9521-14.4287-4.4297-23.5283-4.4297h-44.0059v101.6641h23.6729v-28.4658h20.333c.3491,0,.6841-.0164,1.0298-.0206l19.7388,28.4864h25.2705l-22.6538-32.6932c.0469-.02,.0967-.0366,.1431-.0568Zm-8.5693-19.0986c-3.6807,3.0996-9.1016,4.6475-16.2666,4.6475h-19.0254v-35.292h19.0254c7.165,0,12.5859,1.5254,16.2666,4.5752,3.6787,3.0498,5.5186,7.3838,5.5186,12.998s-1.8398,9.9736-5.5186,13.0713Zm380.9463-36.7441c-5.0352-4.7432-10.917-8.3989-17.6455-10.9653-6.7314-2.5645-14.1133-3.8486-22.1484-3.8486s-15.4199,1.3071-22.1484,3.9214c-6.7305,2.6143-12.6123,6.2949-17.6455,11.0376-5.0361,4.7451-8.9326,10.2886-11.6914,16.6294-2.7598,6.3428-4.1396,13.3389-4.1396,20.9863,0,7.5518,1.3799,14.5234,4.1396,20.9141,2.7588,6.3896,6.6553,11.959,11.6914,16.7012,5.0332,4.7451,10.9395,8.4238,17.7178,11.0381,6.7764,2.6143,14.1836,3.9219,22.2217,3.9219,7.9375,0,15.2715-1.2852,22.0029-3.8486,6.7285-2.5645,12.6104-6.2207,17.6455-10.9658,5.0332-4.7422,8.9316-10.334,11.6914-16.7744,2.7598-6.4375,4.1396-13.4346,4.1396-20.9863,0-7.6475-1.3799-14.6689-4.1396-21.0586-2.7598-6.3906-6.6582-11.957-11.6914-16.7021Zm-10.3838,50.9043c-1.5977,3.9219-3.8486,7.3594-6.7539,10.3115-2.9043,2.9551-6.2695,5.2285-10.0938,6.8262-3.8262,1.5977-8.0127,2.3965-12.5625,2.3965-4.5527,0-8.7637-.7988-12.6357-2.3965-3.873-1.5977-7.2393-3.8711-10.0938-6.8262-2.8564-2.9521-5.083-6.3896-6.6807-10.3115-1.5977-3.9209-2.3965-8.3008-2.3965-13.1436s.7988-9.2227,2.3965-13.1436c1.5977-3.9219,3.8242-7.3574,6.6807-10.3115,2.8545-2.9521,6.2207-5.2285,10.0938-6.8262,3.8721-1.5977,8.083-2.3965,12.6357-2.3965,4.5498,0,8.7363,.7988,12.5625,2.3965,3.8242,1.5977,7.1895,3.874,10.0938,6.8262,2.9053,2.9541,5.1562,6.3896,6.7539,10.3115,1.5977,3.9209,2.3965,8.3027,2.3965,13.1436s-.7988,9.2227-2.3965,13.1436Zm-283.7148-63.9756l-45.167,101.6641h24.1084l9.0596-21.7852h47.0908l9.0596,21.7852h24.6904l-45.6035-101.6641h-23.2383Zm-4.5703,62.0146l16.1167-38.7549,16.1167,38.7549h-32.2334Zm168.7568-12.3447c-.8535-.3715-1.7388-.6987-2.6382-1.0056,3.9199-2.0732,7.0552-4.858,9.3911-8.3616,2.6143-3.9219,3.9219-8.5439,3.9219-13.8701,0-7.938-3.2207-14.3281-9.6582-19.1709-6.4404-4.8403-16.0488-7.2617-28.8291-7.2617h-49.6699v101.6641h52.5742c13.3623,0,23.4785-2.4443,30.3545-7.334,6.874-4.8887,10.3115-11.6914,10.3115-20.4063,0-5.9043-1.4043-10.8926-4.2119-14.959-2.8096-4.0664-6.6582-7.1641-11.5459-9.2949Zm-54.0996-31.9512h23.3828c5.7109,0,10.0938,.9688,13.1436,2.9043,3.0498,1.9385,4.5742,4.9385,4.5742,9.0049s-1.5244,7.0937-4.5742,9.0771c-3.0498,1.9854-7.4326,2.9775-13.1436,2.9775h-23.3828v-23.9639Zm41.3916,63.1768c-3.1953,2.0332-7.7949,3.0498-13.7979,3.0498h-27.5938v-25.125h27.5938c6.0029,0,10.6025,1.0166,13.7979,3.0498s4.793,5.2285,4.793,9.585c0,4.2617-1.5977,7.4072-4.793,9.4404Z" style="fill:#2a2e45;"></path><path d="M276.3871,72.8303L155.6129,3.1013c-7.1628-4.1348-16.063-4.1354-23.2258,.0006L11.6129,72.8308c-7.1628,4.136-11.6129,11.8431-11.6129,20.1139V232.4022c0,8.2719,4.4501,15.9791,11.6129,20.1139l120.7742,69.7296c3.5814,2.0685,7.5972,3.1028,11.6129,3.1028s8.0315-1.0343,11.6129-3.1028l120.7742-69.7296c7.1628-4.1348,11.6129-11.842,11.6129-20.1139V92.9448c0-8.2708-4.4501-15.9779-11.6129-20.1145Zm1.6129,159.4639c0,4.955-2.6655,9.5725-6.9569,12.05l-120.5862,69.6211c-4.2903,2.4764-9.6212,2.4786-13.9138,0L15.9569,244.3442c-4.2914-2.4775-6.9569-7.095-6.9569-12.05V93.0538c0-4.955,2.6655-9.572,6.9569-12.05L136.5431,11.3838c2.1457-1.2393,4.5507-1.8581,6.9569-1.8581s4.8112,.6194,6.9569,1.8576l120.5862,69.6205c4.2914,2.4781,6.9569,7.095,6.9569,12.05V232.2942Zm-44.4487-142.7336c-.4039-.8842-1.1321-1.5819-1.974-2.0679l-67.5774-39.0164c-2.0184-1.1636-4.6863-.7015-6.1888,1.3864-.5682,.7896-.8112,1.7695-.8112,2.7422V127.9584s-7.0305,4.0594-7.0305,4.0594c-4.3121,2.4898-9.6249,2.4899-13.9372,.0004l-7.0323-4.0598V52.605c0-.9728-.2429-1.9527-.8112-2.7422-1.5026-2.0879-4.1704-2.5501-6.1888-1.3864L54.4226,87.4927c-.8419,.4861-1.5701,1.1837-1.974,2.0679-1.072,2.3469-.1363,4.899,1.8847,6.0666l77,44.4552c3.598,2.0781,7.6323,3.1172,11.6667,3.1166,4.0343,0,8.0687-1.0391,11.6667-3.1166l77-44.4552c2.021-1.1676,2.9566-3.7197,1.8847-6.0666Zm-113.5513,32.8848l-53.4194-30.8417,53.4194-30.8417v61.6833Zm48,0V60.762l53.4194,30.8417-53.4194,30.8417Zm-49.5854,41.5405L42.0695,119.9076c-.9463-.5463-2.0513-.8221-3.1295-.6449-2.3608,.3881-3.9399,2.3762-3.9399,4.5897v77.6222c0,.9737,.2422,1.9549,.8112,2.745,1.4974,2.0789,4.1525,2.5384,6.1617,1.3785l65.0811-37.5739,6.9782,4.0286c4.3116,2.4892,6.9677,7.0895,6.9677,12.0681v9.3834l-63,36.3735c-1.392,.8031-2.25,2.2895-2.25,3.8968s.858,3.0937,2.25,3.8968l65.25,37.6721c.6965,.4021,1.4733,.6031,2.25,.6031,1.0953,0,2.1906-.3998,3.061-1.1994,.9723-.8932,1.439-2.2124,1.439-3.5327v-87.1623c0-8.2523-4.4396-15.9412-11.5854-20.0662Zm-74.4146,29.5301v-61.6839l53.4194,30.8417-53.4194,30.8422Zm76,71.0701l-53.4194-30.8422,53.4194-30.8422v61.6845ZM252.1881,121.5131c-1.4791-2.033-4.0895-2.4819-6.0662-1.3408l-75.6585,43.6819c-7.0706,4.0816-11.4634,11.6895-11.4634,19.855v87.5054c0,1.3203,.4666,2.6395,1.4389,3.5327,.8704,.7996,1.9657,1.1994,3.0611,1.1994,.7767,0,1.5535-.201,2.25-.6031l65.25-37.6721c1.392-.8031,2.25-2.2896,2.25-3.8969s-.858-3.0938-2.25-3.8969l-63-36.3735v-9.2544c0-4.9786,2.6561-9.5789,6.9677-12.0681l6.816-3.935,64.1812,37.0545c.9457,.546,2.0491,.8269,3.127,.652,2.3416-.3801,3.9079-2.3538,3.9079-4.5482V124.2527c0-.9723-.2399-1.9534-.8119-2.7396Zm-30.7688,112.2308l-53.4194,30.8422v-61.6845l53.4194,30.8422Zm22.5806-40.2278l-53.4194-30.8422,53.4194-30.8417v61.6839Z" style="fill:#f45260;"></path></g></g></svg> </a> </div> <ul class="relative hidden lg:flex lg:items-center lg:justify-center lg:gap-6 xl:gap-10"> {{-- <li><a href="#">Support</a></li>--}} </ul> <div class="flex-1 flex items-center justify-end"> <iframe src="https://github.com/sponsors/yajra/button" title="Sponsor yajra" height="35" width="116" style="border: 0;"></iframe> <x-button.secondary href="https://github.com/yajra" class="hidden lg:ml-4 lg:inline-flex"> <img src="{{ asset('img/social/github.min.svg') }}" class="mr-2" alt="github"> Github Profile </x-button.secondary> <button class="ml-2 relative w-10 h-10 inline-flex items-center justify-center p-2 text-gray-700 lg:hidden" aria-label="Toggle Menu" @click.prevent="navIsOpen = !navIsOpen" > <svg x-show="! navIsOpen" class="w-6" viewBox="0 0 28 12" fill="none" xmlns="http://www.w3.org/2000/svg"><line y1="1" x2="28" y2="1" stroke="currentColor" stroke-width="2"/><line y1="11" x2="28" y2="11" stroke="currentColor" stroke-width="2"/></svg> <svg x-show="navIsOpen" x-cloak class="absolute inset-0 mt-2.5 ml-2.5 w-5" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="1.41406" width="2" height="24" transform="rotate(-45 0 1.41406)" fill="currentColor"/><rect width="2" height="24" transform="matrix(0.707107 0.707107 0.707107 -0.707107 0.192383 16.9707)" fill="currentColor"/></svg> </button> </div> </div> </div> <div x-show="navIsOpen" class="lg:hidden" x-transition:enter="duration-150" x-transition:leave="duration-100 ease-in" x-cloak > <nav x-show="navIsOpen" x-transition.opacity x-cloak class="fixed inset-0 w-full pt-[4.2rem] z-10 pointer-events-none" > <div class="relative h-full w-full py-8 px-5 bg-white pointer-events-auto overflow-y-auto"> <ul> <li> <a class="block w-full py-2" href="https://github.com/yajra"> <img src="{{ asset('img/social/github.min.svg') }}" class="mr-2" alt="github"> Github Profile </a> </li> </ul> </div> </nav> </div> </header>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/partials/meta.blade.php
PHP
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> <meta name="csrf-token" content="{{ csrf_token() }}"> @isset($title) <title>{{ $title }} {{ isset($package) ? '- '. package_to_title($package) : '' }} - {{ config('app.name') }}</title> @else <title>{{ config('app.name') }}</title> @endisset @if (isset($canonical)) <link rel="canonical" href="{{ url($canonical) }}"/> @endif <!-- Primary Meta Tags --> <meta name="title" content="YajraBox - Arjay Angeles (yajra) open source projects"> <meta name="description" content="Arjay Angeles, also known as yajra, is an open source software advocate and a Laravel enthusiast. He is the author of many open source projects and a contributor to the Laravel community."> <!-- Open Graph / Facebook --> <meta property="og:type" content="website"> <meta property="og:url" content="{{ asset('/') }}"> <meta property="og:title" content="YajraBox - Arjay Angeles (yajra) open source projects"> <meta property="og:description" content="Arjay Angeles, also known as yajra, is an open source software advocate and a Laravel enthusiast. He is the author of many open source projects and a contributor to the Laravel community."> <meta property="og:image" content="{{ asset('img/og-image.jpg') }}"> <!-- Twitter --> <meta property="twitter:card" content="summary_large_image"> <meta property="twitter:url" content="{{ asset('/') }}"> <meta property="twitter:title" content="YajraBox - Arjay Angeles (yajra) open source projects"> <meta property="twitter:description" content="Arjay Angeles, also known as yajra, is an open source software advocate and a Laravel enthusiast. He is the author of many open source projects and a contributor to the Laravel community."> <meta property="twitter:image" content="{{ asset('img/og-image.jpg') }}"> <!-- Favicon --> <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('img/favicon/apple-touch-icon.png') }}"> <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('img/favicon/favicon-32x32.png') }}"> <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('img/favicon/favicon-16x16.png') }}"> <link rel="manifest" href="{{ asset('img/favicon/site.webmanifest') }}"> <link rel="mask-icon" href="{{ asset('img/favicon/safari-pinned-tab.svg') }}" color="#ff2d20"> <link rel="shortcut icon" href="{{ asset('img/favicon/favicon.ico') }}"> <meta name="msapplication-TileColor" content="#ff2d20"> <meta name="msapplication-config" content="{{ asset('img/favicon/browserconfig.xml') }}"> <meta name="theme-color" content="#ffffff"> <meta name="color-scheme" content="light">
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/partials/theme.blade.php
PHP
<script> window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => { if (localStorage.theme === 'system') { if (e.matches) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } } updateThemeAndSchemeColor(); }); function updateTheme() { if (!('theme' in localStorage)) { localStorage.theme = 'system'; } switch (localStorage.theme) { case 'system': if (window.matchMedia('(prefers-color-scheme: dark)').matches) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } document.documentElement.setAttribute('color-theme', 'system'); break; case 'dark': document.documentElement.classList.add('dark'); document.documentElement.setAttribute('color-theme', 'dark'); break; case 'light': document.documentElement.classList.remove('dark'); document.documentElement.setAttribute('color-theme', 'light'); break; } updateThemeAndSchemeColor(); } function updateThemeAndSchemeColor() { if (! alwaysLightMode) { if (document.documentElement.classList.contains('dark')) { document.querySelector('meta[name="color-scheme"]').setAttribute('content', 'dark'); document.querySelector('meta[name="theme-color"]').setAttribute('content', '#171923'); return; } document.querySelector('meta[name="color-scheme"]').setAttribute('content', 'light'); document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff'); } } updateTheme(); </script>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
resources/views/welcome.blade.php
PHP
<!DOCTYPE html> <html lang="en"> <head> @include('partials.meta') <!-- Fonts --> <link rel="stylesheet" href="https://use.typekit.net/ins2wgm.css"> <!-- Scripts --> @vite(['resources/css/app.css', 'resources/css/docs.css']) </head> <body x-data="{navIsOpen: false, searchIsOpen: false, search: ''}" class="language-php h-full w-full font-sans text-gray-900 antialiased" > <div class="absolute top-0 w-full"> @include('partials.header') </div> <div class="relative overflow-hidden py-24 lg:pt-48"> <span class="hidden absolute bg-radial-gradient opacity-[.15] pointer-events-none lg:inline-flex right-[-20%] top-0 w-[640px] h-[640px]"></span> <div class="relative max-w-screen-xl mx-auto px-5 pb-24"> <h1 class="text-4xl font-bold max-w-4xl mx-auto text-center md:text-5xl">Open Source Projects</h1> <div class="mt-14 grid gap-10 sm:grid-cols-2 lg:grid-cols-3"> @foreach($projects as $project) <x-project :project="$project"/> @endforeach </div> </div> </div> @include('partials.footer') @include('partials.analytics') </body> </html>
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
routes/api.php
PHP
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; Route::get('/user', function (Request $request) { return $request->user(); })->middleware('auth:sanctum');
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
routes/console.php
PHP
<?php use Illuminate\Support\Facades\Schedule; Schedule::command('sitemap:generate')->weekly();
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
routes/web.php
PHP
<?php use App\Documentation; use App\Http\Controllers\DocsController; use Illuminate\Support\Facades\Route; use Illuminate\Support\Str; Route::domain('datatables.yajrabox.com')->get('/', function () { return redirect('https://github.com/yajra/laravel-datatables-demo'); }); Route::get('/', function () { $repositories = [ 'laravel-datatables', 'laravel-datatables-html', 'laravel-datatables-buttons', 'laravel-datatables-editor', 'laravel-datatables-fractal', 'laravel-datatables-assets', 'laravel-datatables-vite', 'laravel-datatables-scout', 'laravel-datatables-ui', 'laravel-oci8', 'laravel-acl', 'laravel-auditable', 'laravel-address', 'datatables', 'zillow', 'pdo-via-oci8', 'yajrabox.com', 'homestead-oracle', 'laravel-admin-template', ]; $projects = collect($repositories) ->map(function ($repo) { return github($repo); }) ->map(function ($project) { $projectName = $project['name']; $section = null; if (Str::contains(strtolower($project['name']), 'datatables-')) { $projectName = 'laravel-datatables'; $section = Str::after($project['name'], 'datatables-').'-installation'; } if (Str::contains(strtolower($project['name']), 'oci8')) { $projectName = 'laravel-oci8'; } $project['doc'] = $projectName; if (! Documentation::exists($projectName)) { $project['doc_url'] = $project['html_url']; return $project; } $project['section'] = '/'.($section ?? ''); $project['doc_url'] = route('docs.version', [ 'package' => $projectName, 'version' => Documentation::getDefaultVersion($projectName), ]).$project['section']; return $project; }) ->map(function ($project) { $project['versions'] = array_keys(Documentation::getDocVersions($project['doc'])); return $project; }) ->sortBy('stargazers_count') ->reverse(); return view('welcome')->with('title', 'Welcome')->with('projects', $projects); }); Route::get('docs/{package?}', [DocsController::class, 'showRootPage'])->name('docs.show-root-page'); Route::get('docs/{package}/{version}/index.json', [DocsController::class, 'index']); Route::get('docs/{package}/{version}/{page?}', [DocsController::class, 'show'])->name('docs.version'); Route::middleware([ 'auth:sanctum', config('jetstream.auth_session'), 'verified', ])->group(function () { Route::get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); });
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tailwind.config.js
JavaScript
import defaultTheme from 'tailwindcss/defaultTheme'; import forms from '@tailwindcss/forms'; import typography from '@tailwindcss/typography'; /** @type {import('tailwindcss').Config} */ export default { important: true, content: [ './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/laravel/jetstream/**/*.blade.php', './**/*.css', './**/*.blade.php', './**/*.js', './**/*.md', ], dark: 'class', theme: { extend: { fontSize: { '6.5xl': ['4rem', { lineHeight: '1' }], }, maxWidth: { xxs: '16rem', }, spacing: { 224: '56rem', }, keyframes: { cube: { '50%': { transform: 'translateY(1rem)' }, }, }, animation: { cube: 'cube 6s ease-in-out infinite', } }, boxShadow: { none: '0 0 0 0 rgba(0, 0, 0, 0)', sm: `0 10px 15px -8px rgba(9, 9, 16, .1)`, lg: '0 20px 30px -16px rgba(9, 9, 16, .2)', xl: '0 10px 20px 0 rgba(9, 9, 16, .15)', }, colors: { transparent: 'transparent', black: '#000', white: '#fff', gray: { 900: '#232323', 800: '#222222', 700: '#565454', 600: '#777777', 500: '#93939e', 400: '#B5B5BD', 300: '#d7d7dc', 200: '#e7e8f2', 100: '#f5f5fa', 50: '#fbfbfd', }, dark: { 900: '#0C0D12', 800: '#12141C', 700: '#171923', 600: '#252A37', 500: '#394056', }, red: { 900: '#981d15', 800: '#ca473f', 700: '#ec0e00', 600: '#EB4432', 500: '#F9322C', }, orange: { 600: '#f49d37', }, blue: { 800: '#055472', 600: '#0782b1', 500: '#0AB2F5', }, green: { 600: '#669900', 500: '#8FD600', }, purple: { 600: '#8338ec', }, vapor: '#25c4f2', forge: '#1EB786', envoyer: '#F56857', horizon: '#8C6ED3', nova: '#4099DE', echo: '#4AB2B0', lumen: '#F6AE7A', homestead: '#E7801C', spark: '#9B8BFB', valet: '#5E47CD', mix: '#294BA5', cashier: '#91D630', dusk: '#BB358B', passport: '#7DD9F2', scout: '#F55D5C', socialite: '#E394BA', telescope: '#4040C8', tinker: '#EC7658', jetstream: '#6875f5', sail: '#38BDF7', sanctum: '#1D5873', octane: '#CA3A31', breeze: '#F3C14B', pint: '#ffd000', }, fontFamily: { sans: ['scandia-web', ...defaultTheme.fontFamily.sans], mono: ['source-code-pro', ...defaultTheme.fontFamily.mono], }, }, plugins: [ typography, ], };
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/ApiTokenPermissionsTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Str; use Laravel\Jetstream\Features; use Laravel\Jetstream\Http\Livewire\ApiTokenManager; use Livewire\Livewire; use Tests\TestCase; class ApiTokenPermissionsTest extends TestCase { use RefreshDatabase; public function test_api_token_permissions_can_be_updated(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); $token = $user->tokens()->create([ 'name' => 'Test Token', 'token' => Str::random(40), 'abilities' => ['create', 'read'], ]); Livewire::test(ApiTokenManager::class) ->set(['managingPermissionsFor' => $token]) ->set(['updateApiTokenForm' => [ 'permissions' => [ 'delete', 'missing-permission', ], ]]) ->call('updateApiToken'); $this->assertTrue($user->fresh()->tokens->first()->can('delete')); $this->assertFalse($user->fresh()->tokens->first()->can('read')); $this->assertFalse($user->fresh()->tokens->first()->can('missing-permission')); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/AuthenticationTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; class AuthenticationTest extends TestCase { use RefreshDatabase; public function test_login_screen_can_be_rendered(): void { $response = $this->get('/login'); $response->assertStatus(200); } public function test_users_can_authenticate_using_the_login_screen(): void { $user = User::factory()->create(); $response = $this->post('/login', [ 'email' => $user->email, 'password' => 'password', ]); $this->assertAuthenticated(); $response->assertRedirect(route('dashboard', absolute: false)); } public function test_users_can_not_authenticate_with_invalid_password(): void { $user = User::factory()->create(); $this->post('/login', [ 'email' => $user->email, 'password' => 'wrong-password', ]); $this->assertGuest(); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/BrowserSessionsTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Laravel\Jetstream\Http\Livewire\LogoutOtherBrowserSessionsForm; use Livewire\Livewire; use Tests\TestCase; class BrowserSessionsTest extends TestCase { use RefreshDatabase; public function test_other_browser_sessions_can_be_logged_out(): void { $this->actingAs(User::factory()->create()); Livewire::test(LogoutOtherBrowserSessionsForm::class) ->set('password', 'password') ->call('logoutOtherBrowserSessions') ->assertSuccessful(); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/CreateApiTokenTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Laravel\Jetstream\Features; use Laravel\Jetstream\Http\Livewire\ApiTokenManager; use Livewire\Livewire; use Tests\TestCase; class CreateApiTokenTest extends TestCase { use RefreshDatabase; public function test_api_tokens_can_be_created(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); Livewire::test(ApiTokenManager::class) ->set(['createApiTokenForm' => [ 'name' => 'Test Token', 'permissions' => [ 'read', 'update', ], ]]) ->call('createApiToken'); $this->assertCount(1, $user->fresh()->tokens); $this->assertEquals('Test Token', $user->fresh()->tokens->first()->name); $this->assertTrue($user->fresh()->tokens->first()->can('read')); $this->assertFalse($user->fresh()->tokens->first()->can('delete')); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/DeleteAccountTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Laravel\Jetstream\Features; use Laravel\Jetstream\Http\Livewire\DeleteUserForm; use Livewire\Livewire; use Tests\TestCase; class DeleteAccountTest extends TestCase { use RefreshDatabase; public function test_user_accounts_can_be_deleted(): void { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); } $this->actingAs($user = User::factory()->create()); $component = Livewire::test(DeleteUserForm::class) ->set('password', 'password') ->call('deleteUser'); $this->assertNull($user->fresh()); } public function test_correct_password_must_be_provided_before_account_can_be_deleted(): void { if (! Features::hasAccountDeletionFeatures()) { $this->markTestSkipped('Account deletion is not enabled.'); } $this->actingAs($user = User::factory()->create()); Livewire::test(DeleteUserForm::class) ->set('password', 'wrong-password') ->call('deleteUser') ->assertHasErrors(['password']); $this->assertNotNull($user->fresh()); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/DeleteApiTokenTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Str; use Laravel\Jetstream\Features; use Laravel\Jetstream\Http\Livewire\ApiTokenManager; use Livewire\Livewire; use Tests\TestCase; class DeleteApiTokenTest extends TestCase { use RefreshDatabase; public function test_api_tokens_can_be_deleted(): void { if (! Features::hasApiFeatures()) { $this->markTestSkipped('API support is not enabled.'); } $this->actingAs($user = User::factory()->withPersonalTeam()->create()); $token = $user->tokens()->create([ 'name' => 'Test Token', 'token' => Str::random(40), 'abilities' => ['create', 'read'], ]); Livewire::test(ApiTokenManager::class) ->set(['apiTokenIdBeingDeleted' => $token->id]) ->call('deleteApiToken'); $this->assertCount(0, $user->fresh()->tokens); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/EmailVerificationTest.php
PHP
<?php namespace Tests\Feature; use App\Models\User; use Illuminate\Auth\Events\Verified; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\URL; use Laravel\Fortify\Features; use Tests\TestCase; class EmailVerificationTest extends TestCase { use RefreshDatabase; public function test_email_verification_screen_can_be_rendered(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); } $user = User::factory()->withPersonalTeam()->unverified()->create(); $response = $this->actingAs($user)->get('/email/verify'); $response->assertStatus(200); } public function test_email_can_be_verified(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); } Event::fake(); $user = User::factory()->unverified()->create(); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1($user->email)] ); $response = $this->actingAs($user)->get($verificationUrl); Event::assertDispatched(Verified::class); $this->assertTrue($user->fresh()->hasVerifiedEmail()); $response->assertRedirect(route('dashboard', absolute: false).'?verified=1'); } public function test_email_can_not_verified_with_invalid_hash(): void { if (! Features::enabled(Features::emailVerification())) { $this->markTestSkipped('Email verification not enabled.'); } $user = User::factory()->unverified()->create(); $verificationUrl = URL::temporarySignedRoute( 'verification.verify', now()->addMinutes(60), ['id' => $user->id, 'hash' => sha1('wrong-email')] ); $this->actingAs($user)->get($verificationUrl); $this->assertFalse($user->fresh()->hasVerifiedEmail()); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.
tests/Feature/ExampleTest.php
PHP
<?php namespace Tests\Feature; // use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; class ExampleTest extends TestCase { /** * A basic test example. */ public function test_the_application_returns_a_successful_response(): void { $response = $this->get('/'); $response->assertStatus(200); } }
yajra/yajrabox.com
10
Source code of yajrabox.com website.
PHP
yajra
Arjay Angeles
ObjectBright, Inc.