Wen · @Wen
160 followers · 1575 posts · Server mastodon.scot

Ronan O’Gara in full eloquent flow

Bloody hilarious…. Do have a look even if it only appears to be on Atwater.

theguardian.com/sport/2023/aug

By the team did win 🤣

#diplomacy #eloquent #france #teamtalk #rugby

Last updated 1 year ago

Pavel Zaněk · @zanekpavel
7 followers · 27 posts · Server mastodonczech.cz

In , the N+1 problem occurs when accessing related model properties in a loop, causing a new query for each iteration. This can slow your application. Laravel's solution is Eager Loading. Instead of retrieving individual models, you can load all related models at once. Use the with() method on the query to specify the relationships to be eager loaded. Efficient database querying is crucial for a performant application.

laravel.com/docs/master/eloque

#laravel #sql #eloquent

Last updated 1 year ago

michabbb · @michabbb
21 followers · 568 posts · Server social.vivaldi.net

Bouncer is an elegant, framework-agnostic approach to managing roles and abilities for any app using models. With an expressive and fluent syntax, it stays out of your way as much as possible.

github.com/JosephSilber/bounce

#eloquent #php #laravel

Last updated 1 year ago

michabbb · @michabbb
21 followers · 550 posts · Server social.vivaldi.net

Generate slugs when saving models

This provides a trait that will generate a unique slug when saving any Eloquent model.

github.com/spatie/laravel-slug

#eloquent #laravel #package

Last updated 1 year ago

"The problem of the twentieth century is the problem of the color–line,—the relation of the darker to the lighter races of men in Asia and Africa, in America and the islands of the sea. It was a phase of this problem that caused the Civil War; and however much they who marched South and North in 1861 may have fixed on the technical points, of union and local autonomy as a shibboleth, all nevertheless knew, as we know, that the question of Negro slavery was the real cause of the conflict. Curious it was, too, how this deeper question ever forced itself to the surface despite effort and disclaimer. No sooner had Northern armies touched Southern soil than this old question, newly guised, sprang from the earth,—What shall be done with Negroes? Peremptory military commands this way and that, could not answer the query; the Emancipation Proclamation seemed but to broaden and intensify the difficulties; and the War Amendments made the Negro problems of to–day."

- W.E.B. Du Bois

#eloquent

Last updated 1 year ago

michabbb · @michabbb
17 followers · 446 posts · Server social.vivaldi.net

Models: How to Filter by Dates like a Pro with Traits by Moumen Alisawe

link.medium.com/vKLm0O2eWyb

#laravel #eloquent

Last updated 1 year ago

JBRoss · @jbross
15 followers · 277 posts · Server mstdn.party

"The ability to speak eloquently is not to be confused with having something to say." — Michael P. Hart — — —

#michaelphart #quote #quotes #speak #eloquent #important #articulate #hesitant #trivial

Last updated 1 year ago

michabbb · @michabbb
16 followers · 409 posts · Server social.vivaldi.net

Easily exclude model entities from queries.

This package allows you to define a subset of model entities that should be excluded from eloquent queries.

github.com/maize-tech/laravel-

#laravel #eloquent

Last updated 1 year ago

michabbb · @michabbb
16 followers · 395 posts · Server social.vivaldi.net
michabbb · @michabbb
14 followers · 332 posts · Server social.vivaldi.net

Orion

tailflow.github.io/laravel-ori

The simplest way to create with Laravel

Fully featured REST API for your models and relationships with the simplicity of Laravel as you love it.

#laravel #rest #api #eloquent #openapi

Last updated 1 year ago

Felipe Gac · @elfelipegac
12 followers · 97 posts · Server vmst.io

just found this eloquent wrapper for wordpress. it’s a little bit old, but it works very well.
nice way to query post types with less lines of code 👌🏻

github.com/tareq1988/wp-eloque

#wordpress #bedrock #eloquent

Last updated 2 years ago

Michael · @michael
94 followers · 960 posts · Server mstdn.thms.uk
scottkeckwarren · @scottkeckwarren
14 followers · 104 posts · Server phpc.social

Okay developers, what's your favorite caching package for models? I have a project that needs it and I'm looking for recommendations .

#php #laravel #eloquent

Last updated 2 years ago

michabbb · @michabbb
5 followers · 93 posts · Server social.vivaldi.net

Write cleaner queries with WhereRelation
youtube.com/watch?v=ocQFp9Q67V

#laravel #eloquent

Last updated 2 years ago

Alliance to Cure · @Alliancetocure
2 followers · 3 posts · Server med-mastodon.com

This past Saturday, a few of our members had the pleasure of watching "Eloquent" at Music Box Theater in Chicago! Thank you to our members who helped make this happen! It's certainly a unique experience to watch the film in a theater and visit with Dr. Awad!
If anyone is interested in planning a similar event, you can reach out to lindsay@alliancetocure.org

#eloquentmovie #documentary #cavernousmalformation #patientstories #eloquent #Film #RareDisease

Last updated 2 years ago

lil5 :xfce: :golang: · @lil5
70 followers · 942 posts · Server fosstodon.org

@janriemer @sia

I’d say it does make it “magically” faster:

If you compare the developer experience with speed; vs

dev experience is 1:1
speed is 1:40

#php #eloquent #Gorm

Last updated 2 years ago

Anand Pilania :verified: · @AnandPilania
17 followers · 43 posts · Server phpc.social

customize the default order of data retrieved from with .

#laravel #Relationship #eloquent #reorder #laraveltipsandtricks

Last updated 2 years ago

Anand Pilania :verified: · @AnandPilania
17 followers · 43 posts · Server phpc.social
Óscar J. Baeza · @ojbaeza
127 followers · 272 posts · Server mas.to

Todo apunta a que me tengo que poner con y . La verdad es que preferiría @symfony dado que vengo de , pero bueno. La decisión no es mía. Espero que no dé muchos problemas a la hora de hacer tests dobles con @phpunit.

#PHP #slimphp #eloquent #laravel

Last updated 2 years ago

Matthew Turland · @elazar
537 followers · 1058 posts · Server phpc.social

I have a question for my / peeps.

I'm following the instructions to declare a many-to-many relationship between models as documented here: laravel.com/docs/9.x/eloquent-

However, I'm finding that I have to specify the $table parameter in belongsToMany() calls even though I've got a chained call to using() that specifies the class of the intermediate model, which also defines the table name for that model.

Why is this? This duplication of the table name seems like a DRY violation.

#laravel #eloquent

Last updated 2 years ago