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

StanleyPeters's avatar

Preventing accidental refresh on test/stage db

After an embarrassing number of accidental refreshes of the test db during testing I was inspired to this solution from https://stackoverflow.com/questions/64096031/how-to-disable-laravel-php-unit-test-in-production. TestCase.php protected function setUp(): void { parent::setUp(); if (env('DB_HOST') !== 'local_db') { throw new \Exception( &qu

StanleyPeters's avatar
StanleyPeters's avatar tisuchi2yrs agoTesting
3
1
Last reply by tisuchi 2yrs ago
matthew230's avatar

New project install: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 421768368 bytes)

I am new to Laravel, I have installed PHP and Laravel in a Docker container. From installation tutorials, I was expecting a Laravel Homepage, however I am getting a memory error. For avoidance of doubt, I have not adjusted any code. I've taken the PHP right up to 3GB, with the same result. Symfony \ Component \ ErrorHandler \ Error \ FatalError Allowed memory size of 2147483648

matthew230's avatar
matthew230's avatar nickrushun...2yrs agoLaravel
4
1
Last reply by nickrushuniq 2yrs ago
jlrdw's avatar

Please implement better spam filter

@jeffreyway the spam on the forum has gotton worse lately. Can you implement a very hard to pass initial form submit test for new users only on the first post? Or have an employee moderate new post on new users and see if it's okay. See these replies also, but there are others about a lot of spam lately. https://laracasts.com/discuss/channels/tips/laravel-developer-interview-t

jlrdw's avatar
jlrdw's avatar JeffreyWay2yrs agoFeedback
4
1
Last reply by JeffreyWay 2yrs ago
DaveG_'s avatar

NGINX and Laravel always returns response code 200

I sincerely hope you can help me as none of the similar topics and provided solutions fixed the situation. I am running on the same container for simplicity nginx as reverse proxy, vue app fro frontend and laravel backend. Nginx always returns status code 200, although I tested with a /test route that throws NotFoundException. The returned resp has header status 200 and upon in

DaveG_'s avatar
DaveG_'s avatar DaveG_2yrs agoLaravel
4
12
Last reply by DaveG_ 2yrs ago
abkrim's avatar

Problem for configure pest In PhpStorm & Sail

I have several projects in which I already use PestPHP. I work with PhpStorm, and except for the warning that I always get about Composer v1, I already have it perfectly configured and I can launch the tests, individual or global) from 'run' Worse, when I have tried to configure a project that is a Laravel package, here I am no longer able, despite using the same method. When I

abkrim's avatar
abkrim's avatar abkrim2yrs agoTesting
2
1
Last reply by abkrim 2yrs ago
MarceloG's avatar

Laravel feature testing using readonly database connection

Hi! I have a problem with my tests, I'm trying to test an endpoint: <?php namespace Tests\Feature\Shift; use App\Models\Booked; use App\Models\Employees; use App\Models\Shift; use App\Models\User; use Illuminate\Foundation\Testing\DatabaseTransactions; use Tests\TestCase; class OvertimeRuleTest extends TestCase { use DatabaseTransactions; private ?Employees $clin

MarceloG's avatar
MarceloG's avatar s4muel2yrs agoTesting
1
1
Last reply by s4muel 2yrs ago
rkron86's avatar

Laravel job finish callback - unable to call any function

