laracoft started a new conversation+100 XP
3w 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
1mo ago
laracoft started a new conversation+100 XP
1mo ago
laracoft started a new conversation+100 XP
1mo ago
laracoft wrote a reply+100 XP
2mos ago
laracoft wrote a reply+100 XP
2mos ago
laracoft started a new conversation+100 XP
2mos 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
2mos ago
laracoft wrote a reply+100 XP
3mos ago
laracoft wrote a reply+100 XP
3mos ago
laracoft started a new conversation+100 XP
3mos 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
4mos ago
laracoft wrote a reply+100 XP
4mos ago
laracoft started a new conversation+100 XP
4mos 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
4mos ago
laracoft started a new conversation+100 XP
4mos 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
4mos ago
laracoft started a new conversation+100 XP
5mos ago
I just learnt about bootstrap/providers.php here https://laravel.com/docs/12.x/providers
My Laravel 5 project was upgraded over the years to L12 now, but I don't see it.
- Who is suppose to create it? Developer or Laravel?
- If there are differences with
config/app.php, who is the single source of truth?
laracoft wrote a reply+100 XP
5mos ago
laracoft wrote a reply+100 XP
5mos ago
laracoft wrote a reply+100 XP
5mos ago
laracoft started a new conversation+100 XP
5mos ago
Is there a Laravel way setup cron to run most tasks as www-data and some tasks as root?
The docs show only https://laravel.com/docs/12.x/scheduling#running-the-scheduler which implies only 1 user can be specified. It feels dangerous to set it as root.
laracoft wrote a reply+100 XP
5mos ago
Thanks for the replies, I'm actually already using Gitea's issues (almost identical to Github issues)
-
I gave my problem more thought and have more insights: when I see 100s of issues, I don't know where to start, picking a random one feels like throwing a dice, i.e. is there another more important issue I should work on
-
I'm also using labels (and they include) priority but it still feels like I might be missing something
-
Sometimes we get an idea, but details may not be clear, aka it is still hard to act on and probably requires alot of clarifications
-
These should be separate from say bugs, which has a very clear problem, and requires someone who knows how to debug it
-
I'm still thinking about the problem if you ask me what is my dream solution, I wish there is a system that can tell me the best issue that I should be working on next
laracoft started a new conversation+100 XP
5mos ago
- I have several repos and many issues across all of them
- Is there any tool that can help me go through them and sort out which one the team should work on first?
Update
- I'm already using Issues in Gitea
- But seeing 100s of issues is overwhelming and I'm not sure where is the best place to start
- After some thoughts, I realized a big factor is that some issues are clear, e.g. bug with very reproducible steps, vs a fresh raw idea where details are still scant - addressing this factor will likely make the problem smaller
- Also, going along the lines of wishful thinking, I wish there was a tool that can tell each developer which is the issue they should work on first
laracoft started a new conversation+100 XP
5mos ago
- My package requires
spatie/laravel-permissions, so I addedsetPermissionsTeamId(1)in its service provider'sboot(), this service provider is auto-discovered by Laravel - However, it has no effect, e.g. if in one of my artisan command, I
echo getPermissionsTeamId(), I getnull - However, if I add
setPermissionsTeamId(1)to my AppServiceProvider'sboot(), theecho getPermissionsTeamId()will return 1
What is happening?
laracoft started a new conversation+100 XP
5mos ago
Can anyone share how they are doing backups and restore of multiple Laravel projects?
In particular, I'm concerned with DB, .env and storage as these are not version controlled.
Preferably it is all done via SSH.
I'm hoping it is easy to setup, verify that it is working correctly and of course, easy to restore too.