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

wonder95's avatar

XDebug won't run in PHPStorm 2024.1.1 on Mac M2 when installed/configured

I have a fancy new MacBook Pro M2, and I installed PHP via Homebrew as I usually do. However, for some reason, even though I ran brew install php@82, it installed both the php(aka8.3) and [email protected],and therefore both /opt/homebrew/etc/php/8.3*and/opt/homebrew/etc/php/8.2*, with 8.3as the one actually being used. I also need to run XDebug, so, per the instructions, I installed it

wonder95's avatar
wonder95's avatar LinboLen6mos agoLaravel
5
24
Last reply by LinboLen 6mos ago
scidirect's avatar

AWS secret manager and EC2 instance with IAM role

Has anyone been able to retrieve AWS secret manager with this exact setup? Laravel 10, AWS EC2 instance using IAM role (the role has read access to secret manager), instead of IAM user. Package: aws/aws-sdk-php: "^3.269.11". The EC2 instance and the secret manager are both in the same zone.

scidirect's avatar
scidirect's avatar Harendra126mos agoForge
2
1
Last reply by Harendra12 6mos ago
alireza_hadizadeh's avatar

What is the best architecture in Laravel for handling features that rely on external APIs (some with authentication, some without)?

I have an existing Laravel e-commerce project that uses an external SMS provider for sending OTP codes and notifications. The provider offers a full API for its own panel, and I want to integrate parts of that panel directly into my e-commerce admin dashboard to improve convenience for my clients (companies and start-ups who buy the project). Inside my app I already send SMS th

alireza_hadizadeh's avatar
alireza_hadizadeh's avatar jlrdw6mos agoLaravel
3
1
Last reply by jlrdw 6mos ago
minaremonshaker's avatar

Unexpected Slow Performance Despite Caching and Optimization

I have a users table containing only five records. When retrieving these users from the database using a standard query, the request takes about 2642 ms. However, even when fetching the same data from cache, it still takes around 1977 ms. I’m unsure why this happens. I have already applied several optimizations, including running php artisan optimize:clear, caching query result

minaremonshaker's avatar
minaremonshaker's avatar minaremons...6mos agoLaravel
30
2
Last reply by minaremonshaker 6mos ago
joffreypersia's avatar

What is the best way to deal with Inertia and Checkboxes

