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

vincent15000's avatar

What is the real advantage of Laravel Folio

Hello, For some weeks, I wonder what is the real advantage of Laravel Folio. It seems to let developers create routes easier, but I don't find it easier. Who has already used Laravel Folio ? Thanks for sharing your experience with this package ;). V

vincent15000's avatar
vincent15000's avatar vincent150...5mos agoLaravel
2
1
Last reply by vincent15000 5mos ago
Darkdawg's avatar

Livewire Image upload component performance

I have a massive admin image upload component, and the performance is starting to bother me. The component handles uploads, resizing, generating modern formats (avif / webp), all with a live preview. We're talking like 30 different inputs, and like 600 views within the component according to my debugbar. I'm using mostly Flux UI stuff. Now I'm not concerned with the generation

Darkdawg's avatar
Darkdawg's avatar vincent150...5mos agoLivewire
2
1
Last reply by vincent15000 5mos ago
hemanthcm's avatar

Seeking Workaround: Automated Google Drive Ownership Transfer Blocked by Client Library

I am using the Google PHP API Client ("google/apiclient": "^2.15") within a Laravel service account to automate Google Sheet creation. To avoid hitting the Service Account's storage quota, I must immediately transfer ownership of the created sheet to a specific target user ($email). Current Status: The code successfully initiates the transfer, but the final

hemanthcm's avatar
hemanthcm's avatar DoubleClic...5mos agoLaravel
1
1
Last reply by DoubleClickDesignLtd 5mos ago
Shivamyadav's avatar

What do you prefer to choose?

Repository pattern or actions while using the repeated functionality and keeping the code cosistence. Generally I did not like the respository pattern. It makes code more complex and writing the more code for just a resuable functions and other stuffs.

Shivamyadav's avatar
Shivamyadav's avatar Snapey5mos agoFeedback
8
1
Last reply by Snapey 5mos ago
GeorgeKala's avatar

How to Implement Multilingual Enums in Laravel for API Responses with Translations

I'm building an API in Laravel and want to implement enums with multilingual support. For example, I have a CONNECTION_TYPE enum with values like WIRED and WIRELESS. I want to display these values in both English and Georgian depending on the user's locale. My goal is: To use enums for clean code and type safety. To have translations for enum values in both English and Georgia

GeorgeKala's avatar
GeorgeKala's avatar osama_985mos agoLaravel
4
2
Last reply by osama_98 5mos ago
tanjilurrahman21's avatar

Laravel Developer Working in CodeIgniter

Hello, I have recently joined a company for the php developer role. Previously I had 1 year experience working with laravel, react. Now at my new job I have to work with legacy code. so php 7 codeigniter 3.1. As a laravel developer I do find it demotivating to work on a tech that is outdated. I am seeking for suggestions like if I work here for a year or two what should be the

tanjilurrahman21's avatar
tanjilurrahman21's avatar jlrdw5mos agoLaravel
3
1
Last reply by jlrdw 5mos ago
Chron's avatar

Order based on similarities

// Post m:n Category $post = Post::find(1); Post::whereHas('categories', function($q) { $q->whereIn('categories.id', $post->categories->pluck('id')->toArray()) ->where('posts.id', '<>', $post->id); })->get(); Currently it's ordered by id. For example The categories of Post#1 are id [2,3] and the second query gives [ // Post id: 2 that has categ

Chron's avatar
Chron's avatar Shivamyada...5mos agoEloquent
1
1
Last reply by Shivamyadav 5mos ago
wcampbel's avatar

Herd doesn't recognize installed version of node. Windows 11.

I have nodejs 22.21.1 installed. This is visible in the Herd GUI and when I run a command line node -v. The problem is when I run npm run dev. It errors out saying: "You are using Node.js 17.7.2. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version." I don't even know where Herd is getting that from. I have NVM and have tried to forc

wcampbel's avatar
wcampbel's avatar wcampbel5mos agoVite
2
2,675
Last reply by wcampbel 5mos ago
Talinon's avatar

updateOrCreate() case sensitivity

