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

Giorgi's avatar

Do you struggle remembering Laravel collection methods and PHP syntax during interviews?

I've been a Laravel developer for several years and my biggest weakness is remembering syntax under pressure — collection methods, PHP variable types, Eloquent methods. I know how to use them in real work but blank out in interviews. I'm exploring building a spaced repetition tool specifically for Laravel/PHP developers — like Duolingo but for Laravel knowledge. Daily practice,

Giorgi's avatar
Giorgi's avatar Randy_John...2mos agoLaravel
1
1
Last reply by Randy_Johnson 2mos ago
laracoft's avatar

No way to set HTTP status

HTTP/2 400 server: openresty date: Sat, 04 Apr 2026 11:28:22 GMT content-type: text/html; charset=utf-8 cache-control: no-cache, private x-ratelimit-limit: 60 x-ratelimit-remaining: 57 phpdebugbar-id: 01KNC40K97P25K2JC4TFG74HMH access-control-allow-origin: * Calling abort(400, 'No parameters provided'); gives me the above, is there a way to show my message like when I'm calli

laracoft's avatar
laracoft's avatar martinbean2mos agoLaravel
3
1
Last reply by martinbean 2mos ago
Armanhozyn's avatar

If anyone knows to bind policy to the controller in Laravel 13.

In build forum course, I am trying to do this. use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class CommentController extends Controller use AuthorizesRequests; public function __construct() { $this->authorizeResource(Comment::class); } } In my controller, But I am getting this error for this Call to undefined method App\Http\Controllers\CommentController::middlew

Armanhozyn's avatar
Armanhozyn's avatar Armanhozyn2mos agoLaravel
3
24
Last reply by Armanhozyn 2mos ago
Randy_Johnson's avatar

Axios Hacked! ⚠️

Or was it 🤔

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...2mos agoGeneral
10
10
Last reply by Randy_Johnson 2mos ago
gizmojo's avatar

Livewire change response status code in full page component

Is it possible to set the response status code? E.g I have a full-page livewire component that servers a pretty 404 but need to set the status code to 404. Standard controller I do it by: return response(view('products.not_available'), 404);

gizmojo's avatar
gizmojo's avatar Muetze2mos agoLivewire
4
1
Last reply by Muetze 2mos ago
Shivamyadav's avatar

Laravel Smart Attendance System with Live Geofencing (10–20 Meter Radius) — Feedback Needed

