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

jawi289p's avatar

Joining Two Tables using Query Builder in Laravel

Hello I want to join two tables in laravel using query builder. I want to display the sku of particular product on the product page. I have tried but only first row is showing. Please can anyone help me in this issue. Below are the tables products(id, name, price) products_attributes(id, product_id(FK), sku) products(1, toy1, 10) (2, toy2, 12) products_attributes( 1, 1, 7866)(

jawi289p's avatar
jawi289p's avatar jawi289p4yrs agoLaravel
14
1
Last reply by jawi289p 4yrs ago
Deekshith's avatar

convert one to many relation raw query to query builder

i have tables like below, tests test_id, test_name,test_code, schedule_date, test_type, test_active user_tests user_test_id, test_id, mark_scored, user_id,user_test_status i am fetching all tests and also i need count of below statement get count of user_tests if user attended the tests for currently logged in user so i have raw query like below, $sql = "SELECT t.test_

Deekshith's avatar
Deekshith's avatar Deekshith4yrs agoLaravel
2
1
Last reply by Deekshith 4yrs ago
FounderStartup's avatar

How to optimise this query ?

It's a typical search/filter page for a real estate site. CITY is dropdown and LOCALITY is dependent dropdown of CITY. ACTIVELISTING is a checkbox for showing only projects with active property listings. I am unable to optimise this query. The following code is working but looks ugly :) Kindly help me to optimise it. // If city is selected for query if

FounderStartup's avatar
FounderStartup's avatar FounderSta...4yrs agoLaravel
9
1
Last reply by FounderStartup 4yrs ago
t0berius's avatar

eloquent get result of query (true or false)

Any idea how I can easily query the database using the query below and save the status into a variable? Using something like whereHas() isn't the way to go I think. $product = Product::find(3); //just require a simple true or false $productHasActiveSales = ($this->whereHas('orders', function ($query) { $query->where('orders.created_at', '>=', Carbon::now()->

t0berius's avatar
t0berius's avatar Nakov4yrs agoEloquent
1
1
Last reply by Nakov 4yrs ago
FounderStartup's avatar

Getting error in a nested query : Exception Property [individual] does not exist on the Eloquent builder instance.

Getting this error. $listings = Listings::with('project.city','user','project.locality') ->whereHas('project.city', function ($query) {$query->where('status', 1);}) ->where ('status', '1') ->whereIn('listingtype', [$forsale, $buyers, $forrent, $lookingtorentout]) ->when($request->bedrooms, function ($query) use

FounderStartup's avatar
FounderStartup's avatar FounderSta...4yrs agoLaravel
2
1
Last reply by FounderStartup 4yrs ago
nurularifin's avatar

How to Convert QUERY MySQL to Laravel 8

Hi everybody, Can anyone help me please, i want to convert this query to Laravel: $stmt = $con->prepare(' SELECT SUM(rating IN (4.5, 5))/COUNT(*)*100 AS pct_5_star, SUM(rating IN (3.5, 4))/COUNT(*)*100 AS pct_4_star, SUM(rating IN (2.5, 3))/COUNT(*)*100 AS pct_3_star, SUM(rating IN (1.5, 2))/COUNT(*)*100 AS pct_2_star, SUM(rati

nurularifin's avatar
nurularifin's avatar nurularifi...4yrs agoLaravel
6
1
Last reply by nurularifin 4yrs ago
Deekshith's avatar

Query builder get count of one to many relation

i have tables like below, tests test_id, test_name,test_code,date,test_active,test_type test_package_mapping id, test_id, package_id user_tests id, test_id, user_id, marks_scored Now i am displaying all the tests of selected package like below, $package_ids = [1,2]; $alltests = DB::table('test_package_maping')->join('tests', 'test_package_maping.test_id', '=', 'tests.test

Deekshith's avatar
Deekshith's avatar Deekshith4yrs agoLaravel
3
1
Last reply by Deekshith 4yrs ago
FounderStartup's avatar

Correct query for multiplier filters ?

I need to show listings of projects with following filters : If locality of a city is selected Type of listings a. for sale b. for purchase c. for rent d. for rent out type of BHk a. 1 bhk b. 2-3 bhk c. 4 bhk onwards posted by a. individual b. broker My present controller query : I am unable to write nested orWhere for the above filters : $listings = Listings::with('use

FounderStartup's avatar
FounderStartup's avatar Tray24yrs agoLaravel
4
1
Last reply by Tray2 4yrs ago
FounderStartup's avatar

What sis the correct query to filter data ?

I am trying to filter projects with active listings only. IN the filter I have a checkbox , if I need to filter projects based on the number of active listings. My controller query is : $projects = projects::with('builder','city','locality') ->where('project_city', $city) ->withCount('reviews

FounderStartup's avatar
FounderStartup's avatar FounderSta...4yrs agoLaravel
6
1
Last reply by FounderStartup 4yrs ago
DADOMULTIMEDIA's avatar

Create a Eloquent query in a blade component

Hi everyone. I would like to know if it could be possible to make/create a query (either eloquent/DB) inside a blade component. For example: public $categories = []; public $promosaleid; public function __construct($promosaleid) { $this->promosaleid = $promosaleid; $this->categories = Category::query()->with(array('products' => function($query) use($this-&g

DADOMULTIMEDIA's avatar
DADOMULTIMEDIA's avatar davidebo3yrs agoLaravel
6
1
Last reply by davidebo 3yrs ago
mrkarma4ya's avatar

Order a query by its relationship

Lets say I have three models - Artbook, Collection, Artwork with relationship as follows Artbook -> hasMany -> Collection -> hasMany -> Artwork Artbook -> hasMany -> Artwork -> through -> Collection ---------------------------------- Artbook is a public model while Collection belongs to a user. So any user can create a Collection for any Artbook. Thus, t

mrkarma4ya's avatar
mrkarma4ya's avatar mrkarma4ya4yrs agoLaravel
10
1
Last reply by mrkarma4ya 4yrs ago
eddy1992's avatar

Laravel relationship eloquent query

Hi Guys, I am using Laravel5.6* and I have a relationship between the products and users. App\Product Model /** * each product belongs to a user * @return [type] [description] */ public function user() { return $this->belongsTo('App\User', 'users_user_id', 'user_phone'); } Now I want to get all the products which have a category id 3 and I also want to get the n

eddy1992's avatar
eddy1992's avatar Sinnbeck4yrs agoEloquent
4
1
Last reply by Sinnbeck 4yrs ago
ilex01's avatar

How do order by sum (query builder/sql)

How do I oder by sum with this query: $votes = DB::table('votes') ->where('website_id', $site->id) ->sum('stars');

ilex01's avatar
ilex01's avatar Sinnbeck4yrs agoCode Review
2
1
Last reply by Sinnbeck 4yrs ago
skoobi's avatar

Eloquent query on a created_at column

Hi. I'm working on a legacy database where I need to grab rows differently based on the date. I.e. For anything before 2022, i need to grab the 'transaction_type' column where it contains 'DB' and then anything after the start of this year, I need to grab the 'transaction_type' column contains 'CR' Is there a way of doing this? I saw the ->when() function, but seems this isn

skoobi's avatar
skoobi's avatar skoobi4yrs agoLaravel
2
1
Last reply by skoobi 4yrs ago
lat4732's avatar

Problem with query builder

Hello everyone! I have the following query: $reviews = Reviews::query(); if(!empty($request->stars)) { foreach($request->stars as $star) { $reviews->orWhere('review_stars', '=', $star); } } $reviews->orderBy('created_at', 'desc')->paginate(6); compacted and sent to the blade template file

lat4732's avatar
lat4732's avatar Sinnbeck4yrs agoLaravel
5
1
Last reply by Sinnbeck 4yrs ago
FounderStartup's avatar

How to optimise query ?

I need following totals and I am using in blade as @php $activelistings = App\Models\Listings::where('project_id',$item->id) ->where('status',1)->latest()->count(); $totalinprogress = App\Models\Listings::where('project_id',$item->id)->where('status',1) ->where('dealstatus','inprogress')->latest()->count(); $totalclosed = App\Models\L

FounderStartup's avatar
FounderStartup's avatar Sinnbeck4yrs agoLaravel
16
1
Last reply by Sinnbeck 4yrs ago
amun's avatar

Please HELP ME, the query doesn't work JOIN and WHERE clause on the joined table's column

$filter->where(function ($query) { $query->leftjoin('customers AS c', function($join){ $join->on('booking.customer_id', '=', 'c.id') ->where('c.first_name', 'like', "%{$this->input}%"); })->dump(); }, 'Customer has booking')->placeholder('search by first name Like'

amun's avatar
amun's avatar Tray24yrs agoEloquent
8
1
Last reply by Tray2 4yrs ago
jrdavidson's avatar

Composing Eloquent query with orWhere

I'm using Larastan to eliminate some of the static analysis errors I have going on in my codebase. I have several errors involving the the Eloquent Higher Order Messaging Proxy known as orWhere. I'm using this method as show below. ModelA::query()->scopeOne()->orWhere->scopeTwo()->get(); After looking through the Larastan repository I stumbled upon this issue that

jrdavidson's avatar
jrdavidson's avatar martinbean4yrs agoEloquent
1
1
Last reply by martinbean 4yrs ago
fahdshaykh's avatar

laravel query not working properly while working on sql database

i run this query on phpmyadmin database table working fine: select substring_index( prefix, '.', 3 ) as subip , count(prefix) as count, prefix from prefixes GROUP BY INET_ATON(subip)/256 order by cidr desc when i run raw query in laravel: $selected_prefixes = DB::select("select substring_index( prefix, '.', 3 ) as subip , count(prefix) as count, prefix from prefixes GROUP

fahdshaykh's avatar
fahdshaykh's avatar jlrdw4yrs agoEloquent
5
1
Last reply by jlrdw 4yrs ago
kramsuiluj's avatar

Building filtering query with where() and whereHasMorph()

I have a users table with a morph relation to a profile. I'm searching for the firstname, middlename, lastname and id on the users table and contact in the student_profiles. $query->when($filters['search'] ?? false, function ($query, $search) { $query->where(function ($query) use ($search) { $query->where('firstname', 'like', '%' . $search .

kramsuiluj's avatar
kramsuiluj's avatar kramsuiluj4yrs agoCode Review
2
1
Last reply by kramsuiluj 4yrs ago
itwasntme's avatar

Laravel DB Query is slower than plain PDO implementation. Why?

Can someone explain to me, why the plain PDO implementation with PDO is waaayyy faster than the framework implementation? To be clear, we do not talk about query optimization and adding indexes or not. I just figured out, that the laravel way is slower than the plain way and I wish to know how to solve this. greetings, J P.S.: forget to mention, for reproduction I use a existi

itwasntme's avatar
itwasntme's avatar mailrespon...2yrs agoEloquent
23
1
Last reply by mailresponse 2yrs ago
iamssingh's avatar

How to use truncate & avg function in laravel query ?

SELECT TRUNCATE(AVG(rating),2) FROM `reviews` WHERE restro_id=9 I want to write above query in laravel, How can I achieve it ?

iamssingh's avatar
iamssingh's avatar iamssingh4yrs agoLaravel
3
1
Last reply by iamssingh 4yrs ago
pickab00's avatar

Query Scope with Spatie Permission

Hello, I am writing a query scope based on the Permissions the user has using Spatie Permission Package. And this is what I have so far. $query->when($readAllRequests, function ($request) use ($admin) { // do nothing when they can read all requests }); $query->when($readAssignedRequests, function ($request) use ($admin) { $request->where('receiver_id', $admin-&

pickab00's avatar
pickab00's avatar pickab004yrs agoLaravel
1
1
Last reply by pickab00 4yrs ago
Deekshith's avatar

Retain old query parameter on form submit of GET.

I have a full URL like below, https://www.example.com/admin/test-offline-conversions/213/T-203?attendancestatus=Present Now i have added another filter and i have a form tag like below, <form action="{{ route('offlineconvertedtests',[$coursedetails->course_code,$testdetail->test_code]) }}" method="GET" role="search">

Deekshith's avatar
Deekshith's avatar Deekshith4yrs agoLaravel
2
1
Last reply by Deekshith 4yrs ago
tvbz's avatar

Advance where orWhere query, looping over array.

I'm having some trouble building an advance where() orWhere() query, where the orWhere() loops over array of filters. I am using Livewire for the search filter but will just add some sample content here. Sample data: $locations = [ {'id': 1, 'category_id': 1, 'min_value': 10, 'max_value': 20}, {'id': 2, 'category_id': 2, 'min_value': 15, 'max_value': 25}, {'id': 3, 'cate

tvbz's avatar
tvbz's avatar Sinnbeck4yrs agoCode Review
5
1
Last reply by Sinnbeck 4yrs ago
eliekhazzaka's avatar

Laravel trim in query

guys, i have a column name called attachment_files in my query and save it in DB this way 1641210480.Python-Cheat-Sheet.pdf. i need when i make the query to return it this way Python-Cheat-Sheet.pdf how can i do it? $getMerchant = Merchant::leftjoin('ratings', 'ratings.merchant_id', '=', 'merchants.id', 'merchant_qualification', 'merchant_qualification.qualification')

eliekhazzaka's avatar
eliekhazzaka's avatar eliekhazza...4yrs agoLaravel
6
1
Last reply by eliekhazzaka 4yrs ago
User1980's avatar

Can Eloquent query AND USE the value of a previous relation within the same query?

Hi all, No idea if my title makes any sense. But I would like to know if this is possible with eloquent please: ModelA::select( 'id', ) ->with('ModelB:id,name') ->with('ModelC:id,name') ->with(['ModelD' => static function ($query){ $query->where('ModelD.id','=', 'Model

User1980's avatar
User1980's avatar User19804yrs agoEloquent
5
1
Last reply by User1980 4yrs ago
Mikegk's avatar

Raw Count Group By Query

Hi guys, this query works, as I execute it on phpmyadmin, but it won't via laravel: $query = "SELECT COUNT(*) AS visits, users.id AS userid, users.name, users.slug, user_visits.id, user_visits.id_user, user_

Mikegk's avatar
Mikegk's avatar jlrdw4yrs agoLaravel
2
1
Last reply by jlrdw 4yrs ago
tvbz's avatar

Query string array format best practice?

In my livewire component I have an certain amount of features to filter on. If i store the features in an array I get an ugly query string like: ?features[0]=firstfeature&features[1]=secondfeature&features[2]=thirdfeature&... I don't like this because it can get very long very fast and also it's not as readable as for example: ?features=firstfeature,secondfeature,th

tvbz's avatar
tvbz's avatar jlrdw4yrs agoLivewire
4
16
Last reply by jlrdw 4yrs ago
KalimeroMK's avatar

Query builder not selecting data correctly

My Query builder in not selecting the correct data it selecting all data form table not according to status my code <?php namespace App\Modules\Search\Repositories; use App\Modules\Fleet\Models\Fleet; use App\Modules\Search\Exceptions\SearchVehiclesIndexException; use App\Modules\Search\Interfaces\SearchVehiclesInterface; use App\Modules\Vehicle\Models\Vehicle; use App\Mod

KalimeroMK's avatar
KalimeroMK's avatar KalimeroMK4yrs agoLaravel
4
1
Last reply by KalimeroMK 4yrs ago
Nite's avatar

Query Collection on nested item

Assume I have the following Eloquent query (Since I will use the returned collection in more than one place, I eager load the related model) : $myModels = MyModel::with(['myRelatedModel'])->where(...) ... ->get(); Now, what if I want to query $myModels to return only the ones where a field of myRelatedModel is xyz ? In a normal Eloquent query I'd use whereHas, but on col

Nite's avatar
Nite's avatar mabdullahs...4yrs agoLaravel
7
1
Last reply by mabdullahsari 4yrs ago
cecily's avatar

Laravel - how to use model's ID inside belongs to many relationship query?

Models: Products Variants VariantValue // Product.php public function variants() { return $this->belongsToMany(Variant::class, 'product_variant', 'product_id', 'variant_id') ->with([ 'values' => function ($builder) { return $builder->whereHas('products', function ($q) { return $q->where('products.id', $

cecily's avatar
cecily's avatar cecily4yrs agoLaravel
2
1
Last reply by cecily 4yrs ago
krackjack's avatar

How to concat MySQL query into MongoDB

Hello Everyone! How to combine first name and last name in Laravel, and I am using Mongo Database in db table i have two field first name and last name... i was using laravel eloquent query for fetching records i was used sql concat but it's not working because of mongoDb Here my Query orWhere(\DB::raw("CONCAT(last_name, ' ', first_name)"), 'LIKE', "%".$sear

krackjack's avatar
krackjack's avatar Sinnbeck4yrs agoLaravel
7
1
Last reply by Sinnbeck 4yrs ago
ioiofadhil's avatar

No query results for model INSIDE JOB

Hi, i want make a simple task for queue laravel. I have this error in "failed_jobs" Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model....... What did i do wrong? //controller public function addUser(Request $req) { $user = new User; $user->name = $req->name; $user->username = $req->username;

ioiofadhil's avatar
ioiofadhil's avatar Sinnbeck4yrs agoLaravel
3
1
Last reply by Sinnbeck 4yrs ago
mshafnas's avatar

Laravel Query

Hi Developers, can anyone help me to optimize the below code. What I want is to get the same results with forgetting the key instead get it from the query. $mul_users = User::join('role_users', 'role_users.user_id' , '=' , 'users.id') ->join('roles', 'roles.id' , '=' , 'role_users.role_id') ->where('roles.rank', '=', $mu_manager_ran

mshafnas's avatar
mshafnas's avatar Sinnbeck4yrs agoLaravel
2
1
Last reply by Sinnbeck 4yrs ago
Bervetuna's avatar

Stuck on eloquent related model query

I'm working on a registration system for a facility for disabled people. One of the things the team leaders are registering is the meals taken by the residents. I have a gebruikers (= the residents) table. Gebruikers are grouped in a team (many to many relationship). Gebruikers can have a breakfast, diner and supper. They eat together with their team colleagues. Meals are regis

Bervetuna's avatar
Bervetuna's avatar Bervetuna4yrs agoEloquent
6
1
Last reply by Bervetuna 4yrs ago
anejjar's avatar

Laravel Query : find duplicates records based on multi conditions and group the result duplicates

I have a table of Shops and there is some duplicates records and i need to get them out but with some conditions : Get duplicates based on Name and Address OR if they have same Type AND Status i have used this solution but it only get 1 record and i want to get all duplicate records and also group them. Shop::where(function ($query) { $query->whereIn('id', function (

anejjar's avatar
anejjar's avatar Tray22yrs agoLaravel
3
1
Last reply by Tray2 2yrs ago
FounderStartup's avatar

What is the correct nested relationship query for filter page

I need to show list of builders on a page with selected city in dropdown filter. Builder is related to project project is related to city my controller public function SearchBuildersincity(Request $request){ $city = $request->project_city; $builders = Builders::whereHas('project.city', function ($query) { $query->where('status', 1)

FounderStartup's avatar
FounderStartup's avatar FounderSta...4yrs agoLaravel
4
1
Last reply by FounderStartup 4yrs ago
justash666's avatar

Chaining orWhere clauses on a query doesn't produce correct SQL statements

Hi all Today I had a quick script I needed to run to clear out some models from my DB I had some fields about the models but not their IDs, so I wrote quick query to pluck the uuid from. I had 3 bits of info to find the model by - orig, dest and dep_time_local (this is a Flight model) I simply did something like: $flights = Flight::where([ 'orig' => 'BEG', 'dest' =&g

justash666's avatar
justash666's avatar justash6664yrs agoEloquent
14
15
Last reply by justash666 4yrs ago
RayC's avatar

Query question. Not sure if this is possible.

Hello All, I need to run a query that return a total based on two different columns in a table. I will try and explain it the best way I can. I have a sold_log table, the table can have two salespeople on each entry if they are both associated with the log entry. A salesperson will get credit for 1 full 'Sold Log' if they are the only salesperson on the entry and .5 if there is

RayC's avatar
RayC's avatar bugsysha4yrs agoEloquent
3
1
Last reply by bugsysha 4yrs ago
Armani's avatar

How to write a better query?

How to write this query better: $employee = DB::table('employees') ->select('employees.id', 'employees.name') ->addSelect(['rank_id' => DB::table('reranks')->select('rank_id') ->whereColumn('reranks.employee_id', 'employees.id') ->orderByDesc('doc_date') ->limit(1) ])->addSelect(['doc_date' =>

Armani's avatar
Armani's avatar bugsysha4yrs agoGuides
1
1
Last reply by bugsysha 4yrs ago
filipbaginski's avatar

Query error

Hi everyone, I have an error in query and I'm not able to see what I did wrong: ​ { return $request->withOrdering($request->withFilters( $query ->select(DB::raw('users.id as 'id', users.name as 'name', sum(products.price) as 'total'')) ->join('orders', 'users.id', '=', 'orders.user_id') ->joi

filipbaginski's avatar
filipbaginski's avatar amjad_ah4yrs agoLaravel
7
1
Last reply by amjad_ah 4yrs ago
FounderStartup's avatar

How to get correct nested eloquent query

I need to show total 'listings' in 'projects' of a 'builder' $totallistings = App\Models\Listings::whereHas('project.builder', function ($query) {$query->where('id','$item->id');})->count(); listings is related to projects project is related to builder Its giving nill count.

FounderStartup's avatar
FounderStartup's avatar FounderSta...4yrs agoLaravel
9
2
Last reply by FounderStartup 4yrs ago
eggplantSword's avatar

Eloquent query not working as expected

I'm trying to filter using a query builder but I'm not getting the expected results. This is my code so far: The $request->get('detail') is the user input to search by, on the model being searched the relationships are like this public function activations() { return $this->hasMany(Activation::class, 'dmm_report_id'); } public function portabilities() {

eggplantSword's avatar
eggplantSword's avatar tykus4yrs agoEloquent
6
1
Last reply by tykus 4yrs ago
wikorl's avatar

Error when using Eloquent query

I'm messing arround with Laravel as API backend and Nuxt js as frontend. Authentication on client side works with Laravel Sanctum pretty fine. But when I trying to query the route "/api/trips" I am facing some, in my opinon strange behaviour. Migration: Schema::create('trips', function (Blueprint $table) { $table->string('uuid')->primary();

wikorl's avatar
wikorl's avatar wikorl4yrs agoEloquent
6
1
Last reply by wikorl 4yrs ago
movepixels's avatar

Mal-formed Query assistance

I am running a query and for some unknown reason the id's are getting edited. I am using UUID, i checked the model and made sure the id in question is not being cast as something query: "select * from `area_profiles` where `area_profiles`.`subscription_id` in (35, 9223372036854775807, 4);" Thats how the query is executed on the correct id's [ '35dd6aa2-5d58-11ec-8571

movepixels's avatar
movepixels's avatar movepixels4yrs agoLaravel
6
1
Last reply by movepixels 4yrs ago
tomasosho's avatar

how to paginate query

Original Query $sort = File::latest()->get()->groupBy(function($item) { return $item->date; }); I tried this, and it doesn't work. it only gives one item $sort = File::latest()->paginate(50)->groupBy(function($item) { return $item->date; });

tomasosho's avatar
tomasosho's avatar Sinnbeck4yrs agoCode Review
9
1
Last reply by Sinnbeck 4yrs ago
MarvinX's avatar

Is it possible to use a wildcard key in a JSON query?

I need to query for a model where any json value matches the given parameter. All entries have the same keys even though some keys might be missing. The data is provided by another package so I cannot transfer the data into a separate table. I currently do it like this but it looks really bad to me: foreach ($keys as $key) { $query->orWhere("{$field}->{$key}"

MarvinX's avatar
MarvinX's avatar MarvinX4yrs agoEloquent
4
1
Last reply by MarvinX 4yrs ago
mkumar2001's avatar

How to optimize this query in laravel

Thanks in advance. I want to optimize below query because when it applies for thousands of data then thousands for models also precessed by using below query. Can anyone suggest solution for below query. @foreach($invoice as $inv) @foreach(App\Models\invoicedescription::where('invoice_id',$inv->id)->get() as $invdes ) { $dat += $invdes->qty*$invdes->rate; }

mkumar2001's avatar
mkumar2001's avatar jlrdw4yrs agoLaravel
19
1
Last reply by jlrdw 4yrs ago
hjortur17's avatar

Clear query string

Hi, can anyone assist me clearing query strings when it's empty? I'm doing search and when the input is empty I want the query string to be removed, but at the moment it's like this: ?leita= Here is what I have: Index.vue search: throttle(function (value) { this.$inertia.get('/bloggið', {leita: value}, { preserveState: true, replace:

hjortur17's avatar
hjortur17's avatar hjortur174yrs agoInertia
2
1
Last reply by hjortur17 4yrs 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.