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

Maged's avatar

Query reports and group by user and count certain field

I have this report migration $table->unsignedInteger('user_id')->unsigned()->nullable()->index(); $table->string('reason'); // can be one of three values, say ('bad, 'good', 'something') i want now to display a table where i have the user and column for each reason counting how many times he got records on this user | bad | good | something Jeffrey | 3 | 10 | 2

Maged's avatar
Maged's avatar Maged4yrs agoLaravel
3
1
Last reply by Maged 4yrs ago
iamarbabhussain's avatar

WithCount and WithAvg both in a query

How can i use withCount and withAvg both inside a query? I want reviews count and avg for all users.

iamarbabhussain's avatar
iamarbabhussain's avatar iamarbabhu...4yrs agoEloquent
7
1
Last reply by iamarbabhussain 4yrs ago
eyantra's avatar

MySQL to Laravel Query

select a.members, count() as teams from(SELECT count() as members FROM team_member_detail group by team_id) as a group by a.members this query i have as converted to Laravel query: $data = DB::query()->select(DB::raw('a.members, count() as teams'))->fromSub(function ($query) { $query->select(DB::raw('count() as members'))->from('team_member_detail') -

eyantra's avatar
eyantra's avatar eyantra4yrs agoEloquent
10
1
Last reply by eyantra 4yrs ago
mrkarma4ya's avatar

Need help with a difficult query

I have an app with Users and Jobs. Each User can have many Jobs. Each Job has a start_date and an end_date. I want to create a filter that gets a list of users who have a min of X years of experience and a max of Y years of experience. Years of Experience is typically calculated by getting the difference of start_date and end_date of each job of a user, however, there's a catch

mrkarma4ya's avatar
mrkarma4ya's avatar teos_974yrs agoLaravel
2
1
Last reply by teos_97 4yrs ago
Smiffy's avatar

Reset Password Link returning query string as opposed to "pretty url"

I'm looking to implement some "Forgot Password" functionality to an existing app and looking through the docs at https://laravel.com/docs/8.x/passwords. I'm able to generate a password reset link and redirect the user back to the site however the token needed to reset the password is contained within a query string and not part of the url. I.e. myssite.com/password-re

Smiffy's avatar
Smiffy's avatar Smiffy4yrs agoLaravel
3
1
Last reply by Smiffy 4yrs ago
Ashraam's avatar

Improving this eloquent query ?

Hi, Here is the context, employees have worksheets. When worksheets are completed, every month the admin will make a recap document to pay them. I'd like to have a dashboard with only employees that need to be paid (and with some informations about the amount etc). Here is the Eloquent query I've made, it works but I'm not sure if it's the best solution here. $employees = Emplo

Ashraam's avatar
Ashraam's avatar Ashraam4yrs agoEloquent
0
1
sitinj's avatar

Dynamic Query

hi, i have this query SET @sql = NULL; SELECT GROUP_CONCAT(DISTINCT CONCAT( 'max(case when tahun = ''', tahun, ''' then target end) tahun' ) ) INTO @sql FROM renstra_indikator; SET @sql = CONCAT('SELECT b.start_periode,b.end_periode,d.desc_renstra tujuan, e.desc_renstra sasaran,c.desc_renstra indikator, f.desc_satuan satuan, ',

sitinj's avatar
sitinj's avatar sitinj4yrs agoLaravel
3
1
Last reply by sitinj 4yrs ago
bellini's avatar

Need help with a query builder scope

I have 3 tables -> scripts -> guidelines -> calls a script can have multiple guidelines, and a guideline can have multiple calls. in my scripts table I have a active_call column, which is a foreign key corresponding to the current call. I need to build a scope where I filter scripts in which their active call is the first call of their guideline. so I basically need to

bellini's avatar
bellini's avatar bellini4yrs agoCode Review
2
1
Last reply by bellini 4yrs ago
MrMoto9000's avatar

Inline query scope with parameter

How can I pass a parameter to an inline query scope? $shows = Show::upcoming()->with( ['events' => function($q, $reward) { $q->restrictDays($reward->ticket_restrictions); }] )->get(); This causes the following error: Too few arguments to function App\Http\Controllers\EventController::App\Http\Controllers{closure}(), 1 passed i

MrMoto9000's avatar
MrMoto9000's avatar tykus4yrs agoEloquent
2
1
Last reply by tykus 4yrs ago
MrMoto9000's avatar

Advanced query scope

I was hoping to write an advanced query scope that would return items based on a flexible number of parameters. For example, accepting a JSON string that could have any number of days of the week inside it to be excluded from a query: public function scopeRestrictDays($query, String $restrictedDays = null) { $restrictedDays = json_decode($restrictedDays)->day ?? [];

MrMoto9000's avatar
MrMoto9000's avatar martinbean4yrs agoEloquent
2
1
Last reply by martinbean 4yrs ago
Eldair's avatar

Custom withSum query

Hello, Can a query like the one below be written using withSum method or in a more eloquent way? DB::raw('(select sum(JSON_LENGTH(`stores`.`baskets`)) from `stores` where `users`.`id` = `stores`.`user_id`) as `baskets_count`')

Eldair's avatar
Eldair's avatar Eldair4yrs agoEloquent
0
1
TylerN86's avatar

Query builder delete query questions

Below is a working query that I am trying to recreate using the query builder in Laravel so that I can utilize the query bindings: $query = 'delete b.* from locations_hierarchy as a join locations_hierarchy as b on b.descendent_id = a.descendent_id and b.id <> a.id where b.depth > 0 and a.ancestor_id in (' . implode(',', $existingSublocations) . ')'; $results = DB::

TylerN86's avatar
TylerN86's avatar TylerN864yrs agoLaravel
0
1
manuelbosi's avatar

Filters problem eloquent model query

Hello guys i have a frontend form with dropdown and fulltext search, if user don't set any filters the index method of controller return all data otherwise return data that match with filters. The filters are passed directly in url using "GET" I get data using model scope from mysql database and at the moment i merge all query using unionAll but the filters stop worki

manuelbosi's avatar
manuelbosi's avatar manuelbosi4yrs agoLaravel
0
1
TuffRivers's avatar

Best way to combine query builder results?

Hi All, I am breaking down an old SQL View that summarizes a transaction table for clients across different date ranges. Ive recreated these smaller views into query builder laravel queries, and now i need to combine them (multi-dimensional array with date ranges as keys, then client name/sum as k => v pair) i know i can do this with a foreach - but wondering in general if t

TuffRivers's avatar
TuffRivers's avatar TuffRivers4yrs agoLaravel
2
1
Last reply by TuffRivers 4yrs ago
SirMishaa's avatar

Horizon cause an invalid SQL query (Syntax error: 7 ERROR: zero-length delimited identifier at or near)

Horizon Version: 5.7.10 Laravel Version: 8.53.1 PHP Version: 8.0.9 (Sail) Redis Driver & Version: predis/phpredis / Database Driver & Version: Version shipped with PHP 8.0.9 Description: Hello, I have a small problem. I just discovered the job system of Laravel, so I need to trigger an HTTP request regularly from the moment the user connects to a particular page. I

SirMishaa's avatar
SirMishaa's avatar Antibilan2yrs agoLaravel
2
1
Last reply by Antibilan 2yrs ago
princeparaste's avatar

Need help in laravel eloquent query to get all the job_id with additional status.

Table: job_table ---------------------------------------------------------------------------- id | jobcode | updated_at | created_at ---------------------------------------------------------------------------- 1 | x123 | 2020/11/03 |2020/11/03 2 | x124 | 2020/11/03 |2020/11/03 3 | x125 | 2020/11/03 |2020/11/03 4 | x126 | 2020/11/03 |2020/11/03 5 | x

princeparaste's avatar
princeparaste's avatar Snapey4yrs agoEloquent
1
1
Last reply by Snapey 4yrs ago
zainshabir00's avatar

Laravel join query get second table data in a object

I am getting my data using inner join, but it's just appending second table's data in first ones, like this: "hadithNumber": 20, "hadithEnglish": "", "chapterId": 9, "bookSlug": "al-tirmidhi", "volume": 0, "status": "Sahih", // Second table data "chapterNumber&qu

zainshabir00's avatar
zainshabir00's avatar zainshabir...4yrs agoLaravel
2
1
Last reply by zainshabir00 4yrs ago
zainshabir00's avatar

Laravel with query relationship not working in JSON response API

I have 3 tables named books, chapters & hadiths. These tables are connected. When i try to directly access chapter relationship in my view balde file $hadiths foreach loop like this $hadith->chapter, it gives me right data of chapter which belongs to hadith. But when i try to get relation in my Hadith query using with relation to get hadith's chapter in JSON response, th

zainshabir00's avatar
zainshabir00's avatar zainshabir...4yrs agoLaravel
7
1
Last reply by zainshabir00 4yrs ago
princeparaste's avatar

Need a Laravel Left Join query to find out wheather the Job is assigned or not to user (with some conditions))

Table 1 Name: job_table https://imgur.com/TNQBICS Table 2 Name: assign_Table https://imgur.com/ecaCd3P I want a laravel query where i want to left join job_table with assign_table and CASE 1 : if the job is assigned in the assign_table and have user_id and assign_date not null then i want the result to show job_code, user_id and assign_date Otherwise CASE 2: if the job_code

princeparaste's avatar
princeparaste's avatar SilenceBri...4yrs agoEloquent
1
1
Last reply by SilenceBringer 4yrs ago
webrobert's avatar

Help with query for parent and child

When searching replies if the reply is a child its parent should also be returned. (Not as a relationship) And what I naively think should work... Reply::where('body', 'like', '%' . 'the search term' . '%') orWhere(function ($query) { $query->select('id') ->from('replies as parent') ->whereColumn('parent.id', 'replies.parent_id') })->get();

webrobert's avatar
webrobert's avatar SilenceBri...4yrs agoLaravel
7
1
Last reply by SilenceBringer 4yrs ago
david001's avatar

how to query this

Hi ,I have two table users and tags. I want to get all user that has at one least tag. tags table user_id tag 1 php 1 laravel 2 php controller $tags = $request->get('tags'); on dd($tags) I get array:1 [▼ 0 => "laravel,php,js" ] My query $users = User::where('status',1); $users->when($tags, function ($query, $

david001's avatar
david001's avatar MichalOrav...4yrs agoLaravel
9
1
Last reply by MichalOravec 4yrs ago
Reinis.lucis's avatar

Make calculations in Elequent Query

Hey! 👋🏼 I have an Eloquent query where I need to add calculations in it to sort by. In this case, I need to add successful_requests * 100 / total_requests as an additional attribute, is there any way how that can be done in Eloquent and not using DB::raw? I know that withCount runs as a sub-query, that's why those values like total_requests are not accessible $query = D

Reinis.lucis's avatar
Reinis.lucis's avatar Reinis.luc...4yrs agoEloquent
1
1
Last reply by Reinis.lucis 4yrs ago
gse.amit's avatar

How to process the resultset of a raw query in Laravel

I have a helper function which takes category as input and returns with all items for that category in comma separated string. public static function getItemsByCategory($categoryId){ $categoryString=""; $query = DB::table('items'); $query->select(DB::raw('item_code')) ->where('category', '=', $categoryId)->get(); f

gse.amit's avatar
gse.amit's avatar gse.amit4yrs agoEloquent
4
1
Last reply by gse.amit 4yrs ago
Garet's avatar

Raw DB query but with Eloquent

At the moment I have a model called contacts and I'm displaying a list of contacts like this: $contacts = Contacts::orderBy('first_name')->orderBy('last_name')->paginate(200); return view('contacts/index', ['contacts' => $contacts]); Now I want to list all contacts which have duplicates, but utilising the same view. So ideally I want to do it via Eloquent rather tha

Garet's avatar
Garet's avatar Garet4yrs agoLaravel
4
1
Last reply by Garet 4yrs ago
dk4210's avatar

Mysql update timestamp in multi rows query

Hello Guys, I have about 600 rows that contain the same date but different timestamps (Hour, min, second ). When I run this query, I find all the ones I need to update SELECT * FROM `message` where DATE(`date_created`) = DATE('2021-06-06') I would like to update all of the rows with a new time stamp like 2021-05-22. I tried this query but didn't work UPDATE `message` SET `dat

dk4210's avatar
dk4210's avatar Tray24yrs agoGeneral
1
1
Last reply by Tray2 4yrs ago
princeparaste's avatar

Count Query in Laravel taking to long to respond. How to Optimize it ?

Hi, In my database i have like 10-20 companies only but having 7,000 - 8,000 rows in other tables like table1,2,3,4. When i run my query of count it just take too long to respond and my page doesn't even load. Its gives me error Maximum execution time of 60 seconds exceeded How can i optimized my query to run faster and dont give me error ? $company = Companies::select('compa

princeparaste's avatar
princeparaste's avatar princepara...4yrs agoEloquent
5
2
Last reply by princeparaste 4yrs ago
bosborne's avatar

Called 'diff' on Laravel collection, but could have been retrieved as a query

Hi all, I am running Larastan for static analysis and my code retrieves some results from the database via Eloquent and uses the diff() method to retrieve the items not in the collection passed, it works fine but Larastan reports this error: Called 'diff' on Laravel collection, but could have been retrieved as a query. What would be the alternative? My code: FlightRoute::all()

bosborne's avatar
bosborne's avatar bosborne4yrs agoLaravel
2
1
Last reply by bosborne 4yrs ago
dgvai's avatar

Can anybody help me to build its query builder?

lets say, Book Model has Many-to-Many relationship with Tag model Lets assume, there are 5 tags, of ID 1,2,3,4,5 Now I want to find the books, which is related to tag ID 3. What currently I am doing: $id = 3; $related_books = []; $all_books = Book::all(); foreach($all_books as $book) { if($book->tags->pluck('id')->contains($id)) { array_push($related_books, $book

dgvai's avatar
dgvai's avatar dgvai4yrs agoLaravel
2
1
Last reply by dgvai 4yrs ago
eggplantSword's avatar

Add relationship to eloquent query to model with scopes

I have this code in my model, but then using eloquent if I add a with('parent') the query stops working. Important side note this is not my code. public function parent() { return $this->belongsTo(Category::class, 'category_id', 'id'); } function scopeName($query, $request) { if ($request['query'] && $request["query"][&q

eggplantSword's avatar
eggplantSword's avatar orest4yrs agoLaravel
2
1
Last reply by orest 4yrs ago
nafeeur10's avatar

How to write Eager Loading in Query Laravel

$query->with(['batches'])->select(['name'])->orderBy('name', 'asc')->limit(1); Result: "batches": [ { "id": 3079, "cost": 100, "stock": 20 }, { "id": 3080, "cost": 100, "stock": 20 } ] I am getting the batches for the relationship with Products Model. But f

nafeeur10's avatar
nafeeur10's avatar Sergiu174yrs agoLaravel
1
1
Last reply by Sergiu17 4yrs ago
ahoi's avatar

Query model's attribute that is a accessor

Hello everybody, I got some custom accessor on my model like this: public function getRandomAttribute(): ?string { return "Test"; } Now I'd like to query this randomAttribute: Item::whereRandom("Test")->first() This does not work - of course, as Eloquent is querying the database and this value is not existing in my database. So I just wondered, if:

ahoi's avatar
ahoi's avatar SilenceBri...4yrs agoLaravel
2
1
Last reply by SilenceBringer 4yrs ago
princeparaste's avatar

updateOrCreate query just based on primary id ? can we do it like this and is this a good practice ?

can we run updateOrCreate query just based on primary id ? I just want to know if this is a good practice in laravel or not ? $p_contact = Contact::updateOrCreate( ['id' => $contact_id], [ 'company_name' => $request->producer['company_name'], 'address' => $request->producer['address'], 'city' => $r

princeparaste's avatar
princeparaste's avatar bugsysha4yrs agoLaravel
9
1
Last reply by bugsysha 4yrs ago
Enea74's avatar

leftJoin query wraps string into backticks

I'm facing an odd error when using a leftJoin query. $status = 'active'; $active_ids = \App\User::leftJoin('user_profiles', function($join) use ($status) { $join->on('user_profiles.user_id', '=', 'users.id') ->on('user_profiles.status', '=', $status); }) ->where('type', 'client') ->get(); I get

Enea74's avatar
Enea74's avatar Enea744yrs agoEloquent
2
1
Last reply by Enea74 4yrs ago
tomasosho's avatar

get value from query as integer

How do i get the present_count value from the query below as an integer? $attendance = Attendance::selectRaw('count(present) as present_count') ->whereMonth('date', $month) ->whereYear('date', $year) ->where('staff_id', $request->input('user_id')) ->get()->toArray();

tomasosho's avatar
tomasosho's avatar tomasosho4yrs agoCode Review
4
1
Last reply by tomasosho 4yrs ago
Lokedi's avatar

Optimize laravel query

Hi, I made this query to retrieve more data from a few tables .. but currently I tested with many pictures .. and it loads in 4 minutes I also tested with super many data of order 8k elements in the database and it loads super hard. Do you know a way to optimize your query? Could I use something from laravel to get rid of these joins or something? $results = app(Produc

Lokedi's avatar
Lokedi's avatar Tray24yrs agoLaravel
2
1
Last reply by Tray2 4yrs ago
Jacotheron's avatar

Count multiple groups using eloquent in a single query

I recently had to count an arbitrary number of items (from the same table), but having the counts grouped and found a way to do this with Eloquent (and a raw statement). Below is an explanation of how it works and gets setup. I am wondering if this could be perhaps added as a way to count relations of relations directly in Eloquent. For example: Model::withCount('relation1' , '

Jacotheron's avatar
Jacotheron's avatar Jacotheron4yrs agoEloquent
0
1
sajjadali's avatar

How to add more selects in eloquent query

Hi, I build a query and loaded relationships with it then select some columns from a model but want to add/select more columns from related modes/relationships. for example $user = User::with('comments') ->select('name', 'age') ->addSelect('comment') // i want to add columns from comments model. ->get(); is there any way to select column at this point ?

sajjadali's avatar
sajjadali's avatar MichalOrav...4yrs agoEloquent
4
1
Last reply by MichalOravec 4yrs ago
w99910's avatar

DB Query Builder updateOrInsert Vs Eloquent firstOrCreate ( Performance)

I'm using laravel mongodb and trying to import large data from json files. I tried to use Eloquent's firstOrCreate and Query Builder's updateOrInsert. I thought using query builder would be faster but it turned out that it is slower than Eloquent. Can you please help me insert data fast enough because I have millions of data left? The following is my code. Query Builder $ids =

w99910's avatar
w99910's avatar Tray24yrs agoLaravel
3
1
Last reply by Tray2 4yrs ago
mohamadAbdelhady's avatar

how to build this nested query using laravel eloquent

how to build this nested query using laravel eloquent SELECT * FROM posts WHERE user_id IN (SELECT follower_id FROM followers where id =$id)OR user_id=$id;

mohamadAbdelhady's avatar
mohamadAbdelhady's avatar MichalOrav...4yrs agoLaravel
1
1
Last reply by MichalOravec 4yrs ago
boyjarv's avatar

No query results for model - please help?

No query results for model [MyLocal\Modules\Media\Models\Media] {"id":185,"url":"http://mylocal.test/storage/media/YisGi9vQPvGeq5gVjtOxvY4zBJwzC4T3sITdgYsT.png","description":"Here is a Social image"}" Do I need to give permissions to my storage folder? I just ran php artisan storage:link, nothing has changed?! it said it w

boyjarv's avatar
boyjarv's avatar tykus4yrs agoLaravel
1
1
Last reply by tykus 4yrs ago
Rory Gonzalez-Brown's avatar

Laracasts Bug? Discussions Search Query Pagination

@JeffreyWay I was searching for a word in the discussions section of the Laracasts website and noticed that each time I clicked a pagination link to the next page of results the search query is removed from the URL. I have been adding the page query manually for now in order to retain the search filter queries in the URL. Hope this is useful.

Rory Gonzalez-Brown's avatar
Rory Gonzalez-Brown's avatar Rory Gonza...4yrs agoFeedback
0
1
Ifrit's avatar

Getting an attribute to be part of a query

I would like to know if it's possible to add an attribute to be part of a query. So what I mean is that in my Product model I have an attribute function that goes like this public function getProductInfoAttribute() { return sprintf("%s > %s", '['.$this->id.'] '.$this->name, $this->categories()->count()); } and what I would like is that when

Ifrit's avatar
Ifrit's avatar Snapey4yrs agoLaravel
4
1
Last reply by Snapey 4yrs ago
amiyo_ghosh's avatar

Complex Scope Query

Hello All i want to use user id of wherehas query in the second method. how can i achieve this? Thanks in advance Edit : memeber is a typo.. it will be agent. i have on table agent_to_manager and i want to fetch only agent roled users that is not present in agent_to_manager table.. and i have two queries one that fetch only agent role user and second checks where the fetched u

amiyo_ghosh's avatar
amiyo_ghosh's avatar amiyo_ghos...4yrs agoEloquent
1
1
Last reply by amiyo_ghosh 4yrs ago
maltekiefer's avatar

SQL to Elequent with from sub query

Hello, is there a way, to get from this SQL: SELECT *, (SELECT count(*) FROM addresssurveys WHERE savedtimestamp::date = sendout_date) AS y FROM (SELECT created_at::date AS sendout_date, created_at::date AS x FROM addresssurveys GROUP BY created_at::date) AS main an Eloquent statement? I created already the sub from query: $sub = Survey::select(DB::

maltekiefer's avatar
maltekiefer's avatar bobbybouwm...4yrs agoEloquent
1
1
Last reply by bobbybouwmann 4yrs ago
JorgeAlberto's avatar

Construction and execution of both query builder and eloquent

How to understand how the construction and execution of both query builder and eloquent works? I am making a package so that elastic search behaves like a sql DB and that the eloquent and query builder utility is not lost. I tried to base myself on the jenssegers/laravel-mongodb package but the truth reached a point where I got lost because I can't find how it ends up building

JorgeAlberto's avatar
JorgeAlberto's avatar bugsysha4yrs agoLaravel
1
1
Last reply by bugsysha 4yrs ago
david001's avatar

How to query this with relationship

I have a query using join but i don't want to use join and want to get same result by using relationship $result = User::where('id', 1) ->where('deleted', false) ->leftJoin('posts', 'posts.user_id', '=', 'users.id') ->groupBy(['users.id']) ->selectRaw('users.*, count(posts.id) as post_count') -&g

david001's avatar
david001's avatar MichalOrav...4yrs agoEloquent
3
1
Last reply by MichalOravec 4yrs ago
malsowayegh's avatar

Dedicated Query String Filtering: Paginate meta date

so I followed this lesson: https://laracasts.com/series/eloquent-techniques/episodes/4 for advanced query filtering. in my FundFilter class I have this class FundFilters extends QueryFilters { public function requested_by($requested_by) { return $this->builder->where('requested_by', $requested_by); } public function closed_on($order = 'asc'

malsowayegh's avatar
malsowayegh's avatar malsowayeg...4yrs agoEloquent
2
1
Last reply by malsowayegh 4yrs ago
Rretzko's avatar

n+1 query results

Hi - I'm getting n+1 warnings when I run a query using a 'with' condition. Here's the model: class Ensemblemember extends Model { use HasFactory, SoftDeletes; protected $fillable = ['ensemble_id', 'instrumentation_id', 'schoolyear_id', 'teacher_user_id', 'user_id', ]; public function person() { return $this->belongsTo(Person::class, 'user_id', 'user

Rretzko's avatar
Rretzko's avatar Rretzko4yrs agoLaravel
9
1
Last reply by Rretzko 4yrs ago
kodzero's avatar

How to make eloquent query with 2 table and two from

Hello everyone, I have no idea, how do this query with eloquent for get object. SELECT field1, field3, total FROM (SELECT field1, field3, sum(field2) AS total FROM sales GROUP BY field1, field2 ) subtable GROUP BY field1; I mean how can I do "subtable" table after join two tables then do group by, min and group_concat and etc ... with this result. In this one

kodzero's avatar
kodzero's avatar kodzero4yrs agoEloquent
0
1
FREDERIC LD's avatar

one to may relationship query

hi, I am a bit struggling with this relation. not sure why.... Admin model. An admin has an employer public function employer() { return $this->belongsTo(Employer::class); } employer model. An employer has many admins public function admins() { return $this->hasMany(Admin::class); } The following query returns the relationship correctly b

FREDERIC LD's avatar
FREDERIC LD's avatar MichalOrav...5yrs agoLaravel
1
1
Last reply by MichalOravec 5yrs 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.