laracoft wrote a reply+100 XP
3d ago
You keep telling me how things should be, sure, but I already know that
I'm telling you how things are right now, so the big question is have you actually tried to install Nginx vs Apache on 22.04 after my OP?
laracoft wrote a reply+100 XP
4d ago
There is no such service as php-fpm, this problem started after 17th Apr 2026... probably in May 2026.
laracoft started a new conversation+100 XP
4d ago
- I'm on ubuntu 22.04
- On A, I have scripted my server installation to install PHP (8.4.21), MySQL and Apache
- On B, I have scripted my server installation to install PHP (8.4.21), MySQL and Nginx
- For B, when re-running the script on a fresh machine recently,
/var/run/php-fpm.sockis now missing and causing the Laravel site not to load in the browser - The script of A remains problem free
- Has anyone faced the same issue and found a solution? I suspect it is in Nginx
laracoft started a new conversation+100 XP
2mos ago
HTTP/2 400
server: openresty
date: Sat, 04 Apr 2026 11:28:22 GMT
content-type: text/html; charset=utf-8
cache-control: no-cache, private
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
phpdebugbar-id: 01KNC40K97P25K2JC4TFG74HMH
access-control-allow-origin: *
Calling abort(400, 'No parameters provided'); gives me the above, is there a way to show my message like when I'm calling response()->setStatusCode(400, 'Empty')?
laracoft wrote a reply+100 XP
2mos ago
which one? i only caught the one where he installed boost
laracoft started a new conversation+100 XP
2mos ago
Has anyone used both Gemini and Claude with Boost? Which is better and why?
laracoft started a new conversation+100 XP
3mos ago
- When I run
npm run dev, 2 of more cores shoot to 100% - So, I made the file watching use polling every 10 seconds, but still 100% on 2 cores
- How do debug?
laracoft wrote a reply+100 XP
3mos ago
There's nothing to change there except remove conversations i'm watching... it's a long long list there
laracoft was awarded Best Answer+1000 XP
3mos ago
After more debugging, I found the issue: for a handler's handle(), it must return null. Anything else will cause the next handler not to run.
laracoft wrote a reply+100 XP
3mos ago
After more debugging, I found the issue: for a handler's handle(), it must return null. Anything else will cause the next handler not to run.
laracoft started a new conversation+100 XP
3mos ago
Not getting any emails when someone replies to the conversations I'm watching... anyone having the same problem?
laracoft wrote a reply+100 XP
3mos ago
Because I step debug and also there are no tracked links in the email (second listener's job)
laracoft wrote a reply+100 XP
3mos ago
I see 2 handlers for Illuminate\Mail\Events\MessageSending, yet only 1 runs (the first one)
The 1st one is a class, 2nd is a closure.
laracoft wrote a reply+100 XP
3mos ago
Thanks, but the docs say I can call it multiple times, and it doesn't work as described in my case. (I can't call an array because it is 2 separate service providers)
laracoft wrote a reply+100 XP
3mos ago
Are you suggesting his code does not work? Because it does (if I remove my listener).
laracoft started a new conversation+100 XP
3mos ago
In one of package's service provider, I have
Event::listen(MessageSending::class, MyHandler::class);
Then I added https://github.com/jdavidbakr/mail-tracker which also tries to listen to MessageSending (https://github.com/jdavidbakr/mail-tracker/blob/96244f621f1201385a2645152cabb414b2a7fde3/src/MailTrackerServiceProvider.php#L36), however, only MyHandler is called.
How do I make both handlers run on the event?
laracoft wrote a reply+100 XP
4mos ago
They are all software, so I do wonder, what is Laravel not getting right?
laracoft wrote a reply+100 XP
4mos ago
where do I add releaseAfter and perSecond?
laracoft wrote a reply+100 XP
4mos ago
Ok, I want to slow down sending emails, say send only 10 emails every minute, but I don't want any emails to be dropped and they have to be sent from a job running on a queue
laracoft started a new conversation+100 XP
4mos ago
use Illuminate\Cache\RateLimiter;
use Illuminate\Support\Facades\RateLimiter as RateLimiterFacade;
// In AppServiceProvider boot method:
RateLimiterFacade::for('mailing-list', function (object $job) {
return $job->user->rateLimit(5)->perMinute(); // A - defined first time
// Or a global limit:
// return Limit::perMinute(5);
});
class SendUserEmail implements ShouldQueue
{
// ...
public function middleware(): array
{
return [
// Define the rate limit: e.g., 5 emails per minute
(new RateLimited('mailing-list'))
->allow(5)->every(60) // B - why do this again?
// If rate limited, release the job back for 60 seconds
->releaseAfterSeconds(60),
];
}
}
- AI suggested the above code to me
- Why do we need to define the rate limiting 2 times in A and B?
laracoft wrote a reply+100 XP
5mos ago
I don't think you addressed my previous 3 points, especially the one: to style new stuff without affecting others
Can you give me an example of Filament's own classes?? Because I do not use any of my own classes, all are copied from Tailwind examples.
laracoft wrote a reply+100 XP
5mos ago
Wait a second, I'm not using any other CSS framework, only Tailwind, and Filament claims to also use Tailwind.
And Tailwind's claim to prominence is to style new stuff without affecting others.
Isn't it?
laracoft started a new conversation+100 XP
5mos ago
- I'm using Filament 4 and Tailwind 4 to build a public facing Filament form using these references
- I also had to add
@import '../../vendor/filament/filament/resources/css/theme.css';intoresources/css/app.css - But once I added
theme.css, my website's original colors (from flowbite.com) are overwritten - I tried to shift
@import ...to the last line ofresources/css/app.css, but had no effect - I need the
@import ..., without it, the Filament form does not layout properly - How do I maintain my original colors?
laracoft started a new conversation+100 XP
5mos ago
If my package requires its own entries in config/filesystem.php, what is the best way to get them in place without requiring the developer to go through my README.md?
laracoft started a new conversation+100 XP
5mos ago
A
$html = <<<'HTML'
<x-markdown>{{ $variable->value }}</x-markdown>
HTML;
dd(Str::of($html)->markdown());
Illuminate\Support\Stringable^ {#444
#value: "<p><x-markdown>{{ $variable->value }}</x-markdown></p>\n"
} //
B
$html = <<<'HTML'
<x-markdown>{{ $variable->value }}
</x-markdown>
HTML;
dd(Str::of($html)->markdown());
Illuminate\Support\Stringable^ {#444
#value: """
<p><x-markdown>{{ $variable->value }}\n
</x-markdown></p>\n
"""
}
C
$html = <<<'HTML'
<x-markdown>
{{ $variable->value }}</x-markdown>
HTML;
dd(Str::of($html)->markdown());
Illuminate\Support\Stringable^ {#444
#value: """
<x-markdown>\n
{{ $variable->value }}</x-markdown>\n
"""
}
Can someone explain why C is so special and doesn't get the > treatment?
laracoft started a new conversation+100 XP
6mos ago
I have some customization in L10's Http/Kernel.php, and now need to convert to L11's bootstrap/app.php because a package requires it
How do I replace the middleware 'auth' with another class in L11's app.php syntax?