Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

pier67's avatar

Problem "ReflectionException" class does not exist

Im getting this error and i have previously defined the class on the controller and also on the http requests and i'm still getting this error, i really don't kow what do to, im stuck

pier67's avatar
pier67's avatar erickBanda7mos agoLaravel
25
1
Last reply by erickBanda 7mos ago
Respect's avatar

Does to use livewire 4 now for real world project or go with livewire 3

hello Does to use livewire 4 now for real world project or go with livewire 3 in know it's stell in beta . but will starting new project but need features of livewire v4 like blaze and preformance and structure

Respect's avatar
Respect's avatar Respect7mos agoLivewire
2
1
Last reply by Respect 7mos ago
kevinoneil's avatar

Carbon Difference for Humans

Anyone having any issues with carbon not rounding up when adding to dates? I've tried the ceil(). Examples: // 11 months from now Carbon::parse('2019-08-01 12:00:00')->addYear()->diffForHumans(); // 5 months from now Carbon::parse('2019-08-01 12:00:00')->addMonths(6)->diffForHumans(); // 6 days from now Carbon::parse('2019-08-01 12:00:00')->addDays(7)->diffFor

kevinoneil's avatar
kevinoneil's avatar BHiko7mos agoGeneral
8
1
Last reply by BHiko 7mos ago
Chron's avatar

How to add foreign key in a table that is already created in production?

I want to add a foreign key in a table that already has data and is created. I get this error when I try to migrate the new migration file. Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails. //add_driving_id_as_foreign_key_to_persons_table.php return new class extends Migration { /** * Run the migrations. */

Chron's avatar
Chron's avatar Tray27mos agoGeneral
9
1
Last reply by Tray2 7mos ago
triadi's avatar

Error after Updating Laravel and laravel/boost — Need Help

Hello everyone, I need some help. After updating my Laravel version and the laravel/boost package, I encountered some strange errors that I’ve never seen before. Environment Laravel: upgraded from 10.48.16 → 10.49.0 laravel/boost: upgraded from 1.1.5 → 1.8.4 Editor: Visual Studio Code Issue 1 — Before updating boost While still using laravel/boost version 1.1.5, I started get

triadi's avatar
triadi's avatar triadi7mos agoLaravel
0
1
Developer654079525's avatar

PDF library

We want to export parts of our website into a downloadable, self-contained PDF file with the TOC. It will be generated from a separate, hidden layer of our app that has custom CSS. So, it would be nice, if the rendered PDF somewhat closely matches the CSS HTML look. Which library that plays nicely with Laravel 12.* would you recommend (for a commercial use)?

Developer654079525's avatar
Developer654079525's avatar Snapey7mos agoLaravel
3
1
Last reply by Snapey 7mos ago
petervandijck's avatar

Can't install Vapor CLI

Working on a new laptop, Macbook. I am working with Laravel. I have a Vapor project, that I was coding on another laptop, all worked well. (The other laptop broke). Now on this new laptop, I can't seem to install vapor CLI? I installed vapor CLI globally: composer global require laravel/vapor-cli --update-with-dependencies That worked well apparently. But then I can't use vapo

petervandijck's avatar
petervandijck's avatar DigitalArt...7mos agoVapor
2
1
Last reply by DigitalArtisan 7mos ago
henryoladj's avatar

Meta Tags and other Seo Features

I want to add meta tags like Open Graph taking the post title and link and Twitter Card to my laravel project, does anyone have idea on how i can?

henryoladj's avatar
henryoladj's avatar dipeshkhan...7mos agoLaravel
6
1
Last reply by dipeshkhanal79 7mos ago
jk's avatar

How to update props data on notification broadcast without page refresh? Vue3,Inertia

The csvs.index page displays a table of csvs with path, completed status, and download link. Csvs can have their export completed with all attributes or export incomplete with none of the attributes. When a Notification broadcast is received, the payload contains a csv's attributes needed to update an incomplete csv. The problem I have is understanding how to update my csvs