Context: Synchronizing data with Microsoft's Graph API Problem: Items have immutable ids that are case sensitive. There are many occurrences where unique items have the exact same Id, except for a single character having a different casing. i.e.: (notice the 4th last character) Item #1: EWg0AQbLDgfAFWEaaZsFuzmolNQAAAADDIQAA Item #2: EWg0AQbLDgfAFWEaaZsFuzmolNQAAAADDiQAA Whe

Talinon's avatar
Talinon's avatar JussiManni...5mos agoEloquent
5
1
Last reply by JussiMannisto 5mos ago
Developer654079525's avatar

Type hinting

In production, are you actually using type hinting or not? Specifically for relationship and controller methods. Do you treat it as a nice-to-have or something actually worth having?

Developer654079525's avatar
Developer654079525's avatar martinbean5mos agoLaravel
5
8
Last reply by martinbean 5mos ago
psizer10's avatar

Encrypted .env breaks application

I am having some issues when trying to utilise an encrypted environment file. Without it, deployments run successfully, and my app works fine. However, when I deploy the encrypted env there are problems. I've tracked it (I think) to the fpmRuntime and encounter the following error. { "exception": { "class": "Symfony\Component\Console\Exception\Comma

psizer10's avatar
psizer10's avatar joshdonnel...5mos agoVapor
1
1
Last reply by joshdonnell 5mos ago
fitim's avatar

Laravel 12 – php artisan schedule:run causes periodic CPU spikes even with no scheduled tasks

