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

ismail_bourbie's avatar

Laravel Authentication logic.

I’m using a custom model (e.g., an App model) for authentication with Laravel Sanctum. Do I need to make this model implement the Authenticatable interface? If so, it seems to imply that the model uses passwords and the rememberToken field, even though Sanctum does not require them. This also feels like a violation of the Interface Segregation Principle. In practice, implementi

ismail_bourbie's avatar
ismail_bourbie's avatar ismail_bou...6mos agoLaravel
2
5
Last reply by ismail_bourbie 6mos ago
deebow's avatar

Vue/React codebase structure reference

Most of my career has been spent working with Angular. While I’ve also used Vue 2 and React in the past, Angular is where I’m most comfortable mainly because it’s opinionated, structured, and follows an MVC-style approach, so I never have to worry too much about organizing the project. I’m starting a new project now and want to build the frontend using either Vue 3 or React. Be

deebow's avatar
deebow's avatar deebow6mos agoGuides
0
1
Cadorin's avatar

Black Friday

Hello... When is Black Friday here this year? What will the annual cost be?

Cadorin's avatar
Cadorin's avatar JeffreyWay6mos agoFeedback
5
7
Last reply by JeffreyWay 6mos ago
VinayPrajapati's avatar

Make Crossword And Search Word

I want to make crossword 15*15, Put random word upto(15) HORIZONTAL VERTICAL DIAGONAL And Search. Any Suggestion.

VinayPrajapati's avatar
VinayPrajapati's avatar Auqcion6mos agoGeneral
2
1
Last reply by Auqcion 6mos ago
jjudge's avatar

soketi with a config file using docker compose

I am trying to run soketi using docker compose, to handle multiple sites on the same server. To do that I need to use the config file option rather than environment variables, since that allows multiple apps to be set up. What I don't know, is how to pass the [JSON] config file path to soketi when it is run in a container from docker compose. Are there any examples of this that

jjudge's avatar
jjudge's avatar jjudge6mos agoDevOps
3
1
Last reply by jjudge 6mos ago
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
3
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
6
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
1
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
12
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
2
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
8
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
8
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,433
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
5
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
1
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 shez19836mos agoLivewire
3
3
Last reply by shez1983 6mos 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...6mos agoLaravel
3
3
Last reply by salamwaddah 6mos 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-T6mos agoDesign
4
2
Last reply by Kai-T 6mos 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...6mos 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 thesimons6mos agoLaravel
1
1

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.