212,474 questions
Best practices
1
vote
1
replies
51
views
Best practice for concurrent HTTP requests in Laravel when scraping multiple URLs
I need to fetch data from a list of URLs concurrently in Laravel (PHP). The use case is scraping results from multiple endpoints — one request per URL — and I want to do it as fast as possible without ...
Best practices
0
votes
2
replies
57
views
LaravelExcel export only single sheet
I'm using maatwebsite/excel to generate an invoice in PDF.
I'm having a template in XLS that I load, update some informations in it and then export as a PDF.
$template = new InvoiceImport();
$...
-2
votes
0
answers
41
views
Facebook Webhook user ID does not match logged-in user Facebook ID [closed]
I am integrating Facebook login and webhook functionality in my Laravel application.
What I am trying to achieve:
Users connect their Facebook account to my app using Facebook OAuth.
I store their ...
0
votes
0
answers
80
views
How to optimize Laravel Eloquent relationships for large datasets? [closed]
I am currently building a restaurant booking system using Laravel. I need to fetch table reservations for the upcoming 7 days, which involves thousands of records.
Currently, I am using this approach:
...
1
vote
0
answers
79
views
Statamic text field - Markdown support? [closed]
I’ve recently been working with the Statamic Laravel framework, and I noticed that the text field type seems to accept Markdown or HTML-like tags. It’s behaving like a Markdown field type, which made ...
0
votes
0
answers
63
views
Why does Laravel pingOnFailure() always report failure even when commands succeed?
Environment: Laravel 8, multiple scheduled commands using pingOnFailure() to send Discord notifications. All commands report as failed, even though they execute successfully. Sometimes duplicate ...
0
votes
2
answers
111
views
Is it "expensive" to check if a user exists in Firebase, every call?
I have a Laravel backend that I'm using for my Flutter app on android and iOS. I'm using Firebase for auth, and the token lives for about an hour.
The problem I have right now is that you need to be ...
Best practices
0
votes
1
replies
62
views
Where should "is this supported by our product?" flags live — on the data DTO or on a dedicated service?
I'm looking for a second opinion on a design decision.
No right answer expected - curious how others reason about it.
Context:
We have a multi-tenant platform. Each tenant is tied to a country, and ...
-4
votes
0
answers
59
views
Looking for a good Laravel WYSIWYG editor solution [closed]
I’m currently working on a Laravel project for my freelance work and recently introduced an articles feature. While the development process has been enjoyable overall, integrating a reliable open-...
0
votes
2
answers
122
views
Why are images not loading
Im using laravel and my images wont load.
I don't know if it has something to do with my PostController:
<?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
...
0
votes
2
answers
53
views
Laravel Storage::response() returns download instead of displaying PDF inline
I'm trying to display a PDF file inline in the browser using Laravel, but instead of showing the file, the browser downloads it.
Here is my code:
return Storage::disk('public')->response(
$path,...
Best practices
0
votes
4
replies
147
views
Best approach to migrate Laravel 8 package-based project to Laravel 12 core structure?
I’m working on upgrading an existing Laravel 8 project to Laravel 12, and I need some guidance on the best approach.
The current project is structured using custom packages/modules (each feature is ...
Advice
0
votes
5
replies
64
views
Is it possible to integrate paypal payments as guest without the smart buttons or how to implement the buttons securely?
I will test if it is possibe based on the official documentation, but i'd like to know if someone has done this before or confirm if it is even possible.
If not i would like to know if with the smart ...
Advice
0
votes
2
replies
57
views
Laravel Fortify with multiple User models and subdomains
I'm quite new to web development and am currently learning how to use Laravel. Creating website views with React and Inertia.js was a breeze and managed to create some simple user pages. But now I was ...
0
votes
1
answer
67
views
Drop foreign key constraint and add new columns
I'm having an error with dropping a foreign key constraint column and add a new columns. The error says that the column doesn't exists from the table. How to fix this error?
Syntax error or access ...