jk's avatar
jk's avatar Shivamyada...7mos agoInertia
4
1
Last reply by Shivamyadav 7mos ago
n0tttrui's avatar

Select movies where category...

I have rather a category system: #Movie.php (Model) <?php namespace App; use Illuminate\Database\Eloquent\Model; class Movie extends Model { /** **/ public function categories() { return $this->belongsToMany(Category::class); } public function thumbnail() { return url(); } public function comments() { return $this-

n0tttrui's avatar
n0tttrui's avatar bobbyengel7mos agoEloquent
25
1
Last reply by bobbyengel 7mos ago
abdulwolfiz's avatar

Serving Static Assets in Dockerized Laravel Environments

Hey team, I wanted to bring up an interesting point about serving static assets in our Dockerized Laravel setup. Currently, we have the public folder inside our backend container, but Nginx on the host cannot directly access it. This has caused issues where assets like /logo.png work locally in Docker Desktop but fail in production unless accessed via /public/logo.png or throug

abdulwolfiz's avatar
abdulwolfiz's avatar ian_h7mos agoLaravel
5
1
Last reply by ian_h 7mos ago
Chron's avatar

How to append data on request array

I tried doing this // if there are no `available` keys found in `cars` request, set the first item to true if(!collect($request->input('cars'))->contains('available', true)) { $request['cars'][0] = ['available'=>true]; } But I'm getting Indirect modification of overloaded element.... I can use collect(...)->transform(...) but is there a shorter and faster way of

Chron's avatar
Chron's avatar Glukinho7mos agoLaravel
3
1
Last reply by Glukinho 7mos ago
Ligonsker's avatar

On Laravel 12 + Livewire starter kit - where do I change where users are redirected to if they're authenticated and trying to access guest routes?