Hi, I'm working on a Laravel + Vue.js + Inertia v2 project and struggling to find the right approach for form handling with non-native form elements. My setup: Using Inertia v2's new <Form> component (https://inertiajs.com/docs/v2/the-basics/forms) Using shadcn-vue components for UI (https://www.shadcn-vue.com) The problem: Shadcn-vue components like Checkbox don't rend

joffreypersia's avatar
joffreypersia's avatar vincent150...6mos agoInertia
7
1
Last reply by vincent15000 6mos ago
murtaza1904's avatar

Why sanctum doesn't dispatch logout event?

If revoke token in sanctum mean same as doing logout in web then why it doesn't dispatch logout event by default?

murtaza1904's avatar
murtaza1904's avatar vincent150...6mos agoLaravel
5
1
Last reply by vincent15000 6mos ago
zer0uno's avatar

Load different service providers based on the environment

In Laravel 12 how can I load different service providers based on the environment? I think the documentation is lacking on this topic. So far I've found 3 potential places: inside the bootstrap/providers.php using app()->environment() BUT in case of "php artisan make:provider" it will be overwritten inside the config/app.php under the "providers" key BUT

zer0uno's avatar
zer0uno's avatar vincent150...6mos agoLaravel
1
1
Last reply by vincent15000 6mos ago
SigalZ's avatar

Middleware does not recognize logged user

Using Laravel 12, I have a custom routes file. All the routes in this file should be blocked to guests and users that don't have a specific permission. I can't make the middlware work correctly. The user I am testing has the permission 'admin dashboard' through the 'admin' role. The routes file: routes/admin.php: use Illuminate\Support\Facades\Route; Route::get('/dashboard', f

SigalZ's avatar
SigalZ's avatar SigalZ6mos agoLaravel
5
1
Last reply by SigalZ 6mos ago
deebow's avatar

Separate table over json column

Hello, I have a Game, Room, Athlete, and Round entities. Game -> Many Rooms Room -> Many Athlete Athlete -> Belongs to many Room EDITED: WRONG: (Room -> Many Rounds) CORRECT: Game -> Many Rounds (That means, all rooms in the game all have the same rounds) So the tables for that would be: games rooms athletes athlete_room rounds now, what If athletes in the ro

deebow's avatar
deebow's avatar mileswebho...6mos agoGeneral
10
1
Last reply by mileswebhosting 6mos ago
seyedrezabazyar's avatar

Missing app/Http/Kernel.php in Laravel 12 Project

Hello, I am working on a Laravel 12 project and noticed that the app/Http/Kernel.php file is missing. According to the official Laravel repository on GitHub, this file should be present in the standard project structure. My composer.json includes "laravel/framework": "^12.0", indicating a standard installation. Is there a change in Laravel 12's structure reg

seyedrezabazyar's avatar
seyedrezabazyar's avatar Mo-TawabDe...6mos agoLaravel
3
17,994
Last reply by Mo-TawabDev 6mos ago
mukama's avatar

API RESOURCE CODEBASE REVIEW

I would like to ask someone to take a look at my code (API ) and share your review based on your experience in coding. https://github.com/chisumo2016/-library-management-api

mukama's avatar
mukama's avatar vincent150...6mos agoCode Review
4
1
Last reply by vincent15000 6mos ago
PetroGromovo's avatar

Why notification is not called when data are saved and redirected to other page?

On laravel/vue/inertiajs/element-plus site I make notification when data are saved and redirected to other page public function update(TaskRequest $request, int $taskId) { \Log::info( '-1 update $request->all()::' . print_r( $request->all(), true ) ); $task = Task::findOrFail($taskId ); try { ... $task->updated_

PetroGromovo's avatar
PetroGromovo's avatar vincent150...6mos agoLaravel
4
1
Last reply by vincent15000 6mos ago
imane's avatar

revereb works only with QUEUE_CONNECTION=sync

this is my docker , reverb: build: context: . args: ENV: local container_name: reverb volumes: - .:/var/www env_file: - .env ports: # Expose Reverb port to your host machine for browser access (WebSockets) - "8080:8080" # Command to only start the Reverb server command: ["php", "artisan", "reverb:start", "--host=0.0.0.0"] depend

imane's avatar
imane's avatar vincent150...6mos agoCode Review
1
1
Last reply by vincent15000 6mos ago
hihet88932's avatar

Create method not found on model

I'm trying to use create on User model but it's saying: Method 'create' not found in \App\Models\User User::create([]); I'm using PHPStorm and Laravel 8, how can I fix that? Thank you.

hihet88932's avatar
hihet88932's avatar bencepente...6mos agoGeneral
9
3
Last reply by bencepentek 6mos ago
june23's avatar

Take two on System Design and System Design Patterns and when to choose a Pattern. In my own words.

I recently asked a question on here about System Design, and nobody left a reply, not sure if it was because I added a giant wall of AI Answer and nobody wanted to read all of that, but I am hoping that, that is why nobody answered. This will be my final try at asking this. Since it seems relevant to programming, and I am explaining in my own words this time. Just so it is clea

june23's avatar
june23's avatar JussiManni...6mos agoGeneral
3
1
Last reply by JussiMannisto 6mos ago
shez1983's avatar

adding wire elements modal - getting livewire/update not found?

so I am trying to add this package, not sure if its relevant https://github.com/wire-elements/modal on my layouts page I add following as suggested. @livewire('wire-elements-modal') i then create a modal open link <a wire:click.prevent="$dispatch('openModal', { component: 'update-modal', arguments: { post: '{{ $post->slug }}' }})" class="drop-l

shez1983's avatar
shez1983's avatar shez19837mos agoLivewire
3
1
Last reply by shez1983 7mos ago
martinszeltins's avatar

How to send raw html email with Laravel?

I have successfully sent a raw text email with Laravel Mail but how could I send an HTML email (without using a view)? \Mail::raw('Text to e-mail', function($message) { $message->from('[email protected]', 'Laravel'); $message->to('[email protected]'); });

martinszeltins's avatar
martinszeltins's avatar salamwadda...7mos agoLaravel
3
1
Last reply by salamwaddah 7mos ago
Kai-T's avatar

Are Queues a solution to my problem?

I'm working on an application, where users can book a slot on an event. These event's have maximum users start and end of the event start and end of the booking window There will be moments in Time, where users want to join these events en masse. My current implementation lags out if arround 1.5k users try to join in the same moment. As the page is slow, they tend to refresh

Kai-T's avatar
Kai-T's avatar Kai-T7mos agoDesign
4
1
Last reply by Kai-T 7mos ago
allencarlosdev's avatar

New Laravel V12 starter Kit FLUX - Need install Manually

The problem is that I already created the project and selected the "No Starter Kit" option. As I progressed with the project, I realized I needed to implement login. So I checked the Laravel Breeze options, but I saw that everything is for older versions, not for Flux. I'm wondering how I can manually install the Starter Kit, since I couldn't select the option initial

allencarlosdev's avatar
allencarlosdev's avatar allencarlo...7mos agoLaravel
0
1
thesimons's avatar

Refreshing a single table

Hello, is there any migration command in order to refresh / reset a single table not the entire database? During development I prefer to refactor migrations instead of adding new migration to add/delete/edit previous migrations. Thanks, Simon

thesimons's avatar
thesimons's avatar thesimons7mos agoLaravel
1
1
skoobi's avatar

Filament 403 in production!

I don't know how many times I've had this issue, but I'm trying again to push to production and I know you need to add the canAccessPanel which I have and it still wont let me in! Its an app that can accept any email address so I don't care about who can access the panel. Heres my code: public function canAccessPanel(Panel $panel): bool { return true; //

skoobi's avatar
skoobi's avatar Dikewonsi-...7mos agoFilament
6
24
Last reply by Dikewonsi-91637528 7mos ago
stackprogramer's avatar

I whish Laracast had a job channel for job seekers

Hi, Laracast is a great forum for asking and answering Laravel Questions. I think if it had a Job channel for discussing people(exact like other forums) it can help Laravel developers communicate easily. Do you think is it possible ? Thanks in advance.

stackprogramer's avatar
stackprogramer's avatar stackprogr...7mos agoFeedback
2
1
Last reply by stackprogramer 7mos ago
the_lar's avatar

Seeking help with React app

Hi all, I'm pretty new to React and have hit a wall with something I'm trying to build, can anyone help? I've mocked up what I'm trying to do here - https://codesandbox.io/p/sandbox/blazing-firefly-vvfsrf The app will (eventually) display products in groups of x set by the PAGE_SIZE constant in Wheels.tsx. App.js sets up 4 different sort orders for the products, default, price

the_lar's avatar
the_lar's avatar JakeMiller7mos agoReact
2
1
Last reply by JakeMiller 7mos ago
Nonesuch's avatar

Three Way Pivot Table - Best Practice?

I was wondering if this is the right approach to take when dealing with a sports scenario where throughout the year, there will be several leagues, and the team that the player is playing for is on a per league basis. So for instance player 1 could be playing for team 5 in league 1, however, in league 2 the same player 1 might play for team 4 instead. What is the best way to ha

Nonesuch's avatar
Nonesuch's avatar lbecket7mos agoLaravel
4
1
Last reply by lbecket 7mos ago
arkid's avatar

Tailwind 4 and Laravel not processing my CSS file

I started my first project with Tailwind some days ago and have now wasted soooo many hours trying to get vite to process my main CSS file but it just doesn't work. I know that there is a lot of conflicting info online about configuring TailWind v4 and I'm just lost in the swamp of tips, both on laracasts, other forums, official Tailwind docs and AI responses. To confirm, somet

arkid's avatar
arkid's avatar Snapey7mos agoVite
3
83
Last reply by Snapey 7mos 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.