jake83 liked a comment+100 XP
4mos ago
Laravel From Scratch (2026 Edition): Ep 25, Tailwind Theme Setup And Initial UI
Color theme for those looking to copy:
--color-background: oklch(0.12 0 0);
--color-foreground: oklch(0.95 0 0);
--color-card: oklch(0.16 0 0);
--color-primary: oklch(0.65 0.15 160);
--color-primary-foreground: oklch(0.12 0 0);
--color-border: oklch(0.24 0 0);
--color-input: oklch(0.24 0 0);
--color-muted-foreground: oklch(0.6 0 0);
jake83 liked a comment+100 XP
4mos ago
Laravel From Scratch (2026 Edition): Ep 23, Final Project Setup
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector;
use Rector\TypeDeclaration\Rector\Closure\AddClosureVoidReturnTypeWhereNoReturnRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use RectorLaravel\Set\LaravelSetProvider;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/bootstrap',
__DIR__.'/config',
__DIR__.'/public',
__DIR__.'/resources',
__DIR__.'/routes',
__DIR__.'/tests',
])
->withSkip([
__DIR__.'/bootstrap/cache',
__DIR__.'/storage',
__DIR__.'/vendor',
AddClosureVoidReturnTypeWhereNoReturnRector::class,
ReturnTypeFromStrictTypedCallRector::class,
ReturnUnionTypeRector::class,
DeclareStrictTypesRector::class => [
__DIR__.'/resources/views',
],
AddArrowFunctionReturnTypeRector::class,
])
->withPhpSets()
->withSetProviders(LaravelSetProvider::class)
->withImportNames()
->withComposerBased(laravel: true)
->withPreparedSets(
deadCode: true,
codeQuality: true,
typeDeclarations: true,
privatization: true,
earlyReturn: true,
)
->withRules([
DeclareStrictTypesRector::class,
]);
jake83 wrote a comment+100 XP
5mos ago
Laravel From Scratch (2026 Edition): Ep 12, Form Request Classes
At 7:28 I assume you meant to remove a validation rule, however there isn't one currently in the update method. Instead you remove the update on the Idea model. Presumably this is a mistake? Great tutorial so far btw :)
jake83 liked a comment+100 XP
5mos ago
Crafting Vue Modals
: Ep 12, E2E Testing With Laravel Dusk
There might be some differences in environment, but when I changed ->waitForText('Editing User') to ->waitFor('@modal-content') as shown around 7:30 in the video, my test started failing like this:
FAILED Tests\Browser\ExampleTest > it can open a modal and close it
Actual URL [http://laracasts-modal.test/users/50/edit] does not equal expected URL [http://laracasts-modal.test/users].
Failed asserting that 'http://laracasts-modal.test/users/50/edit' matches PCRE pattern "/^http:\/\/laracasts\-modal\.test\/users$/u".