Hi, Right now, when a logged in user is trying to go to /register while he's logged it, it redirects to the /dashboard. I couldn't find where to change that. On config/fortify.php you have the Home Path: /* |-------------------------------------------------------------------------- | Home Path |--------------------------------------------------------------------

Ligonsker's avatar
Ligonsker's avatar valentin_v...7mos agoGeneral
1
1
Last reply by valentin_vranic 7mos ago
mr-abdellah's avatar

Laravel Can't Access Network Drive for File Storage

Hi everyone, I'm trying to configure Laravel to store uploaded files on a network drive, but I'm running into issues. I hope someone here can help! My Setup Laravel version: 10.x OS: Windows Server 2019 Web server: IIS Network share: \CORP-SERVER\SharedDocs\laravel_uploads Mapped drive: X:\ (mapped to the above network share) What I Want I want Laravel to save uploaded files to

mr-abdellah's avatar
mr-abdellah's avatar Glukinho7mos agoLaravel
5
1
Last reply by Glukinho 7mos ago
shahriar_shaon's avatar

PHPStan Level 9 is killing me with DTOs — please roast my code (GitHub link inside)

I’m extremely confused about my code structure and I’m hoping a senior developer can help me out. My confusion: I’m using PHPStan at the maximum level, which means I have to write a lot of heavy annotations just to satisfy PHPStan. Also, I’ve never used DTOs before — this is my first project using them — so I’m not even sure if I’m following the correct approach. What’s troubli

shahriar_shaon's avatar
shahriar_shaon's avatar shahriar_s...7mos agoCode Review
6
1
Last reply by shahriar_shaon 7mos ago
Shivamyadav's avatar

Get back to the laravel's previous url?

Is there any proper way to get back to the previous url url()->previous() works fine but when laravel validation fails it redirect to create or edit (same page) that is causing the issue to stuck into that loop of create or edit.

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...7mos agoLaravel
5
1
Last reply by Shivamyadav 7mos ago
shahriar_shaon's avatar

I’m extremely confused about my code structure and I’m hoping a senior developer can help me out

My confusion: I’m using PHPStan at the maximum level, which means I have to write a lot of heavy annotations just to satisfy PHPStan. Also, I’ve never used DTOs before — this is my first project using them — so I’m not even sure if I’m following the correct approach. What’s troubling me the most is that after validating the data, when I pass it into the DTO, PHPStan keeps givin

shahriar_shaon's avatar
shahriar_shaon's avatar shahriar_s...7mos agoFeedback
8
1
Last reply by shahriar_shaon 7mos ago
droplister's avatar

Is there a cache for Jobs?

I've been writing some Job classes for my app. I regularly run commands like migrate, composer dump-autoload, artisan cache:clear, after I make changes to commands or my database, but what I am noticing lately is that changes I make to Job classes are often not reflected after running these commands. Is there some extra cache or static file that I need to touch when I make chan

droplister's avatar
droplister's avatar martyyy7mos agoTips
5
2
Last reply by martyyy 7mos ago
bootfi's avatar

laravel horizon jobs stuck in pending

Hi all, I am writing to report a bug related to the job processing in Laravel Horizon. Specifically, I have encountered a situation where a job appears to be stuck in the "pending" status despite having a "completed_at" timestamp, and another job is stuck in the "reserved" status without progressing further. Here are the details of the problematic

bootfi's avatar
bootfi's avatar bluekable7mos agoLaravel
4
1
Last reply by bluekable 7mos ago
mdshohelrana's avatar

Best Open Source Project In Laravel

Hi all, Could you tell me that how can i get best accounting software developed by laravel. I want to study full source code and business. These features could be helpful for me. Balance sheet report Trial Balance Report Charts of Accounts Profit and Loss Statement Thanks.

mdshohelrana's avatar
mdshohelrana's avatar spamacom7mos agoLaravel
6
1
Last reply by spamacom 7mos ago
dmytroshved's avatar

Vue: Pinia Storage in Router guard

Hi I need to restrict access for authenticated users to the /login and /register routes My Pinia Storage user.js contains a computed property isAuthorized. However when I try to use this variable in my router/index.js I see it always has a false instead of true. Also F12 -> Vue -> Pinia shows isAuthorized = true, but in code it shows as false I also have a plugin set-use

dmytroshved's avatar
dmytroshved's avatar Shivamyada...7mos agoVue
6
6
Last reply by Shivamyadav 7mos ago
shenaldev's avatar

How to set cookie Inertia Render

Is it possible to set a cookie with inertia render. if yes how to do it

shenaldev's avatar
shenaldev's avatar shahriar_s...7mos agoInertia
1
1
Last reply by shahriar_shaon 7mos ago
artisticre's avatar

Why Isn't This Passing? I am Brain Dead Today

Controller public function ourHistory() { $metaTitle = 'Title'; $metaDescription = 'descriptio'; $history = OurHistory::latest()->get(); return view('pages.our-history',compact('history','metaTitle','metaDescription')); } blade {{$history}} shows all details in the database but if I change to {{$history->pagetitle}} (one of the col

artisticre's avatar
artisticre's avatar Glukinho7mos agoLaravel
4
1
Last reply by Glukinho 7mos ago
Ligonsker's avatar

Where do I put icons if I use Vite?

Hi, I am using Laravel 12 + Blade, I currently place all my SVG files inside /public/icons/, and I use them like so: <img src="/icons/some_icon.svg" alt="Some Icon"> But I am not sure that's how it's supposed to be done. Is there a better practice? i.e. something like placing them inside the /resources/ folder and compile them? Thanks

Ligonsker's avatar
Ligonsker's avatar Snapey7mos agoVite
1
1
Last reply by Snapey 7mos ago
codeXX's avatar

Laravel Weird Content in response after update

I just updated the laravel and packages using composer update and now seeing this weird response appended to each response text and in terminal after issuing php artisan vendor:publish --tag=laravel-assets --ansi --force ''' Bud1 usines @� @ @ @ 01_businessbwspblob�bplist00� ]ShowStatusBar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar _{{222, 569}, {9�

codeXX's avatar
codeXX's avatar codeXX7mos agoLaravel
1
1
Last reply by codeXX 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.