home.social

#eloquent — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #eloquent, aggregated by home.social.

  1. 🗂️ Use #GoogleSheets as a #Laravel database! laravel-google-sheets-database-driver maps spreadsheet = DB, tab = table, row 1 = columns. Full #Eloquent & Query Builder support. #PHP #opensource
    github.com/AmazingBV/laravel-g

  2. 🗂️ Use #GoogleSheets as a #Laravel database! laravel-google-sheets-database-driver maps spreadsheet = DB, tab = table, row 1 = columns. Full #Eloquent & Query Builder support. #PHP #opensource
    github.com/AmazingBV/laravel-g

  3. 🗂️ Use #GoogleSheets as a #Laravel database! laravel-google-sheets-database-driver maps spreadsheet = DB, tab = table, row 1 = columns. Full #Eloquent & Query Builder support. #PHP #opensource
    github.com/AmazingBV/laravel-g

  4. 🗂️ Use #GoogleSheets as a #Laravel database! laravel-google-sheets-database-driver maps spreadsheet = DB, tab = table, row 1 = columns. Full #Eloquent & Query Builder support. #PHP #opensource
    github.com/AmazingBV/laravel-g

  5. 🗂️ Use #GoogleSheets as a #Laravel database! laravel-google-sheets-database-driver maps spreadsheet = DB, tab = table, row 1 = columns. Full #Eloquent & Query Builder support. #PHP #opensource
    github.com/AmazingBV/laravel-g

  6. 55 Times in a 3 hour span is excessive even for a demented pyscho. In moments of anger or frustration i might do 5 posts in a day .

    5150 in shells might be a good thing .

    ( The person must be deemed a danger to self (DTS), danger to others (DTO), or gravely disabled.) Fits?

    #trump #cognitive #obama #nobelpeaceprize #eloquent #narcicissm
    #mentalHealthMatters

  7. 55 Times in a 3 hour span is excessive even for a demented pyscho. In moments of anger or frustration i might do 5 posts in a day .

    5150 in shells might be a good thing .

    ( The person must be deemed a danger to self (DTS), danger to others (DTO), or gravely disabled.) Fits?

    #trump #cognitive #obama #nobelpeaceprize #eloquent #narcicissm
    #mentalHealthMatters

  8. 55 Times in a 3 hour span is excessive even for a demented pyscho. In moments of anger or frustration i might do 5 posts in a day .

    5150 in shells might be a good thing .

    ( The person must be deemed a danger to self (DTS), danger to others (DTO), or gravely disabled.) Fits?

    #trump #cognitive #obama #nobelpeaceprize #eloquent #narcicissm
    #mentalHealthMatters

  9. 55 Times in a 3 hour span is excessive even for a demented pyscho. In moments of anger or frustration i might do 5 posts in a day .

    5150 in shells might be a good thing .

    ( The person must be deemed a danger to self (DTS), danger to others (DTO), or gravely disabled.) Fits?

    #trump #cognitive #obama #nobelpeaceprize #eloquent #narcicissm
    #mentalHealthMatters

  10. Google sort une application de dictée par IA gratuite, et elle fonctionne sans internet, sauf que...
    mac4ever.com/195546
    #Mac4Ever #eloquent #Google

  11. Google sort une application de dictée par IA gratuite, et elle fonctionne sans internet, sauf que...
    mac4ever.com/195546
    #Mac4Ever #eloquent #Google

  12. Google sort une application de dictée par IA gratuite, et elle fonctionne sans internet, sauf que...
    mac4ever.com/195546
    #Mac4Ever #eloquent #Google

  13. Song Review: Eloquent – “Checkered Past”

    In April 2026, synthpop duo Eloquent released “Checkered Past,” the lead-off single from their album, Sound Theatre.

    aeschtunes.com/2026/04/07/song

    #Music, #MusicReview, #Eloquent, #2020s, #2020sMusic, #Synthpop, #ElectronicMusic, #AeschTunes

  14. Song Review: Eloquent – “Checkered Past”

    In April 2026, synthpop duo Eloquent released “Checkered Past,” the lead-off single from their album, Sound Theatre.

    aeschtunes.com/2026/04/07/song

    #Music, #MusicReview, #Eloquent, #2020s, #2020sMusic, #Synthpop, #ElectronicMusic, #AeschTunes

  15. Song Review: Eloquent – “Checkered Past”

    In April 2026, synthpop duo Eloquent released “Checkered Past,” the lead-off single from their album, Sound Theatre.

    aeschtunes.com/2026/04/07/song

    #Music, #MusicReview, #Eloquent, #2020s, #2020sMusic, #Synthpop, #ElectronicMusic, #AeschTunes

  16. Song Review: Eloquent – “Checkered Past”

    In April 2026, synthpop duo Eloquent released “Checkered Past,” the lead-off single from their album, Sound Theatre.

    aeschtunes.com/2026/04/07/song

    #Music, #MusicReview, #Eloquent, #2020s, #2020sMusic, #Synthpop, #ElectronicMusic, #AeschTunes

  17. #DelegatedTypes in #Laravel — Smarter Alternative to STI #PHP #Eloquent #opensource #webdev

    🏗️ Model class hierarchies via polymorphic relationships & delegation — composition over inheritance, done right

    🧵👇

    🔄 Each subtype keeps its own table while sharing a common root Entry model — no more nullable column bloat like with STI
    🎯 Comments, likes & reactions attach to the Entry — one route, one controller, no endpoint explosion

  18. #DelegatedTypes in #Laravel — Smarter Alternative to STI #PHP #Eloquent #opensource #webdev

    🏗️ Model class hierarchies via polymorphic relationships & delegation — composition over inheritance, done right

    🧵👇

    🔄 Each subtype keeps its own table while sharing a common root Entry model — no more nullable column bloat like with STI
    🎯 Comments, likes & reactions attach to the Entry — one route, one controller, no endpoint explosion

  19. #DelegatedTypes in #Laravel — Smarter Alternative to STI #PHP #Eloquent #opensource #webdev

    🏗️ Model class hierarchies via polymorphic relationships & delegation — composition over inheritance, done right

    🧵👇

    🔄 Each subtype keeps its own table while sharing a common root Entry model — no more nullable column bloat like with STI
    🎯 Comments, likes & reactions attach to the Entry — one route, one controller, no endpoint explosion

  20. #DelegatedTypes in #Laravel — Smarter Alternative to STI #PHP #Eloquent #opensource #webdev

    🏗️ Model class hierarchies via polymorphic relationships & delegation — composition over inheritance, done right

    🧵👇

    🔄 Each subtype keeps its own table while sharing a common root Entry model — no more nullable column bloat like with STI
    🎯 Comments, likes & reactions attach to the Entry — one route, one controller, no endpoint explosion

  21. #DelegatedTypes in #Laravel — Smarter Alternative to STI #PHP #Eloquent #opensource #webdev

    🏗️ Model class hierarchies via polymorphic relationships & delegation — composition over inheritance, done right

    🧵👇

    🔄 Each subtype keeps its own table while sharing a common root Entry model — no more nullable column bloat like with STI
    🎯 Comments, likes & reactions attach to the Entry — one route, one controller, no endpoint explosion

  22. Eloquent Guard: как ловить N+1 и медленные запросы в Laravel, не зарываясь в vendor

    Проблема N+1 стара как мир. Инструментов много: Debugbar хорош локально, Telescope тяжеловат для продакшена. Мне хотелось решения, которое будет «стучать» в Slack или Telegram именно тогда, когда проблема случилась на проде, и при этом сразу показывать пальцем на виновную строку кода.

    habr.com/ru/articles/1010822/

    #laravel #eloquent #php #sql #mysql #postgresql #database_optimization #database_performance #database_monitoring

  23. Eloquent Guard: как ловить N+1 и медленные запросы в Laravel, не зарываясь в vendor

    Проблема N+1 стара как мир. Инструментов много: Debugbar хорош локально, Telescope тяжеловат для продакшена. Мне хотелось решения, которое будет «стучать» в Slack или Telegram именно тогда, когда проблема случилась на проде, и при этом сразу показывать пальцем на виновную строку кода.

    habr.com/ru/articles/1010822/

    #laravel #eloquent #php #sql #mysql #postgresql #database_optimization #database_performance #database_monitoring

  24. Eloquent Guard: как ловить N+1 и медленные запросы в Laravel, не зарываясь в vendor

    Проблема N+1 стара как мир. Инструментов много: Debugbar хорош локально, Telescope тяжеловат для продакшена. Мне хотелось решения, которое будет «стучать» в Slack или Telegram именно тогда, когда проблема случилась на проде, и при этом сразу показывать пальцем на виновную строку кода.

    habr.com/ru/articles/1010822/

    #laravel #eloquent #php #sql #mysql #postgresql #database_optimization #database_performance #database_monitoring

  25. Eloquent Guard: как ловить N+1 и медленные запросы в Laravel, не зарываясь в vendor

    Проблема N+1 стара как мир. Инструментов много: Debugbar хорош локально, Telescope тяжеловат для продакшена. Мне хотелось решения, которое будет «стучать» в Slack или Telegram именно тогда, когда проблема случилась на проде, и при этом сразу показывать пальцем на виновную строку кода.

    habr.com/ru/articles/1010822/

    #laravel #eloquent #php #sql #mysql #postgresql #database_optimization #database_performance #database_monitoring

  26. Uff, I've been bit by a quirky Eloquent issue. The worse part is that I know why it happens but I don't know how to "fix it" (I've found a workaround, but Id like to prevent it from happening in the future, ideally with a patch upstream).

    It involves relationships, macros for the Builder and eloquent silently overriding an `id` column because the results from the SQL query contain 2 different `id` columns (because of a join).

    I'll try to create a sample project with minimum code to reproduce and see if I can manage a fix.

    #Laravel #Eloquent

  27. Uff, I've been bit by a quirky Eloquent issue. The worse part is that I know why it happens but I don't know how to "fix it" (I've found a workaround, but Id like to prevent it from happening in the future, ideally with a patch upstream).

    It involves relationships, macros for the Builder and eloquent silently overriding an `id` column because the results from the SQL query contain 2 different `id` columns (because of a join).

    I'll try to create a sample project with minimum code to reproduce and see if I can manage a fix.

    #Laravel #Eloquent

  28. Uff, I've been bit by a quirky Eloquent issue. The worse part is that I know why it happens but I don't know how to "fix it" (I've found a workaround, but Id like to prevent it from happening in the future, ideally with a patch upstream).

    It involves relationships, macros for the Builder and eloquent silently overriding an `id` column because the results from the SQL query contain 2 different `id` columns (because of a join).

    I'll try to create a sample project with minimum code to reproduce and see if I can manage a fix.

  29. Uff, I've been bit by a quirky Eloquent issue. The worse part is that I know why it happens but I don't know how to "fix it" (I've found a workaround, but Id like to prevent it from happening in the future, ideally with a patch upstream).

    It involves relationships, macros for the Builder and eloquent silently overriding an `id` column because the results from the SQL query contain 2 different `id` columns (because of a join).

    I'll try to create a sample project with minimum code to reproduce and see if I can manage a fix.

    #Laravel #Eloquent

  30. Uff, I've been bit by a quirky Eloquent issue. The worse part is that I know why it happens but I don't know how to "fix it" (I've found a workaround, but Id like to prevent it from happening in the future, ideally with a patch upstream).

    It involves relationships, macros for the Builder and eloquent silently overriding an `id` column because the results from the SQL query contain 2 different `id` columns (because of a join).

    I'll try to create a sample project with minimum code to reproduce and see if I can manage a fix.

    #Laravel #Eloquent

  31. 6LeafLife . Use it reflexively directly or indirectly. vs parabola. Stay in side.

  32. A great option to optimize database writes in Laravel is using bulk operations.
    E.g. "upsert()" can insert/update multiple rows with _one_ query using "on duplicate" logic:

    User::upsert(values: [
    ['email' => 'foo@domain', 'name' => 'Foo'],
    ['email' => 'bar@domain', 'name' => 'Bar'],
    ], uniqueBy: ['email'], update: ['name']);

    becomes:

    INSERT INTO users (email, name),
    VALUES
    ('foo@example', 'Foo'),
    ('bar@example', 'Bar')
    ON DUPLICATE KEY UPDATE name = values(name);

    #laravel #eloquent

  33. While there are many tutorials like dudi.dev/optimize-laravel-data to create better queries to read data in Laravel, there are only very few to optimize writes.

    Probably most underrated feature is "isDirty()" to save data only if it got changed, e.g.

    // Retrieve a user from the database
    $user = User::find(1);

    // Change the name attribute
    $user->name = 'Some Name';

    // Save only if there are changes
    if ($user->isDirty()) {
    $user->save();
    }

    #laravel #eloquent

  34. While there are many tutorials like dudi.dev/optimize-laravel-data to create better queries to read data in Laravel, there are only very few to optimize writes.

    Probably most underrated feature is "isDirty()" to save data only if it got changed, e.g.

    // Retrieve a user from the database
    $user = User::find(1);

    // Change the name attribute
    $user->name = 'Some Name';

    // Save only if there are changes
    if ($user->isDirty()) {
    $user->save();
    }

    #laravel #eloquent

  35. While there are many tutorials like dudi.dev/optimize-laravel-data to create better queries to read data in Laravel, there are only very few to optimize writes.

    Probably most underrated feature is "isDirty()" to save data only if it got changed, e.g.

    // Retrieve a user from the database
    $user = User::find(1);

    // Change the name attribute
    $user->name = 'Some Name';

    // Save only if there are changes
    if ($user->isDirty()) {
    $user->save();
    }

    #laravel #eloquent

  36. While there are many tutorials like dudi.dev/optimize-laravel-data to create better queries to read data in Laravel, there are only very few to optimize writes.

    Probably most underrated feature is "isDirty()" to save data only if it got changed, e.g.

    // Retrieve a user from the database
    $user = User::find(1);

    // Change the name attribute
    $user->name = 'Some Name';

    // Save only if there are changes
    if ($user->isDirty()) {
    $user->save();
    }

    #laravel #eloquent

  37. When adding the type for the Query Builder that's passed as an argument to an Eloquent's scope, do you use `Illuminate\Database\Eloquent\Builder` or `Illuminate\Contracts\Database\Eloquent\Builder`.

    I just realized they were being used interchangeably on a project I've been working on.

    My initial thought would be to use always the contract (the interface is implemented by `Eloquent\Builder` and by `Eloquent/Relations/Relation`), but looking at the docs, the official stance is to import the Builder object 🤔

    laravel.com/docs/12.x/eloquent

    Any thoughts?

    #Laravel #Eloquent #PHP

  38. When adding the type for the Query Builder that's passed as an argument to an Eloquent's scope, do you use `Illuminate\Database\Eloquent\Builder` or `Illuminate\Contracts\Database\Eloquent\Builder`.

    I just realized they were being used interchangeably on a project I've been working on.

    My initial thought would be to use always the contract (the interface is implemented by `Eloquent\Builder` and by `Eloquent/Relations/Relation`), but looking at the docs, the official stance is to import the Builder object 🤔

    laravel.com/docs/12.x/eloquent

    Any thoughts?

    #Laravel #Eloquent #PHP

  39. When adding the type for the Query Builder that's passed as an argument to an Eloquent's scope, do you use `Illuminate\Database\Eloquent\Builder` or `Illuminate\Contracts\Database\Eloquent\Builder`.

    I just realized they were being used interchangeably on a project I've been working on.

    My initial thought would be to use always the contract (the interface is implemented by `Eloquent\Builder` and by `Eloquent/Relations/Relation`), but looking at the docs, the official stance is to import the Builder object 🤔

    laravel.com/docs/12.x/eloquent

    Any thoughts?

  40. When adding the type for the Query Builder that's passed as an argument to an Eloquent's scope, do you use `Illuminate\Database\Eloquent\Builder` or `Illuminate\Contracts\Database\Eloquent\Builder`.

    I just realized they were being used interchangeably on a project I've been working on.

    My initial thought would be to use always the contract (the interface is implemented by `Eloquent\Builder` and by `Eloquent/Relations/Relation`), but looking at the docs, the official stance is to import the Builder object 🤔

    laravel.com/docs/12.x/eloquent

    Any thoughts?

    #Laravel #Eloquent #PHP

  41. When adding the type for the Query Builder that's passed as an argument to an Eloquent's scope, do you use `Illuminate\Database\Eloquent\Builder` or `Illuminate\Contracts\Database\Eloquent\Builder`.

    I just realized they were being used interchangeably on a project I've been working on.

    My initial thought would be to use always the contract (the interface is implemented by `Eloquent\Builder` and by `Eloquent/Relations/Relation`), but looking at the docs, the official stance is to import the Builder object 🤔

    laravel.com/docs/12.x/eloquent

    Any thoughts?

    #Laravel #Eloquent #PHP

  42. Turned a weekend hack into a 1000× speedup: importing Firefox’s places.sqlite went from 4h ➝ 10s. 300k+ rows, clean architecture, future-ready stats. Full story here: reifschneider.digital/blog/tam

    #databases #performance #firefox #eloquent #mariadb #charm