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

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 Glukinho6mos agoLaravel
5
38
Last reply by Glukinho 6mos 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...6mos agoCode Review
6
13
Last reply by shahriar_shaon 6mos 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...6mos agoLaravel
5
1
Last reply by Shivamyadav 6mos 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...6mos agoFeedback
8
4
Last reply by shahriar_shaon 6mos 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 martyyy6mos agoTips
5
1
Last reply by martyyy 6mos 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 bluekable6mos agoLaravel
4
3
Last reply by bluekable 6mos 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 spamacom6mos agoLaravel
6
1
Last reply by spamacom 6mos 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...6mos agoVue
6
25
Last reply by Shivamyadav 6mos 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...6mos agoInertia
1
2
Last reply by shahriar_shaon 6mos 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 Glukinho6mos agoLaravel
4
1
Last reply by Glukinho 6mos 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 Snapey6mos agoVite
1
1
Last reply by Snapey 6mos 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 codeXX6mos agoLaravel
1
1
Last reply by codeXX 6mos ago
laracoft's avatar

Why `markdown()` renders differently?

A $html = <<<'HTML' <x-markdown>{{ $variable->value }}</x-markdown> HTML; dd(Str::of($html)->markdown()); Illuminate\Support\Stringable^ {#444 #value: "<p><x-markdown>{{ $variable-&gt;value }}</x-markdown></p>\n" } // B $html = <<<'HTML' <x-markdown>{{ $variable->value }} </x-markdown>

laracoft's avatar
laracoft's avatar DigitalArt...6mos agoLaravel
1
1
Last reply by DigitalArtisan 6mos ago
SigalZ's avatar

realrashid sweetalert2 not defined or not found

I am trying to use realrashid/sweetalert2 in laravel 12. I installed the package and in my blade I have this code: <!DOCTYPE html> <html lang="en"> <head> @include('layouts.meta') <title>Home | {{ config('app.name') }}</title> @vite(['resources/sass/app.scss', 'resources/js/app.js']) </head> <body data-bs-spy="

SigalZ's avatar
SigalZ's avatar SigalZ6mos agoGeneral
2
1
june23's avatar

Should I only add complexity when there are issues with the Web System itself and start off simple and follow YAGNI and the Evolutionary Architecture?

I was asking Gemini AI how I should add System Design Patterns to a Web Application System. My question was this -> So adding complexity like a System Design Pattern like "Sequential Convoy" or "Queue Based Load Leveling" or a "CDN Cache" or a "Circuit Breaker" or "Bulk Head" should come from bottlenecks and other conditions

june23's avatar
june23's avatar krisi_gjik...6mos agoGeneral
11
1
Last reply by krisi_gjika 6mos ago
skyber-moeen's avatar

Laravel 11 + Octane (RoadRunner) hangs on auth:sanctum route when exception occurs

I'm using Laravel 11 with Octane (RoadRunner) and noticed different behavior between authenticated and normal routes. public function test(Request $request) { $user = ['name' => 'test', 'username' => 'test123']; $boom = $user['name']['user']; return $user; } Case 1 – With auth:sanctum Route::middleware('auth:sanctum')->post('project/test', [ProjectContro

skyber-moeen's avatar
skyber-moeen's avatar skyber-moe...6mos agoLaravel
0
1
ks500's avatar

Add Livewire Starter Kit to Existing Base Laravel 12 Installation...

I have a minimally customized Laravel 12 app, but now I want to install the Livewire Starter Kit with auth scaffolding. The Laravel 12 docs say to install the starter kit using laravel new my-app, but my app is already installed and setup. Anyone know how I can now add-on the Livewire Starter Kit with auth scaffolding? Thanks!

ks500's avatar
ks500's avatar kornel6mos agoLaravel
7
2,738
Last reply by kornel 6mos ago
nicholasnet's avatar

How Do You Handle Client-Side Validation in the New Inertia Form Component

I’ve been experimenting with the new Inertia Form component and really like how it simplifies handling form state, submissions, and server-side validation. However, I’m still unclear about the best way to implement client-side validation before submitting a form to server. Most examples I’ve found focus on server-side validation triggered after the form is submitted. But what’s

nicholasnet's avatar
nicholasnet's avatar Joey336mos agoInertia
2
25
Last reply by Joey33 6mos ago
wulfheart's avatar

Livewire infinite scrolling

I found several tutorials regarding infinite scrolling with Livewire but they all require to rerender everything which will take longer with every new page that gets appended. Is there any way to only append some html to a livewire component?

wulfheart's avatar
wulfheart's avatar RazIacob6mos agoLivewire
4
1
Last reply by RazIacob 6mos ago
minaremonshaker's avatar

Thoughts on Filtering Approach in Jeremy McPeak’s API Course

Hello, I’m currently taking the Jeremy McPeak course on building APIs. I’ve reached the 10th episode, where he demonstrates model filtering. However, I find his approach a bit complex and wonder why he didn’t create a dedicated service class for tickets. In that class, he could have implemented a filter method using the when() method to handle filtering logic for the ticket req

minaremonshaker's avatar
minaremonshaker's avatar minaremons...6mos agoLaravel
5
1
Last reply by minaremonshaker 6mos ago
ATR22's avatar

How to use older version of starter kit on "laravel new myapp"?

I dont want use this new feature of starter kits that use Fortify that happend at last month. How i should use version of starter kit before this change? If I use "composer install" to use Laravel 12.30 it doesn't show starter kit selection. and with "laravel new newapp" i can't tell it to use version of 2 months ago. how I should use Laravel 12 starter kit

ATR22's avatar
ATR22's avatar ATR226mos agoLaravel
10
1
Last reply by ATR22 6mos ago
atomas's avatar

Low specs VPS - how low can you go?

Hi. I run a small database website built on Laravel 11, using php 8.3 and mysql. Database is around 250MB and is well indexed. Currently I'm running it from 2 CPU / 8GB / NVME VPS with Almalinux 9. It runs well but there are other, poorly optimized sites running on the same server, so I want to get another VPS just for this one website. Normally website has around 1000 visitors

atomas's avatar
atomas's avatar atomas6mos agoServers
4
2
Last reply by atomas 6mos ago
Shivamyadav's avatar

How to Implement a Unique “Like” System in Laravel Without User Registration?

I’m building a portfolio website in Laravel where visitors can like projects, but there is no authentication system. How can I track unique likes per project using cookies, device fingerprints, or IP hashing? I need a secure method to avoid multiple likes by the same visitor while keeping the system anonymous.

Shivamyadav's avatar
Shivamyadav's avatar sebastiang...6mos agoLaravel
13
16
Last reply by sebastiangperez 6mos ago
Glukinho's avatar

Phantom unseen replies

Hi, I see "phantom" replies here and there. In threads list I see a thread that is replied while there are no answers inside the thread. I saw this in several threads last days, here the latest one: https://laracasts.com/discuss/channels/general-discussion/do-e-commerce-backend-apis-need-a-lot-more-work-than-a-clone-of-twitter-or-stackoverflowcom-in-terms-for-portfoli

Glukinho's avatar
Glukinho's avatar Snapey6mos agoFeedback
15
3
Last reply by Snapey 6mos ago
SarahS's avatar

First option not working on Select with Livewire

I have a form which I am using Livewire with. It contains a lot of very simple Select dropdowns with mostly Yes or No answers e.g. <select name="photoIDCheck" id="photoIDCheck" class="form-control" wire:model='photoIDCheck'> <option value="Yes">Yes</option <option value="No">No</o

SarahS's avatar
SarahS's avatar Snapey6mos agoLivewire
10
1
Last reply by Snapey 6mos 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.