I’m building a lightweight Laravel-based attendance system where users can check in/out only when they are physically present within a strict 10–20 meter radius of the workplace using live GPS validation. ⚙️ Core Features Implemented 2.📍 Real-time geofencing (strict 10–20m radius enforcement) 🎯 GPS accuracy filtering (reject low-accuracy readings) ⏱️ Live check-in only (no del

Shivamyadav's avatar
Shivamyadav's avatar martinbean2mos agoLaravel
7
4
Last reply by martinbean 2mos ago
zerosAndOnes's avatar

Inertia and SEO

Hello! I have been working on an app where SEO is essential. I have been using Livewire, which is great--but due to issues that arise from conflicts with using some libraries like flowbite (e.g, component not refreshing after adding wire:ignore because livewire makes a flow bite component to act bad), I am looking to switch to Inertia with vue or react, but I am a bit concerned

zerosAndOnes's avatar
zerosAndOnes's avatar Teddy-Jame...2mos agoInertia
16
276
Last reply by Teddy-James 2mos ago
Developer654079525's avatar

Controller's helper fn

Where should i keep the helper fn that fetches some data from a particular db table and is then used extensively across only two controller classes? Should i keep it as a private member function in both controllers and then invoke it in other member functions as: $result = this->myFn(); Or should I move it to a model, mark it as static and then in my controllers invoke it a

Developer654079525's avatar
Developer654079525's avatar Snapey2mos agoLaravel
3
2
Last reply by Snapey 2mos ago
vincent15000's avatar

InertiaJS and SSR

Hello, I never used SSR and I don't understand the documentation about SSR. https://inertiajs.com/docs/v3/advanced/server-side-rendering#manual-setup The Vite plugin reuses your app.js entry point for SSR by default, so no separate file is needed. Most customizations may be handled using the withApp callback. => no need to add another file than the base app.js file https:/

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoInertia
0
3
sanjaysamant's avatar

Shared hosting redirect to public always

Options -MultiViews -Indexes RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILEN

sanjaysamant's avatar
sanjaysamant's avatar imranbru2mos agoLaravel
3
1
Last reply by imranbru 2mos ago
sr57's avatar

Xdebug alternative?

I just wonder if anyone use other tool than XDebug to profile php codes? And why?

sr57's avatar
sr57's avatar imranbru2mos agoGeneral
5
1
Last reply by imranbru 2mos ago
jlrdw's avatar

Forum only not displaying on Firefox 149.0 64 bit

Anyone else having problems with the forum portion only with Firefox? Other areas are working fine.

jlrdw's avatar
jlrdw's avatar Jsanwo642mos agoFeedback
9
7
Last reply by Jsanwo64 2mos ago
ebutler's avatar

"View path not found" on Prod but works locally

Hi! I'm getting the following runtime exception when I deploy my Laravel app to the server: Running artisan commands for staging... INFO Configuration cached successfully. INFO Events cached successfully. INFO Routes cached successfully. In ViewClearCommand.php line 59: VIEW PATH NOT FOUND. I don't get this at all when I am working locally on my app. Does anyone have any insig

ebutler's avatar
ebutler's avatar Glukinho2mos agoLaravel
5
4
Last reply by Glukinho 2mos ago
BOCEMBV12's avatar

Laravel Beginner

HI everybody i'm starting learning Laravel which courses you can recommended me please ?

BOCEMBV12's avatar
BOCEMBV12's avatar Armanhozyn2mos agoLaravel
6
1
Last reply by Armanhozyn 2mos ago
jschlies's avatar

Using Laravel Excel to insert a Chart into an Excel Worksheet

PHP 8.4 "laravel/framework": "^12.31", "laravel/sanctum": "^4.2", "laravel/ui": "^4.6", May I please pointed to an example of a Worksheet Export that generates a spreadsheet with an embedded chart? I presume this is the documentation I should be looking at. https://docs.laravel-excel.com/ The examples foun

jschlies's avatar
jschlies's avatar imranbru2mos agoGeneral
3
1
Last reply by imranbru 2mos ago
lobothijau's avatar

Weird Stacking Behavior of Inertia + Vue on Some Links

Hello everyone, I'm new to the combination of Inertia + Vue inside a Laravel project. In this project, I found a weird issue where some links when clicked will stack on top of each other. This happened on some links only, not all. Issue fixed temporarily by hard refresh (ctrl+shift+r) but it'll come again. If you see on the screenshot below, the bright (white background) is th

lobothijau's avatar
lobothijau's avatar lobothijau2mos agoInertia
3
1
Last reply by lobothijau 2mos ago
yougotnet's avatar

Laravel Policy and Spatie Permissions

I want to validate that a user can edit post that has the user id on it. I am trying to use Laravel Policies but I have Spatie Permissions installed and the policy never runs. I've created a spatie permission to edit post, but that doesn't check the user id.

yougotnet's avatar
yougotnet's avatar jlrdw2mos agoLaravel
4
1
Last reply by jlrdw 2mos ago
Maadhih25's avatar

Database migration

I already have a database with data. Do I need to create migrations for it in Laravel, and if so, how can I avoid losing the existing data?

Maadhih25's avatar
Maadhih25's avatar Tray22mos agoLaravel
3
1
Last reply by Tray2 2mos ago
FireBlade's avatar

NGINX server reading wrong css asset file in production following this guide https://docs.docker.com/guides/frameworks/laravel/production-setup/#create-a-docker-compose-configuration-for-production

For my setup, the Laravel app is inside src folder while all other docker setup files are outside src folder. My Dockerfile for NGINX container: FROM node:22-alpine AS builder WORKDIR /app # Copy Laravel application code COPY ./src/. /app RUN npm install && npm run build FROM nginx:1.21-alpine COPY --from=builder /app/public /var/www/public COPY ./nginx/nginx.conf

FireBlade's avatar
FireBlade's avatar FireBlade2mos agoCode Review
2
1
Last reply by FireBlade 2mos ago
swez_k's avatar

My Site Stops Working During Deployments

My site stops working during development, it just keeps loading, this happens only while its being deployed. is this normal behavior ? Thank you.

swez_k's avatar
swez_k's avatar swez_k2mos agoForge
6
1
Last reply by swez_k 2mos ago
yougotnet's avatar

Policies not blocking edits

If I put in the browser /post/3/edit; nothing in the PostPolicy will catch this. If I just put /post/3, then the view function will catch it. How can I protect the /edit?

yougotnet's avatar
yougotnet's avatar jlrdw2mos agoLaravel
4
4
Last reply by jlrdw 2mos ago
DevHarm's avatar

IP exposure behind Cloudflare / Plesk setup

Hey all, I’m running multiple websites (not just Laravel) on a VPS behind Cloudflare with deployment via Plesk. Everything works great, except for one thing: email. I feel like I’m basically forced to rely on services like Mailgun or Fastmail, mainly because: My origin IP is still technically reachable Self-hosting mail would expose that IP directly VPS IP reputation for email

DevHarm's avatar
DevHarm's avatar martinbean2mos agoServers
2
1
Last reply by martinbean 2mos ago
Min_Khant_Saw's avatar

How to make large video file uploads or downloads resumable

I want to handle uploading and downloading large video files from S3 in a way that supports resuming if the client experiences network interruptions or other issues. If the upload or download is interrupted, the client should be able to resume from the last completed part instead of starting over. I want to know the best practices or tools in Laravel (and optionally JavaScript/

Min_Khant_Saw's avatar
Min_Khant_Saw's avatar martinbean2mos agoAI
3
1
Last reply by martinbean 2mos ago
earmsby's avatar

Changing heading for main Filament dashboard

FWIW, I tried asking AI (both Larry AI and Google) for the answer to this but the given solutions were either incomplete or just didn't work. This seems like it should be pretty simple. On a filament 4.x dashboard I want to change the page heading () from the generic "Dashboard" to something else (in this case "Home"). Several AI models suggested to: Create

earmsby's avatar
earmsby's avatar DigitalArt...2mos agoFilament
5
10
Last reply by DigitalArtisan 2mos ago
Max100's avatar

Laravel website - is this correct?

I happened to go to laravel.com and noticed the new site. It looks really good, but I was confused by something near the top of the first page. In the Auth example it shows 2 tabs: The UserController seems wrong, but it's at the top of the front page, so maybe I just don't understand it. Is this code correct or just a typo?

Max100's avatar
Max100's avatar vincent150...2mos agoLaravel
18
5
Last reply by vincent15000 2mos 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.