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

JasonYao's avatar

Concurrency::run return error: Trying to access array offset on value of type null

I upgrade laravel from 9 to 12 to use Concurrency, but when I run the code below, it shows error "Trying to access array offset on value of type null" $result = Concurrency::run([ 'task-1' => fn() => 1 + 1, 'task-2' => fn() => 2 + 2, ]); dd($result); What could be the reason for this? Thank you very much.

JasonYao's avatar
JasonYao's avatar Niush5mos agoCode Review
2
1
Last reply by Niush 5mos ago
bishtyogeshsingh's avatar

Correct way to include seo tags in laravel blade

I'm building a website using Laravel 11 and a component-based structure. Here is an example of the structure I'm using: Directory Structure: Views ├── Components │ ├── header │ │ └── header.blade.php │ ├── navbar │ │ ├── navbar.blade.php │ │ └── navbarlink.blade.php │ └── app.blade.php ├── Frontend │ ├── about.blade.php │ └── home.blade.php I want to imple

bishtyogeshsingh's avatar
bishtyogeshsingh's avatar catrin215mos agoLaravel
5
6
Last reply by catrin21 5mos ago
Vanni7544's avatar

I built a safer way to manage .env files in Laravel (export, validate, backup, rollback)

Manage .env files in Laravel (export, validate, backup, rollback) Over the last few weeks, I’ve been working on a small tool for Laravel that was born from a real-world problem I kept running into: safely managing .env files across multiple environments (local, staging, production). I noticed how little it takes — a missing value, a wrong variable, a rushed copy-paste — to brea

Vanni7544's avatar
Vanni7544's avatar Vanni75445mos agoDevOps
0
1
HungryBus's avatar

PUT method returns 405

Hello :) A very strange bug appears on production. When calling the Laravel 12 API via PUT, the return is 405 Not Allowed, however changing the same method to POST works fine for some reason. Locally, it works both with PUT/POST. This is the routes file: Route::prefix('payers') ->name('payers.') ->controller(PayerController::class) ->

HungryBus's avatar
HungryBus's avatar DigitalArt...5mos agoDevOps
6
13
Last reply by DigitalArtisan 5mos ago
earmsby's avatar

Recommendations for connecting WooCommerce data to Laravel application

I need to pull data from a WooCommerce store into a laravel (filament) application. Looks like the easiest/best way to do this is using a pre-built package like codexshaper/laravel-woocommerce to connect to the WooCommerce API. Are there other packages I should consider? codexshaper/laravel-woocommerce was the main one I found in doing Google searches but perhaps I'm missing a

earmsby's avatar
earmsby's avatar LaryAI5mos agoLaravel
1
2
Last reply by LaryAI 5mos ago
an.leclerc's avatar

Custom properties in notifications

Hi, I'd like to add custom properties in laravel notifications (laravel 12). I tried with : ... $message = (new MailMessage) ->line('The introduction to the notification.') ->action('Notification Action', url('/')) ->line('Thank you for using our application!') ; $message->viewData['logo'] = 'https://dummyimage.co

an.leclerc's avatar
an.leclerc's avatar an.leclerc5mos agoLaravel
2
1
Last reply by an.leclerc 5mos ago
rudiwer's avatar

Is it a bad practice for SEO when i make a livewire component from the <head> section of a page?

When i make a livewire component from the head section of a webpage, there are some livewire related attributes added to the tag. ex: Is this a bad practice for SEO ?

rudiwer's avatar
rudiwer's avatar CapPerez5mos agoLivewire
2
5
Last reply by CapPerez 5mos ago
jasonb's avatar

Auto build CRUD?

Is there a way to build out CRUD from artisan based on a Database Table? In Cake PHP there was an option in the Bake tool that would build the scaffolding and give you boilerplate CRUD. -J

jasonb's avatar
jasonb's avatar clifordper...5mos agoLaravel
4
1
Last reply by clifordpereira 5mos ago
vincent15000's avatar

Happy New Year To Everyone !

Happy New Year To Everyone ! public function happy() { $new = 'Year'; Log::info('To Everyone'); }

vincent15000's avatar
vincent15000's avatar Snapey5mos agoGeneral
1
1
Last reply by Snapey 5mos ago
successdav's avatar

Conflicting server name

I was not having this problem until I tried to reinstall my ssl certificate then this error shows up now when I try to visit sp-movies.com/wp-admin it will redirect me to nigeriaschoolinfo.com when I run this code sudo nginx -t then this error shows up nginx: [warn] conflicting server name "www.sp-movies.com" on 0.0.0.0:80, ignored nginx: [warn] conflicting server n

successdav's avatar
successdav's avatar KanakaDurg...5mos agoServers
3
2
Last reply by KanakaDurgaAkula 5mos ago
BSP's avatar

"broadcasting/auth" returns empty response to laravel echo over 443 (SSL)

The authentication on the private channel is working fine on my localhost (port 80) - it's returning a json like {'auth' : 'longstringasdasdasd'} and notifications work fine. On the live site however, where everything is https, the "broadcasting/auth" route returns an empty response. The response header says Content Length : 0 Not sure which way to go and what to look

BSP's avatar
BSP's avatar saaydev5mos agoLaravel
8
1
Last reply by saaydev 5mos ago
KiwiNFLFan555's avatar

Deploying Livewire project on Vercel - JS/CSS not being served

I’m trying to deploy a Laravel Livewire app to Vercel. I configured the app using this guide and managed to get the app pushed to Vercel (haven’t configured the DB yet though). I can access the web app on the URL Vercel gave me, but the CSS and JavaScript are not downloading, although the HTML is. This means there is no styling on the page, but more importantly, the buttons and

