Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

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 SigalZ7mos agoLaravel
5
1
Last reply by SigalZ 7mos 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...7mos agoGeneral
10
1
Last reply by mileswebhosting 7mos 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...7mos agoLaravel
3
4
Last reply by Mo-TawabDev 7mos 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...7mos agoCode Review
4
1
Last reply by vincent15000 7mos 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...7mos agoLaravel
4
1
Last reply by vincent15000 7mos 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...7mos agoCode Review
1
1
Last reply by vincent15000 7mos 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...7mos agoGeneral
9
1
Last reply by bencepentek 7mos 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...7mos agoGeneral
3
1
Last reply by JussiMannisto 7mos 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 shez19838mos agoLivewire
3
1
Last reply by shez1983 8mos 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...8mos agoLaravel
3
1
Last reply by salamwaddah 8mos 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-T8mos agoDesign
4
2
Last reply by Kai-T 8mos 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...8mos 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 thesimons8mos 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-...8mos agoFilament
6
1
Last reply by Dikewonsi-91637528 8mos 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...8mos agoFeedback
2
1
Last reply by stackprogramer 8mos 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 JakeMiller8mos agoReact
2
1
Last reply by JakeMiller 8mos 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 lbecket8mos agoLaravel
4
1
Last reply by lbecket 8mos 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 Snapey8mos agoVite
3
2
Last reply by Snapey 8mos ago
amitRoy1999's avatar

Config for max concurrency for a singel job

I am using Laravel 11 with Horizon and a Redis queue. I have a job that runs daily — I dispatch 500 instances of this job for 500 numbers. The job calls an external API and updates my database; it takes 10–20 minutes depending on the API response. I want to know if there’s a simple configuration available where I can define, by job name, that only 100 concurrent instances of a

amitRoy1999's avatar
amitRoy1999's avatar Glukinho8mos agoLaravel
6
1
Last reply by Glukinho 8mos ago
donatello's avatar

Errors with puppeteer while setting up Browsershot for blade->PDF download

0 I have a laravel 10 app. In my index.blade.php I have list of workers, each of whom has a separate view page, in index.blade.php I have a print button, which on click should print the pdf version of the separate blade view page of the worker. Since dompdf doesn't support Arabic, flexbox etc. I thought of using browsershot by spatie. I followed instructions as per documenation

donatello's avatar
donatello's avatar 3xc-cchadw...8mos agoLaravel
7
1
Last reply by 3xc-cchadwick 8mos ago
OPTesseract's avatar

Laravel 6.x site not showing

I have a Laravel site that I recently transitioned over from being hosted by Wordpress. I am now using Bluehost for hosting, which is using pHp 8.2. I regenerated the vendor folder but am still seeing the file index when I go to my site url. What are the most common fixes for this?

OPTesseract's avatar
OPTesseract's avatar JussiManni...8mos agoLaravel
2
1
Last reply by JussiMannisto 8mos ago
AntV's avatar

Status of Cache Tags in laravel 12

I've noticed that after two versions of it being absent from the documentation, Cache tags reappeared. I tried searching to whether that means that the/most/some issues have been fixed but I did not find anything. The way it is written with no warning (other than it won't work on most drivers) makes me hopeful that it only means that they should work as intended. Has anyone any

AntV's avatar
AntV's avatar ian_h8mos agoLaravel
11
1
Last reply by ian_h 8mos ago
maikeltweak's avatar

Dynamically rendering components in livewire

Hey guys, Im working on a stepper component that renders different component based on the current step. I came up with the following test scenario, but its not working and i don't understand why: <?php namespace App\Http\Livewire; use Livewire\Component; class ParentTest extends Component { public $component_name; protected $listeners = ['setChild']; public

maikeltweak's avatar
maikeltweak's avatar kingsleyuc...8mos agoLivewire
9
1
Last reply by kingsleyuchenna 8mos ago
laracoft's avatar

How to create missing `bootstrap/providers.php`?

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's avatar
laracoft's avatar martinbean8mos agoLaravel
4
1
Last reply by martinbean 8mos ago
Shivamyadav's avatar

When will the laracasts black friday will arrive?

@JeffreyWay I am super excited to watch the laravel-workshop series. So waiting for the black friday deal to activate the subscription.

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...8mos agoGeneral
9
1
Last reply by Shivamyadav 8mos 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.