I’m running into a strange performance issue with the Laravel scheduler and I’m trying to understand what’s going on. Framework: Laravel 12 PHP: 8.2 Web server: Apache on Linux "require": { "php": "^8.2", "ext-curl": "", "ext-openssl": "", "firebase/php-jwt": "^6.11", "laravel/framewo

fitim's avatar
fitim's avatar Glukinho5mos agoLaravel
21
2
Last reply by Glukinho 5mos ago
simotion's avatar

Product pricing history vs performance — denormalization or single source of truth?

I originally had three price columns on my products table: price_purchase, price_sell and price_advice. To support pricing history, I introduced a ProductPrice model. The product_prices table contains: • id • product_id • price_type (purchase / sell / advice) • price_value • publisher_id • publisher_name (cached for when a user gets deleted) • timestamps Whenever a product is c

simotion's avatar
simotion's avatar simotion5mos agoLaravel
4
3
Last reply by simotion 5mos ago
rajaishtiaq6's avatar

Released a new package: Laravel ReverseKit — Generate full backend from JSON

Hey everyone, I just released a new open-source package called Laravel ReverseKit. It takes a JSON structure and generates a complete Laravel backend from it — without using AI. This means you can describe your output once, and it builds the whole backend around that structure. What it generates Models Migrations Controllers API Resources Form Requests Policies Factories Seed

rajaishtiaq6's avatar
rajaishtiaq6's avatar jlrdw5mos agoLaravel
1
1
Last reply by jlrdw 5mos ago
SoapyIllusion's avatar

Docker Container - Laravel Scheduler Best Practice

Hello All, Currently setting up a Laravel API app that uses Commands to pull data from an external API every hour in the background. That API data gets stored to a database. This app runs within a docker container that itself will live on VM. I am currently achieving this by setting up a scheduler that auto-restarts and runs the command php artisan schedule:run Ultimately I am

SoapyIllusion's avatar
SoapyIllusion's avatar SoapyIllus...5mos agoDevOps
4
2
Last reply by SoapyIllusion 5mos ago
Snapey's avatar

Forum still not showing replies immediately after posting

@jeffreyWay. This is still not fixed and is really annoying. Its not possible to post and then try to edit your reply because its not visible to the author. It may be visible to others, but not in my case for posts just made. They may appear some time later ?

Snapey's avatar
Snapey's avatar JeffreyWay5mos agoFeedback
4
1
Last reply by JeffreyWay 5mos ago
vincent15000's avatar

Weighted average => what's the easiest and more performant way ?

Hello, What's the easiest and more performant way to calculate a weighted average ? For the moment I do it manually and it works fine. I loop into the collection and calculate manually the sum ($value * $coefficient) and divide by the sum of the coefficients. But would you suggest me another way, perhaps more performant ? Via the collection helpers ? Something else ? Thanks for

vincent15000's avatar
vincent15000's avatar ndeblauw5mos agoCode Review
2
1
Last reply by ndeblauw 5mos ago
Chron's avatar

New table or a field instead?

I have Person and Cars table. Person could own multiple Cars. Person 1:M Cars But what if I want to ask, what Car does the Person "currently driving"? Person 1:1 Cars I thought of having a boolean field called driving in Cars table but I don't know. Should I create another table named Driving or something that holds both Person and Cars id? Or maybe a field driving_id

Chron's avatar
Chron's avatar vincent150...5mos agoGeneral
12
1
Last reply by vincent15000 5mos ago
Pixelairport's avatar

Inject validation rules in filament form field

Does anybody know, if it is possible to do something like: TextInput::make('title')->rules(['required','max:32']) instead of TextInput::make('title')->maxLength(32)->required(), because I want to use Spatie DTO also for Filament forms or is that a bad idea?

Pixelairport's avatar
Pixelairport's avatar Pixelairpo...5mos agoLaravel
4
29
Last reply by Pixelairport 5mos ago
earmsby's avatar

problem adding widget to resource

I can't figure out the source of an error I am getting when attempting to add a widget to a resource page. I think I've followed the example given in the filament docs (https://filamentphp.com/docs/4.x/resources/widgets) as closely as possible. Here is the relevant code on the resource: namespace App\Filament\Resources\Publications; use App\Filament\Resources\Publications\Pages

earmsby's avatar
earmsby's avatar earmsby5mos agoFilament
2
2
Last reply by earmsby 5mos ago
troccoli's avatar

Absolute URL in Scribe generated response

I have an API written using Resources in Laravel. The controller return a paginated response class SignInLogsController extends Controller { /** * @apiResourceCollection App\Http\Resources\SignInLogResource * @apiResourceModel App\Models\SignInLog paginate=15 */ public function __invoke(Request $request): ResourceCollection { return SignInLog::p

troccoli's avatar
troccoli's avatar troccoli5mos agoLaravel
2
1
Last reply by troccoli 5mos ago
Respect's avatar

How to custom css and js file in the laravel app with tailwind css configs

hello how to make custom css and js in the app for example app.css & admin.css & app.js & admin.js ( in my laravel livewire app ) with tailwind css - becasue i need make dffrent configs in each file and override colors for example i have app.blade.php <!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <h

Respect's avatar
Respect's avatar Tray25mos agoLaravel
3
1
Last reply by Tray2 5mos ago
sahar_mkr's avatar

Testing

I want to test this api, here I can create a user but when I get to the controller it shows user is null, why this happens? this api works properly and is so simple but on the test the user created successfully but in controller it is null and makes test fail: public function index(User $user) { return success('User data', (new UserResource($user)); } this is my route:

sahar_mkr's avatar
sahar_mkr's avatar vincent150...5mos agoLaravel
3
2
Last reply by vincent15000 5mos ago
Michael Fayez's avatar

Weird behavior with mysql

I need to make a Many to many relationship between Leads table and 1- Tags 2- Gifts 3- Actions the relationship is working very well between Lead and Tags but on deployment of my project on Hostinger I have the following error for 2 days didn't removed SQLSTATE[HY000]: General error: 1005 Can't create table u754910178_sales.lead_gift (errno: 150 "Foreign key constraint is

Michael Fayez's avatar
Michael Fayez's avatar Tray25mos agoCode Review
6
1
Last reply by Tray2 5mos ago
ntbutler-nbcs's avatar

Dynamic Route Model Binding Properties in Requests

Hi all! I'm developing an API for a project, and would like to try to replicate a feature I've used on another site where the property that is used in the route model binding can be set dynamically by the party calling the API. For context, the API I'm looking to replicate this feature with is the Canvas LMS API, specifically with the SIS ID feature that they have implemented.

ntbutler-nbcs's avatar
ntbutler-nbcs's avatar Snapey5mos agoLaravel
2
493
Last reply by Snapey 5mos 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.