KiwiNFLFan555's avatar
KiwiNFLFan555's avatar martinbean5mos agoDevOps
3
1
Last reply by martinbean 5mos ago
danasg's avatar

Capitalization or not of pages/vue routing files in a Laravel-Inertia-Vue application

Hello. Is there any specific reason for capitalizing the names of vue page files, i.e. Index, Create, Show etc instead of index, create and show. I can accept that the components themselves are capitalized but capitalizing these traditionally "route pages" can cause issues (and did) when I was testing my solution with nuxt/vue which recommends that route pages are not

danasg's avatar
danasg's avatar vincent150...5mos agoInertia
2
1
Last reply by vincent15000 5mos ago
liamseys's avatar

Laravel Boost (MCP Issue)

I recently got the following error in all of my projects in PhpStorm, do you know why this is happening? Error connecting to transport: MCP error -1: Connection closed

liamseys's avatar
liamseys's avatar liamseys5mos agoLaravel
1
5
Last reply by liamseys 5mos ago
minaremonshaker's avatar

Issue with Foreign Key Creation in Laravel Migration

Hi, I’m encountering an issue with a migration that creates a tickets table, which has a one-to-many relationship with the users table. Normally, the tickets table should include a foreign key referencing the users table. However, when I try to define it using: $table->foreignId('user_id')->constrained(indexName: 'FK_USER_TICKETS')->onDelete('cascade'); it only creates

minaremonshaker's avatar
minaremonshaker's avatar martinbean5mos agoLaravel
11
28
Last reply by martinbean 5mos ago
ashler2's avatar

Laravel cloud

I've recently built a site and wanted to try Larave cloud. Everything works fine apart from crawling the site. I'm unable to setup anything related to google search console things due to it getting a 403 error. This isn't coming from my application as i don't get anything logged, it seems to be erroring on cloudflare. I've done the usual things and checked robots, etc. Is there

ashler2's avatar
ashler2's avatar Tray25mos agoDevOps
1
1
Last reply by Tray2 5mos ago
vincent15000's avatar

Inertia::defer and Inertia::scoll

Hello, Is it possible to use Inertia::defer and Inertia::scoll (for infinite scroll) together ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar vincent150...5mos agoInertia
1
1
Last reply by vincent15000 5mos ago
Chron's avatar

Session expiration on inertia + laravel + vue

I'm getting NS_ERROR_REDIRECT_LOOP error in Firefox when I perform a DELETE request when the session has already expired. What is the best way to deal with this?

Chron's avatar
Chron's avatar Chron5mos agoInertia
0
1
Chron's avatar

Got a security vulnerabilty after updating a composer package

I got this message after updating a package. What should I do? Package symfony/http-foundation Severity high CVE CVE-2025-64500 Title CVE-2025-64500: Incorrect parsing of PATH_INFO can lead to limited authorization bypass URL https://symfony.com/blog/cve-2025-64500-incorrect-parsing-of-path-info-can-lead-to-limited-authorization-bypass Affected versions >=

Chron's avatar
Chron's avatar Chron5mos agoPHP
3
638
Last reply by Chron 5mos ago
realstoyt's avatar

Filament RelationManager: Dynamic Select fields work in UI but fail validation / Livewire entangle issues in slot-based dynamic schema

I’m working with Filament (v3) and a RelationManager that has a fairly complex dynamic form. Context Resource: Order RelationManager: OrderItemsRelationManager The form dynamically builds slot sections based on the selected product. Each slot has: A Select field (orders.attachable_products) A dynamic Rules section that depends on the selected attachable product Everything is bu

realstoyt's avatar
realstoyt's avatar realstoyt5mos agoFilament
0
1
NYC2025's avatar

Error in a Basic Laravel Project

Hi there, I am new to Laravel programming and to posting on this forum (and to using forums, in general). If there is anything I need to read to familiarize myself with how to seek help, please post it here or direct me to the right place. I have created a simple landing page using a Laravel project. And now I am creating two simple calculation apps using Laravel that will be a

NYC2025's avatar
NYC2025's avatar Snapey5mos agoCode Review
4
1
Last reply by Snapey 5mos ago
thesimons's avatar

Creating a custom Registration page in Filament 4

Hello, is there any tutorial / how to about creating a custom Registration page in Filament 4? All material that I've found is about Filament 3. Thanks, Simon

thesimons's avatar
thesimons's avatar DigitalArt...5mos agoFilament
3
208
Last reply by DigitalArtisan 5mos ago
earmsby's avatar

footer widget appears in wrong place

From everything I've seen online, adding a footer widget to a view record should work this way: "Filament widgets added to a page via getFooterWidgets() are displayed below the page content, but above the main page footer, which places them above the relationship manager if configured correctly." Perhaps the key is "if configured correctly" My footer widget

earmsby's avatar
earmsby's avatar earmsby5mos agoFilament
2
1
Last reply by earmsby 5mos ago
Shivamyadav's avatar

How to close the sidebar for mobile with the inertia ja link?

I have a sidebar containing links for the pages. Build the my portfolio with Laravel vue and inertia, while using inertia link the request works as a ajax for the spa. Navigation works without page reloading but how could I close the sidebar on the mobile after a successful navigation on the mobile screens ?

Shivamyadav's avatar
Shivamyadav's avatar JussiManni...5mos agoInertia
5
1
Last reply by JussiMannisto 5mos ago
minaremonshaker's avatar

Managing Authorization with Sanctum and Spatie Permissions

When integrating authorization using the Spatie Permission package alongside Sanctum token-based authentication in my API, should I modify the abilities column in the personal_access_tokens table, or rely solely on the Spatie package for handling authorization?

minaremonshaker's avatar
minaremonshaker's avatar JussiManni...5mos agoLaravel
7
1
Last reply by JussiMannisto 5mos 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.