Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

myrhorodskyi's avatar

Eloquent performance extremely slow when cast to JsonResource

I see to many calls of Illuminate\Database\Eloquent\Model::getCasts Looks like this functions calls each time when access to any attributes and never cached. SPX_ENABLED=1 SPX_AUTO_START=0 php artisan tinker $devices = Device::query()->limit(157)->get(); Auth::login(SystemUser::first()); $x = DeviceListResource::collection($devices); $x->resolve(); //Avoid n+1 request

myrhorodskyi's avatar
myrhorodskyi's avatar myrhorodsk...1yr agoEloquent
0
1
veptune's avatar

Livewire component not received the event sent by Livewire.dispatchTo

Hello all, I tried to dispatch an event to a livewire component, but the event was not received. In my app.js I have : window.Echo.channel('channel-place')     .listen('.PlaceAddedEvent', (e) => {         console.log('PlaceAddedEvent received:', e); // Vérifiez si ce message apparaît dans la console du navigateur             if (typeof window.Livewire !== 'undefined') {    

veptune's avatar
veptune's avatar veptune1yr agoLivewire
3
1
Last reply by veptune 1yr ago
Kaluna's avatar

Laravel Reverb, and the queue...

Hello everyone. I have a laravel app, running laravel echo. I'm hoping to create some functionality where I can set a "band" as being "on stage". It took ages to get it to work on production, and I have a daemon running the queue, and when I add the daemon, I have left Run Worker Using queue:work checked. When I test the functionality, nothing happens—but I

Kaluna's avatar
Kaluna's avatar LaryAI1yr agoForge
2
2
Last reply by LaryAI 1yr ago
Nolansen's avatar

Inertia SSR - Client side hydration

Hi, I would like to ask what does it mean https://inertiajs.com/server-side-rendering that "Client side hydration" part. I was just trying to figure out what changes i can notice in my app, how can i test whats happening, what i can see with that update of app.js and what i can see without updating it. Because even i didnt update that app.js file it seems my SSR was

Nolansen's avatar
Nolansen's avatar Nolansen1yr agoInertia
0
1
birdietorerik's avatar

Deadlock error

Hi! See in my laravel log, this error: 2024-09-27 08:02:39] production.ERROR: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction (Connection: mysql, SQL: delete from `unprocessed_gps_data` where `id` in (706698, 706699, 706700, 706701, 706702, 706703, 706704, 706705, 706706)) {"exception":"[object] (Ill

birdietorerik's avatar
birdietorerik's avatar Tray21yr agoLaravel
2
1
Last reply by Tray2 1yr ago
UniqueHope's avatar

Tests emptying database after installing Pest

So tried to install pest to my docker laravel setup and what I ended up doing running was: sail composer require pestphp/pest --dev --with-all-dependencies and then just to be safe I also did: sail artisan pest:install But now when I run the old tests something is deleting the values on all the tables. The simplest new test is fine: <?php namespace Tests\Unit; beforeEach(f

UniqueHope's avatar
UniqueHope's avatar Tray21yr agoLaravel
3
1
Last reply by Tray2 1yr ago
foxdevuz's avatar

Schedule is working to slow

I was using custom cronjob (with while true) to make my app work properly and I decided to change it to laravel schedule and I did it, here's the console.php: <?php use App\Http\Controllers\ShareTestController; Schedule::call(function () { $test = new ShareTestController(); $test->timeUpGroup(); })->everySecond(); Schedule::call(function () { $test = new

foxdevuz's avatar
foxdevuz's avatar Snapey1yr agoLaravel
1
1
Last reply by Snapey 1yr ago
PetroGromovo's avatar

How sending custom messages with bugsnag-laravel to assign custom tags for later filtering?

I have added "bugsnag/bugsnag-laravel" v2.28 into my Laravel 11 / Livewire 3.5 app. I am also reading the docs here: https://app.bugsnag.com/accounts/myaccount/projects/myproject/integrate I did not find if sending messages at Bugsnag with code like Route::get('/check-bugsnag', function () { Bugsnag::notifyException(new RuntimeException("check-bugsnag Test er

PetroGromovo's avatar
PetroGromovo's avatar PetroGromo...1yr agoGeneral
0
1
Synchro's avatar

Log::spy with channels

I have a FormRequest that logs validation error details: protected function failedValidation(Validator $validator) { Log::channel('logistics')->info('Validation failed. Submitted serials:', [ 'contents' => $this->input('contents'), ]); ... In my test: Log::spy(); $this->postJson( 'logistics/delivery',

Synchro's avatar
Synchro's avatar Synchro1yr agoTesting
2
1
Last reply by Synchro 1yr ago
AlexSteele's avatar

Livewire, Security, and UUIDs (oh my!)

Hello All! I am working on a test server at the moment, and I am working towards a safer app. It was suggested to me by a robot (not lary ;-) ) that gates, validation rules, and assuring certain actions (edit or delete) are gates based on permissions - is a good approach but could be stronger. two points are: my ids are guessable , and, internal ID references - if exposed, e

AlexSteele's avatar
AlexSteele's avatar AlexSteele1yr agoLivewire
3
1
Last reply by AlexSteele 1yr ago
phayes0289's avatar

Two Dynamic columns in DataTables Is Not Working.

I have been fighting with this code all day and cannot figure out what I am doing wrong. The page is supposed to load a datatable with fire hydrant data. There are two dynamic columns. One of the dynamic columns displays a line of test based on data in a related table. The other builds a button that links to the next inspection form. This is my blade page {{-- Template Name:

phayes0289's avatar
phayes0289's avatar LaryAI1yr agoJavaScript
1
1
Last reply by LaryAI 1yr ago
anjanesh's avatar

Fake Email Send/Recieve App

Is there a desktop app to receive mails locally and not send it to the real email server ? I need to test out a few notifications without changing code to use fake email ids.

anjanesh's avatar
anjanesh's avatar amitsolank...1yr agoTesting
3
1
Last reply by amitsolanki24_ 1yr ago
thesimons's avatar

How to debug a file upload to S3

Hello, I have create the following function to test out the upload form: public function store(Request $request) { $file = $request->file('file'); $name = MediasourceNameGenerator::generateUniqueName(); $path = $file->storeAs('mediasources', $name, 's3'); echo $path; } the form submission works perfectly. The only issue seems to

thesimons's avatar
thesimons's avatar thesimons1yr agoLaravel
1
2
Last reply by thesimons 1yr ago
jcc5018's avatar

Filament dependent dropdowns not displaying the old record

I am trying to get a dependent dropdown to display correctly for my article type categories. This set up current displays the correct child category for the chosen parent category, and saves a record in the database, but when I refresh, that record is not populated, and updating creates a new record instead of updating the existing category. An article can only have one categor

jcc5018's avatar
jcc5018's avatar jcc50181yr agoFilament
2
1
Last reply by jcc5018 1yr ago
RogerManich's avatar

Where to place the method getBalance

HI, I am playing with Laravel and I defined Two models. One represents a bankaccount and the other represent the transactions done in bank accounts. If I want to define a method to calculate balance my first thought is doing into Model class but when I test it in Tinker I receive an error "balance must return a relationship instance.". I understand it is my bad. Shoul

RogerManich's avatar
RogerManich's avatar RogerManic...1yr agoEloquent
2
1
Last reply by RogerManich 1yr ago
mwangi's avatar

Mock Process Facade side-effects

Hey Artisans, how do you mock when a Process run using Process Facade has side effects. E.g scp downloads files and now you want to assert that a method returns correct downloaded files. I already have \Illuminate\Support\Facades\Process::fake(). I have attempted the following but none feels "Laravel-y" to me (I know we are we spoilt): Swap the implementation from th

mwangi's avatar
mwangi's avatar mwangi1yr agoTesting
0
2
cameronscott137's avatar

Adding a CNAME record to a customer subdomain

My Laravel app allows customers to create their own subdomains using the framework's built-in subdomain routing: Route::domain('{domain}.example.com')->group(function () { Route::get('/user/{id}', function (string $account, string $id) { // ... }); }); I would also like allow my customers to add CNAMEs to use their own custom domains, e.g. "initech.com&

cameronscott137's avatar
cameronscott137's avatar LaryAI1yr agoLaravel
1
9
Last reply by LaryAI 1yr ago
TotoalNormie's avatar

Call to undefined method App\Models\User::token()

I am testing my auth api that is built on Laravel Sanctrum. In the test i am using Sanctrum::actingAs method, and it gives this error: Call to undefined method App\Models\User::token() By the way, I already have HasApiTokens in my User model. I have tried a lot, but still haven't figured it out. Your help would be very appreciated. For refference, this is the Pest test: it('lo

TotoalNormie's avatar
TotoalNormie's avatar shaungbhon...1yr agoLaravel
8
1
Last reply by shaungbhone 1yr ago
crawlingdeveloper's avatar

Logout not working

I am new to Laravel I am busy creating an API and I have the registration working and the login working. I am using Postman to test. I cannot get the logout to work and I keep getting an error in the postman console telling me: Route [login] not defined. So I presume Laravel is routing you to the web based login route after logging out, but since this is an api there is no web

crawlingdeveloper's avatar
crawlingdeveloper's avatar crawlingde...1yr agoLaravel
7
1
Last reply by crawlingdeveloper 1yr ago
suteam's avatar

Check multiple exception message

Hi, I have this test where I want to check with two exception message. I have this test, but I am not sure how to extend! /** @test */ public function it_throws_exception(): void { $this->expectException(ModelNotFoundException::class); $this->expectException('Message A'); // Now my validation will through a seprate exception also with a message // e.g.

suteam's avatar
suteam's avatar suteam1yr agoTesting
4
1
Last reply by suteam 1yr ago
Garet's avatar

Naming convention for set of validation request rules

Hello there, As you probably know, custom validation rules are by default stored in \app\Rules\ I am allowing a user to upload a file and the file must pass certain validations. However, I also allow the user to zip the file into an archive and upload the archived zip file. So I created a set of validation rules which extract the files from the zip archive, and then test them

Garet's avatar
Garet's avatar aleahy1yr agoLaravel
1
1
Last reply by aleahy 1yr ago
jorritidsardi's avatar

Multi-threaded mutation testing

Hi, I am trying to use Infection on a Laravel 10 codebase and am running into issues when running Infection with more than 1 thread. Running it single threaded is not ideal as it takes nearly 20 minutes to complete. Infection does run with multiple threads, but it reports a much higher MSI score then single threaded. My own debugging of these issues point me to the database bei

jorritidsardi's avatar
jorritidsardi's avatar jorritidsa...1yr agoTesting
0
1
ignaciodev's avatar

Testing presence channels in Laravel 11/Reverb?

I am using Laravel 11 and Reverb broadcasting. I have a custom guard called 'video-call', which uses a Participant model. Auth config: 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'video-call' => [ 'driver' => 'session', 'provider' => 'participants',

ignaciodev's avatar
ignaciodev's avatar ignaciodev1yr agoLaravel
2
1
Last reply by ignaciodev 1yr ago
cartoonclouds's avatar

Mocking Static Methods on Service Providers

If I were to use DI to get an instance of a Service Provider (in a Controller), but then call static methods on it, can those be intercepted when mocked in unit tests? My guess is still no. I'm sure a simple question, I'm just not in a position to test this out right now. Thanks.

cartoonclouds's avatar
cartoonclouds's avatar aleahy1yr agoLaravel
2
1
Last reply by aleahy 1yr ago
ignaaaam's avatar

Trying to render a {{ $slot }} on app.blade but getting undefined everytime

Hello I made a new project to test this because i'm having problems trying to render the blade/livewire components with the $slot on the app.blade.php I have this app.blade.php in /resources/views/components/layouts <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"&g

ignaaaam's avatar
ignaaaam's avatar ignaaaam1yr agoLaravel
6
1
Last reply by ignaaaam 1yr ago
Napo7's avatar

New Laravel 11 project : missing PEST !?

Hi I've heard that PEST should now be included in all new laravel 11 projects (according to the docs) Just installed a new laravel 11 project (with laravel new my-project). CD into it, make a test with php artisan make:test --pest NewTest then run php artisan test, and I get an error Call to undefined function test(). Seems phpunit is still used to run the tests ! Moreover, the

Napo7's avatar
Napo7's avatar PhilG1yr agoTesting
3
32
Last reply by PhilG 1yr ago
filipescaglia's avatar

Laravel 11 Sanctum SPA logout issues

Can someone for the love of god help me? I've already wasted days trying to solve this... I'm trying to test the logout of my app but it simple does not works. My LogouTest.php <?php use App\Models\User; use function Pest\Laravel\{actingAs, assertGuest, getJson, postJson}; it('should be able to logout', function () { $user = User::factory()->create(); actingAs(

filipescaglia's avatar
filipescaglia's avatar jlrdw1yr agoLaravel
3
1
Last reply by jlrdw 1yr ago
Rrrob's avatar

Reverb stuck on port 5173

Hi I'm new to laravel so please forgive my ignorance, i've spent the past two weeks trying to understand enough to at least ask a question that is relevant to my problem! I've built a demo project and tried to add reverb but couldn't get it to work, I was originally using a cli sail command which set up docker containers in docker, but it seemed from reading that I needed it to

Rrrob's avatar
Rrrob's avatar Rrrob1yr agoReverb
4
1
Last reply by Rrrob 1yr ago
vincent15000's avatar

Testing a middleware checks the IP address

Hello, I need to test this middleware. Something to know : I have added an ip_address field in the personal_access_tokens table. public function handle(Request $request, Closure $next): Response { $user = $request->user(); if (!$user) { throw new AuthenticationException('Unauthenticated.'); } $current_ip_address = $request->ip(); if ($user-&

vincent15000's avatar
vincent15000's avatar tykus1yr agoTesting
5
1
Last reply by tykus 1yr ago
smanes's avatar

Perplexing issue with Laravel 5.8 and PostgreSQL 16.4

I have a Laravel application I built several years ago on Ubuntu 18.04 LTS. I want to upgrade it to the current 24.04.1. Because I don't trust Ubuntu's upgrade process to work across several versions I created a 24.04 install on a fresh drive, mounted it and copied critical stuff from the production drive to it. When everything works I'll clone it back to the ($$) SSD drive. Ev

smanes's avatar
smanes's avatar smanes1yr agoLaravel
5
1
Last reply by smanes 1yr ago
muuucho's avatar

Can switch language, but language string defaults to english

When I visit my login page with the extra code below, I can toggle the language links between english and swedish as expected, and {{ Session::get('locale') }} is toogling, but the english translation of {{ __('x') }} always show: "en:x" while I expect it to toggle to "sv.x". What is wrong? config/app.php: 'locale' => 'en', 'available_locales' => ['E

muuucho's avatar
muuucho's avatar LaryAI1yr agoLaravel
1
1
Last reply by LaryAI 1yr ago
CrastyCrap's avatar

Firebase return code 503

I am trying to send otp via nuxt using firebase but i am getting this error on using non test phone number { "error": { "code": 503, "message": "Error code: 39", "errors": [ { "message": "Error code: 39", "domain": "global", "reason": &

CrastyCrap's avatar
CrastyCrap's avatar LaryAI1yr agoJavaScript
1
10
Last reply by LaryAI 1yr ago
gnowak's avatar

How to debug mail event error upon Laravel Upgrade?

I am using Laravel 11 which has been upgraded from Laravel 10 with Laravel Breeze. When executing the event: event(new Registered($user)); two email verification mails are sent when User model implements MustVerifyEmail upon user registration. Any ideas how to debug this further? The project is currently stuck at laravel/framework v11.8.0. I can see that this file vendor/larave

gnowak's avatar
gnowak's avatar Snapey1yr agoLaravel
3
1
Last reply by Snapey 1yr ago
RicardoAbel's avatar

Laravel 11, 419 Page Expired

Im using Laravel 11 with Postman to test my API. im planning to use VueJS later. I created a Authentication Controller, and im using MySQL database, I also migrated everything (Laravel 11 migrations) Now when I send a request to my route which is /register from postman I get 419 page expired. use Illuminate\Foundation\Application; use Illuminate\Foundation\Configurati

RicardoAbel's avatar
RicardoAbel's avatar Snapey1yr agoLaravel
1
1
Last reply by Snapey 1yr ago
boradatti's avatar

Herd vanity domain not passing oAuth validation

I'm trying to locally test Google oAuth, but Google won't let me generate credentials because it's not happy with the domain name: 🔴 Invalid Redirect: must end with a public top-level domain (such as .com or .org). 🔴 Invalid Redirect: must use a domain that is a valid top private domain. It doesn't complain if I use a localhost domain, so I could use that, but I don't know wh

boradatti's avatar
boradatti's avatar MegamindAm...1mo agoLaravel
4
1
Last reply by MegamindAme 1mo ago
KarlHill69's avatar

No tests executed

Hello, I want to run a test with the full path, but getting this error. Any suggestion? I have a phpunit feature test that I want to run, but I cannot see it's running. vendor/bin/phpunit --filter Feature\FooTest PHPUnit 10.5.30 by Sebastian Bergmann and contributors. Runtime: PHP 8.3.9 There was 1 PHPUnit test runner deprecation: No tests executed!

KarlHill69's avatar
KarlHill69's avatar KarlHill691yr agoTesting
3
1
Last reply by KarlHill69 1yr ago
mhdev's avatar

Livewire Testing Error

Hello, I'm starting to develop a web application using Laravel Livewire (Laravel 11.21, Livewire 3.5.6). Haven't had any issues creating the Livewire components and rendering them onto my pages, however I'm attempting to write some unit tests to verify my functionality but seem to keep running into an error where my component is returning a 404. My setup; In my web.php file: Ro

mhdev's avatar
mhdev's avatar shez19839mos agoLivewire
1
1
Last reply by shez1983 9mos ago
JackJones's avatar

Injecting dependencies for validation testing

If I inject a GeneralSettings class into the rules method of a validation class: public function rules(GeneralSettings $settings): array { $countries = $settings->countries; My test looks like: protected function validate(array $data) { $request = new UsersStoreRequest(); return Validator::make($data, $request->rules()); } But

JackJones's avatar
JackJones's avatar JackJones1yr agoTesting
2
1
Last reply by JackJones 1yr ago
atryknaav's avatar

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'dataset') with Inertia and Typescript

I'm trying to deploy my test project for a company on Heroku. I had a bunch of problems with it, and I fixed them, but the current one still persists and there's nothing that helps me on the web. My site works fine with localhost, but everything I get on the Heroku version is a white screen with @routes @livewireStyles @inertiaHead @inertia as the only text content on it. In th

atryknaav's avatar
atryknaav's avatar gych1yr agoInertia
5
1
Last reply by gych 1yr ago
lifesound's avatar

Laravel 9 invalid cred

I have an old Laravel 9 project that now gives invalid credentials suddenly the user is in the db I see it I did not change anything <?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option contro

lifesound's avatar
lifesound's avatar lifesound1yr agoLaravel
11
1
Last reply by lifesound 1yr ago
hadees-ahmed's avatar

SAVEPOINT trans2 does not exist (Database transactions traite)

In certain tests, the application code initiates a database transaction (e.g., DB::beginTransaction()), but since the DatabaseTransactions trait has already started a transaction for the test, this results in a nested transaction scenario. MySQL, which I'm using as the database, does not natively support true nested transactions. Instead, it uses savepoints to simulate this beh

hadees-ahmed's avatar
hadees-ahmed's avatar hadees-ahm...1yr agoTesting
2
1
Last reply by hadees-ahmed 1yr ago
fahdshaykh's avatar

Email is not sending

giving error: Trying to access array offset on value of type null my controller function // Validate the request $validated = $request->validate([ 'full_name' => 'required|string|max:255', 'email' => 'required|email|max:255', 'phone' => 'required', 'subject' => 'required|max:255', 'message' =>

fahdshaykh's avatar
fahdshaykh's avatar tisuchi1yr agoLaravel
7
1
Last reply by tisuchi 1yr ago
AffData's avatar

Reverb doesn't work after switching from Sail to Herd

No matter what I tried it doesn't work on the frontend with: WebSocket connection to 'wss://app.test:8080/app/laravel-herd?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed: WebSocket is closed before the connection is established. REVERB_APP_ID=1001 REVERB_APP_KEY=laravel-herd REVERB_APP_SECRET=secret REVERB_HOST="app.test" REVERB_PORT=8080 REVE

AffData's avatar
AffData's avatar markusva1yr agoReverb
1
1
Last reply by markusva 1yr ago
MichMich's avatar

Strange Issue with `selectRaw` and `with` during Testing with SQLite

Hello everyone, I've encountered a strange issue in my Laravel project and could really use some help. I have the following method in my Statement model: public function territoryRevenues() { return $this->revenues() ->selectRaw(" 'App\\\\Territory' as source_type, series.territory_id as id, series.territory_id as sourc

MichMich's avatar
MichMich's avatar MichMich1yr agoLaravel
2
1
Last reply by MichMich 1yr ago
Rretzko's avatar

PDO File not found on seven year old app....

Hi Folks - I have a php application that I wrote six years ago from scratch. I haven't touched the code base for at least four years and it has been running as expected. It is now giving me a 500 error with the message: HP Fatal error: Uncaught Error: Class "PDO" not found in public_html/rhschoirs.net/dbs/db.php:120 Line 120 of this file is: private function connec

Rretzko's avatar
Rretzko's avatar jlrdw1yr agoPHP
3
1
Last reply by jlrdw 1yr ago
eggplantSword's avatar

Setup a html landing page on Laradock or wsl

Hi, I usually only work with Laravel but I've been tasked a landing page at work and I have the html/tailwind part however I'm really at a loss on how to get it running on my local environment. I use wsl on my computer with Laradock, how can I get a simple html landing page to work? I have my links in the hosts file. And I have a project folder that for the moment only has an i

eggplantSword's avatar
eggplantSword's avatar MohamedTam...1yr agoGeneral
1
1
Last reply by MohamedTammam 1yr ago
skeith22's avatar

In Depth difference of Mock and Partial Mock in Laravel Testing

Does anyone know what's the big difference of mock and partialMock in testing? I would be great if someone would give like a cases or scenario where one could decide which is the better approach for a certain test

skeith22's avatar
skeith22's avatar MohamedTam...1yr agoTesting
2
1
Last reply by MohamedTammam 1yr ago
skeith22's avatar

How to assert Http::fake response if it doesn't return a TestResponse class

Does anyone how to test an Http:fake response, since you can't use $this->assertStatus(), cause it doesn't return a TestResponse class. like you're able to assertStatus, assertJson, and etc Http::preventStrayRequests(); Http::fake([ '*' => Http::response(['name' => 'John Doe'], 200) ]); return Http::post('http:://your-domain.test'); returned values from this cod

skeith22's avatar
skeith22's avatar LaryAI1yr agoTesting
1
5
Last reply by LaryAI 1yr ago
newbie360's avatar

How to get the custom validation rule error key?

For example in Filament has a form with post title input public static function form(Form $form): Form { return $form ->schema([ Forms\Components\TextInput::make('title') ->required() ->string() ->rules([ 'between:8,255',

newbie360's avatar
newbie360's avatar newbie3601yr agoLaravel
2
1
Last reply by newbie360 1yr ago
FrazeColder's avatar

Laravel 11: job rate limit to not exceed rate limit of external API

Hey there, since Laravel 11 queues can also have a rate limit now (https://laravel.com/docs/11.x/queues#rate-limiting). My Laravel application is doing some requests to the Shopify API to fetch new products, add notes to some orders and also adding shipment information such as a tracking number to the order. I have a Shopify Basic plan which is allowed to make a max of 2 reques

FrazeColder's avatar
FrazeColder's avatar Snapey1yr agoGeneral
4
1,243
Last reply by Snapey 1yr ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.