Trying to call a test method after batch successfully executes. But if i add any method other than Log or echo it does not at all execute and batch itself is stuck. $batch = Bus::batch([ ])->then(function (Batch $batch) { // All jobs completed successfully... })->catch(function (Batch $batch, Throwable $e) { // First batch job failure detected... })->finally(f

rkron86's avatar
rkron86's avatar rkron862yrs agoLaravel
0
1
tvbz's avatar

Livewire problem.. wire:model not updating.

Hi.. I'm having some trouble with livewire. This very basic component is not updating at all: Template: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content=&quo

tvbz's avatar
tvbz's avatar baumgars1yr agoLivewire
8
37
Last reply by baumgars 1yr ago
skye1985's avatar

502 Bad Gateway on certain API Calls

I'm encounter an error on my laravel installations on my computer. On certain calls (with payloads, with bearer token, ecc.) i recieve a "502 Bad Gateway" error. This is my configuration: MacOS Valet 4.3.0 PHP 8.0 Laravel 8.12 If i create a test route with a simple string print api call works. But if i use standard call with Request and Response nginx of Valet log thi

skye1985's avatar
skye1985's avatar skye19852yrs agoLaravel
9
3
Last reply by skye1985 2yrs ago
Pzz's avatar

XHR not working?

My first Laravel step is already troubling me. I followed a screencast example of Caleb: <?php namespace App\Livewire; use Livewire\Component; class HelloWorld extends Component { public $name ='John' ; public function render() { return view('livewire.hello-world'); } } and the livewire/hello-world.blade.php looks like: <div> <input wir

Pzz's avatar
Pzz's avatar Snapey2yrs agoLivewire
3
1
Last reply by Snapey 2yrs ago
mpilot-aleks's avatar

Livewire 3: assertSee() fails on nested child component

So I'm testing parent component that renders a nested child components. This is passing in Livewire 2 ... Livewire::test(PostContainer::class, ['product' => $this->product1]) ..... ->assertSee($post->title); This fails as the $post->title get rendered on the nested child component: // PostContainer component @foreach ($posts as $post) <liv

mpilot-aleks's avatar
mpilot-aleks's avatar LaryAI2yrs agoLivewire
1
1
Last reply by LaryAI 2yrs ago
komisia's avatar

Bug on Nova::initialPath

Nova 4 doc: https://nova.laravel.com/docs/installation.html#customizing-nova-s-initial-path In addition to a string path, the initialPath method also accepts a closure that returns the path that should be loaded. when closure is provided, the base url "my.app/nova" returns error: Object of class Closure could not be converted to string Logo link works fine, but re

komisia's avatar
komisia's avatar komisia2yrs agoNova
0
1
Zalo's avatar

Reloading page and keep component alive

Hi people! I'm here again with another InertiaJS doubt. I would like to use Inertia router/form helper to reload same page but with different data (filtering users). InertiaJS docs got this partial reloads section where explains exactly what I want to implement. I have done it, however, I don't like the way it works. When I use partial reload functionality, my component gets de

Zalo's avatar
Zalo's avatar Zalo2yrs agoInertia
4
2
Last reply by Zalo 2yrs ago
ryuk6's avatar

Laravel nova trying out before buying?

i tried to install nova locally and test it out before purchasing but apparently you already need to fill in a license when installing locally. Is it true that I cant try it out first before buying? If so, I dont feel like paying 100$ to try something out I may not want to use after all. Also, any alternatives to Laravel Nova if this is the case https://mobdro.bio/ ?

ryuk6's avatar
ryuk6's avatar jlrdw2yrs agoNova
1
1
Last reply by jlrdw 2yrs ago
Spiral's avatar

The connection to the server 127.0.0.1:35439 was refused - did you specify the right host or port?

I have installed Kind for local Kubernetes deployment. I want to make a connection with Jenkins using the kube config file as a secret in Jenkins cloud but getting an error on Test Connection Error testing connection : java.io.IOException: Failed to connect to /127.0.0.1:35439 kubectl config view apiVersion: v1 clusters: - cluster: certificate-authority-data: DATA+OMITTED

Spiral's avatar
Spiral's avatar Spiral2yrs agoDevOps
1
1
Last reply by Spiral 2yrs ago
masao's avatar

Upgrade v6.2 to v6.20.1

Hello there, I want to upgrade laravel from v6.2 to v6.20.1. But, I would like to know if we do not have to test it before that. This is because I have seen many commits after v6.2. Regards,

masao's avatar
masao's avatar tisuchi2yrs agoGuides
5
1
Last reply by tisuchi 2yrs ago
cinameng's avatar

Laravel Dusk using Opensearch onn GitHub Actions error

I have a workflow operational that runs a dusk test suite. Some tests pass, but some fail with the following error: No alive nodes found in your clusterNoNodesAvailableException No alive nodes found in your cluster at vendor/opensearch-project/opensearch- php/src/OpenSearch/ConnectionPool/StaticNoPingConnectionPool.php:67 63▕ return $connection; ➜ 67▕

cinameng's avatar
cinameng's avatar LaryAI2yrs agoTesting
1
1
Last reply by LaryAI 2yrs ago
elliot4's avatar

Good resources to learn testing

I have quite a knowledge of testing with Jest and Cypress but would like access to some resources that would teach a person that never touched testing before. Would you know any website, course, webinar, or anything that would have one (or both) of the following: Philosophical reason for testing (why to test and what to test) Technical testing Thanks for the help :)

elliot4's avatar
elliot4's avatar jaseofspad...2yrs agoJavaScript
4
1
Last reply by jaseofspades88 2yrs ago
gabrielfrohlich's avatar

Request Data not showing in Laravel Request

Hello People, are you OK? I have this code here const form = new FormData form.set('test[test]', 'test') form.set('test2[]', 'tessst') await axios.patch('/model/1',form) And in the Laravel, i do this: dd($request->all()) And it returns an empty array. what I am doing wrong?

gabrielfrohlich's avatar
gabrielfrohlich's avatar gabrielfro...2yrs agoLaravel
7
1
Last reply by gabrielfrohlich 2yrs ago
SmallDreams's avatar

Laravel Blade - The @if only works on the last $item from the @foreach

Im want to change the color and icon everyday of the week but i dont know why this code doesnt work. Could someone explain why this doesnt work and how to fix this. Blade File @extends('layouts.app') @section('content') <div class="container min-h-100 py-4"> <div class="row justify-content-center"> <div class="d-flex justify-

SmallDreams's avatar
SmallDreams's avatar SmallDream...2yrs agoLaravel
3
1
Last reply by SmallDreams 2yrs ago
oikodomo's avatar

Assert Redirected/Current-Route and View

I want to assert where i end up after the redirect and what the resulting view contains. I started with the request: $response = $this->actingAs($user)->get('/...'); then I assert the redirect $response->assertRedirectToRoute(...) and then I want to assert if the view where I was redirected contains a specific value $response->assertViewHas(...) But in this case

oikodomo's avatar
oikodomo's avatar oikodomo2yrs agoTesting
5
1
Last reply by oikodomo 2yrs ago
sifrious's avatar

no definition found: use function Pest\Laravel\get;

I'm trying to use the get() function introduced in episode 4 of Pest Driven Laravel (Write Your First PEST Test) but I can't seem to import get. I'm getting no definition found. I can't find Pest\Laravel; I'm not sure if I messed up the installation. Any explinations or ideas for next steps? My code is (intended to be) exactly the same as the video: <?php use function Pest\

sifrious's avatar
sifrious's avatar José Cigar...2yrs agoTesting
4
2
Last reply by José Cigarro 2yrs ago
bakedbean78's avatar

putJson results in no model instance being passed to the controller

Hello, Somebody please help me out here. I have a unit test for an api endpoint which is supposed to test the data structure of the json response. The issue is that the model id param which is being sent to the controller results in a null value for that model when I dd the model variable in the controller. I am using RefreshDatabase and WithoutMiddleware. The WithoutMiddleware

bakedbean78's avatar
bakedbean78's avatar bakedbean7...2yrs agoTesting
4
2
Last reply by bakedbean78 2yrs ago
Kodandweb's avatar

Sanctum, global scopes and testing

Hi, I'm facing an issue with Sanctum and global scope for my automated test. The project is a standalone API accessed by a Vuejs application. I use Sanctum with the standard session cookie for authentication. Some models have global scope based on the connected user to add some security to the Eloquent queries. For exemple, one small test: it ('should .... whatever', function()

Kodandweb's avatar
Kodandweb's avatar Kodandweb2yrs agoTesting
0
1
TerrePorter's avatar

wire:poll not firing at all

Hey, So I made a very basic page to test this as I am having problems on the main content with the wire:poll not working. New Laravel 10 install and Livewire 3. Here are my files for this test. Route Route::get('/testpage', function () { return view('testpage_livewire_loader'); }); testpage_livewire_loader @extends('layouts.app') @section('content') @livewire('test-pa

TerrePorter's avatar
TerrePorter's avatar Snapey2yrs agoLivewire
14
3
Last reply by Snapey 2yrs ago
TerrePorter's avatar

vite watch?

Hello, I decided to see what it would take to update a project using the older version of laravel. I have a new clean install setup. I have installed Breeze and Livewire and that is it. I have a basic page set up to test with. I had a command to build the assets, CSS, and JS, but I can't find it and it was not saved in my bash history. I read everywhere to use 'npm run dev', bu

TerrePorter's avatar
TerrePorter's avatar Snapey2yrs agoVite
4
9
Last reply by Snapey 2yrs ago
shinigaimi's avatar

SQLSRV + Windows Auth(SSMS)

Hey everyone, I am trying to get laravel to connect to MSSQL via Windows Credentials, I have everything installed correctly if I run a test SQL and it works perfect. I think the problem might be Windows Authentication thats how the SQL Server is configured. Can someone help me with some guidance? Here is the demo script I got and its able to query MS SQL no issues /* Sp

shinigaimi's avatar
shinigaimi's avatar shinigaimi2yrs agoLaravel
0
1
m-thalmann's avatar

partialMock of RateLimiter-Facade does not seem to set the cache property

See Github issue #48248 for all information Hi all! When writing tests for a rate-limited endpoint I am trying to partially mock the RateLimiter facade to return a constant value for the availableIn call: public function testRateLimitsAfterCertainAmountOfBadRequests(): void { RateLimiter::partialMock() ->shouldReceive('availableIn') ->onc

m-thalmann's avatar
m-thalmann's avatar m-thalmann2yrs agoGeneral
2
1
Last reply by m-thalmann 2yrs ago
TimKuhl's avatar

Some questions about Inertia

As I wrote in another posts, I am disappointed in the current state of Livewire 3, where even a simple redirect doesn't work correctly - this error can be seen on github discussions and forums for many years, perhaps it's something that is hard to solve? I don't know. Anyway, my only other option - outside of plain HTMX or Unpoly - is Inertia. So, I have a few questions about i

TimKuhl's avatar
TimKuhl's avatar wojakmcwag...2yrs agoInertia
3
1
Last reply by wojakmcwagies 2yrs ago
foxdevuz's avatar

Laravel not accepting image on API

I'mcurretly working on api for test. I need to upload the image via API on local enviroment, it works but on hosting it doesn't. Here is my code: Route: Route::post('/v1/admin/{token}/test/create', [ApiTestController::class, 'createTest']); ApiTestController: (only create test part): public function createTest(CreateTestRequest $req, $token) { if (!ApiHelperFunctio

foxdevuz's avatar
foxdevuz's avatar foxdevuz2yrs agoLaravel
1
1
Last reply by foxdevuz 2yrs ago
242Studios's avatar

Pest Slow on Sail?

Is anybody else having a problem with their tests running brutally slow on Laravel Sail? I'm also on an M1 mac if that makes any difference. But just a test asserting that true is true, takes 3sec to run. Would appreciate any input.

242Studios's avatar
242Studios's avatar MrMoto90001yr agoTesting
5
1
Last reply by MrMoto9000 1yr ago
dwen's avatar

Font awesome installed in the Laravel 10.20 project, but not showing up icon

to install fontawesome in local dev box of Laravel 10.20 npm install --save @fortawesome/fontawesome-free can find C:\laragon\www\project-name\node_modules@fortawesome\fontawesome-free\css\all.css, so in the app.css @import '~@fortawesome/fontawesome-free/css/all.css'; then run npm run dev in the home.blade.php, insert the following line to test fontawesome icon camera <i

dwen's avatar
dwen's avatar Tray22yrs agoLaravel
4
1
Last reply by Tray2 2yrs ago
mandarvb's avatar

Getting Method Illuminate\View\View::layout does not exist.

return view("myppath.to.childview") ->layout('mypath.to.parentview') ->with([ 'type' => $type, 'inputParams' => $inputParams, 'pageData' => $pageData, ]); This is simple index() function in every controller of my module. All controller works fine in local ubuntu setup but I have hosted it on aws ubuntu server to test my project on live. But its giving m

mandarvb's avatar
mandarvb's avatar mandarvb2yrs agoLaravel
6
2
Last reply by mandarvb 2yrs ago
Furrukh's avatar

How Do I use Jest in a inertia React app

I am learning the Laravel React Inertia Stack, I got Jest working in the app following the instructions here https://zaferayan.medium.com/how-to-setup-jest-and-react-testing-library-in-vite-project-2600f2d04bdd But I am unable to test components seperately, how do I pass and get the props in components like route which are available to React components via inertia

Furrukh's avatar
Furrukh's avatar Furrukh2yrs agoInertia
0
2
anonymouse703's avatar

All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.

I thought everything is ok until the QA test. in the first load pagination looks fine but when I click next or the page number there's a prompt All Inertia requests must receive a valid Inertia response, however a plain JSON response was received. This is the controller public function showMineralTransactions(Request $request, $id) { $mineralTransactions = Mine

anonymouse703's avatar
anonymouse703's avatar anonymouse...2yrs agoVue
2
1
Last reply by anonymouse703 2yrs ago
paulpreibisch's avatar

Hi everyone, why do I get a value of 'spa' when I do $this->response->assertViewIs

I am writing a unit test to ensure that the proper view has been returned, however, when I execute $response->assertViewIs('myView'); it fails, and states that the value is 'spa' I have googled, but I have found no leads as to why phpunit is returning 'spa' (which I assume means "SinglePage App"

paulpreibisch's avatar
paulpreibisch's avatar LaryAI2yrs agoTesting
1
1
Last reply by LaryAI 2yrs ago
Yonibrese's avatar

Running dusk tests in parallel

Hello, I am running multiple Dusk Test at the same time, for increased automation. I call the dusk test in two different terminal widows with the artisan command: php artisan dusk --filter testTrail But what I noticed it that when I start a second test in an other terminal window, while the first test is still running, the first terminal window 'listens' the browser for the se

Yonibrese's avatar
Yonibrese's avatar Yonibrese2yrs agoLaravel
0
1
MahmoudMonem's avatar

best approach to insert multiple radio buttons into database Laravel

Hello guys, my structure is like that. I have the following tables tests -> questions -> options -> responses -> results My test has many questions -> which has many options > there is no right and wrong so i am doing the following in blade the final question will look something like this Question1 : How do you like our restaurant Question Options : Great 🔘

MahmoudMonem's avatar
MahmoudMonem's avatar MahmoudMon...2yrs agoLaravel
14
1
Last reply by MahmoudMonem 2yrs ago
craigwebster169's avatar

Force Inertia requests to use https

I'm trying to deploy Larvel 10.x and InertiaJS/React as a test app and the [::]:5173 GET requests are using http rather than https ... how do I change the protocol?

craigwebster169's avatar
craigwebster169's avatar phpmac1yr agoInertia
9
6
Last reply by phpmac 1yr ago
CookieMonster's avatar

Google authenticator after login?

I want to add google authenticator TOTP in my laravel app. I am using this package pragmarx/google2fa-laravel Link to package: https://github.com/antonioribeiro/google2fa-laravel I was wondering do I need to store the secret key in users table google2fa_secret column after initial login (email and password) or only store in the database after user has successful verify the OTP?

CookieMonster's avatar
CookieMonster's avatar martinbean2yrs agoLaravel
3
1
Last reply by martinbean 2yrs ago
vincent15000's avatar

Array handling to retrieve the values in level 2

Hello, I have this array. $test = [ [ 'id' => 2, 'results' => [ 'average' => 3.5, 'note' => 1.5, ] ], [ 'id' => 3, 'results' => [ [ 'average' => 4.5, 'note' => 2.5, ], [ 'average' => 5.5,

vincent15000's avatar
vincent15000's avatar vincent150...2yrs agoLaravel
4
1
Last reply by vincent15000 2yrs ago
mvE's avatar

assertSee not seeing updated information

I have a form that allows a user to update their full name and email address. The form is created by some Blade components but essentially translates to this HTML: <form method="POST" action="{{ route('dashboard.update_user_info', ['user' => auth()->user()]) }}"> @method('PUT') @csrf <!-- All irrelevant code removed -->

mvE's avatar
mvE's avatar josecamese...2yrs agoTesting
3
1
Last reply by josecameselle 2yrs ago
Starla833's avatar

cURL error 28: Connection timeout after 10001

I'm using laravel and I have wsl 2 and docker. What I have is 2 containers with identical code. What I'm trying to do is get my one container to talk to the other. So for example if in my code I do something like Http::get(http://172.26.0.4:8090), where 172.26.0.4:8090 is the second container, then I should be able to go there and see the page or at least hit the function. The

Starla833's avatar
Starla833's avatar valentin_v...2yrs agoLaravel
2
1
Last reply by valentin_vranic 2yrs ago
zorkwarrior's avatar

Download a .php file using Storage::download()

I'm rebuilding a site in Laravel to test out the framework. It has a frontend and handles requests from a legacy C# app. The C# app downloads a number of files via GET requests. All of these serve up fine, except when I try to download a file with the .php extension (ie. file.php). The framework serves me up a very simple page instead of a download: <body>File not found.

zorkwarrior's avatar
zorkwarrior's avatar zorkwarrio...2yrs agoLaravel
8
4
Last reply by zorkwarrior 2yrs ago
Jakub77's avatar

Pest - Architecture testing - tests not working.

Hello, I'm trying to run simple arch test on a clean installation of latest laravel. Stack versions: php 8.2 laravel: v10.20.0 pest: ^2.16 pest-plugin-laravel: ^2.2 phpunit: ^10.1 Test code test('example', function () { test('app') ->expect('App\Models') ->toBeAbstract(); }); Result FAILED Tests\Feature\ArchTest > example

Jakub77's avatar
Jakub77's avatar LaryAI2yrs agoTesting
1
1
Last reply by LaryAI 2yrs ago
Smiffy's avatar

Set return type on Factory

Is it possible to expclitly define the return type of a factory? I am refactoring some code and have deprecated a class method. Turns out that some of these are not picked out by PHPStorm since it returns Model so it isn't aware that the method called is deprecated. Code for clarity: //In MyModel.php... /** @deprecated */ public function myMethod() { //whatever } //In a te

Smiffy's avatar
Smiffy's avatar Tray22yrs agoLaravel
3
1
Last reply by Tray2 2yrs ago
DenMette's avatar

Writing tests for a Attribute Mutator.

I have written a custom Attribute, and I also like to test my getter. The only problem is I need to figure out how. Writing the tests for the setter part was simple to do. My preferred stack for writing tests is PestPHP. The method to test protected function role(): Attribute { return Attribute::make( get: function (mixed $role) { if (is_null($role)) {

DenMette's avatar
DenMette's avatar DenMette2yrs agoTesting
0
1
bwrigley's avatar

Problems using correct .env files in Homestead

I'm sure I've missed something obvious here but I don't seem to be able to get my various scenarios to use different .env files. I'm running Homestead on Windows. My site is served from within Homestead, but Vite server has to run on Windows. in my Homestead.yaml I have set: variables: - key: APP_ENV value: local In my project I have 3 .env files: .env - for da

bwrigley's avatar
bwrigley's avatar bwrigley2yrs agoTesting
0
1
somenet77's avatar

Got wired issue in laravel queue notification?

I have a class like this <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class TestNotification extends Notification implements ShouldQueue { use Queueable; /** * Create a new notification instance. *

somenet77's avatar
somenet77's avatar somenet772yrs agoGeneral
0
1
bwrigley's avatar

Echo processing twice after Intertia Logout/Login

Hi, Just trying Laravel Echo/Pusher for the first time in my Vue application and I'm getting some strange behaviour with each event triggering twice. But it only happens when I logout and log back in again and only if I logout via an Inertia method (via Link or form helper): Logging out with this causes double-counting next time I login: <Link href="/logout" method

bwrigley's avatar
bwrigley's avatar bwrigley2yrs agoVue
0
1

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.