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

troccoli's avatar

Larastan and Eloquent relations

I'm starting a new project so I installed Larastan from the start, set at level 8. I have two models DataPortal and Programme and a belongsTo relationship between the two class DataPortal extends Model { public function programme(): BelongsTo { return $this->belongsTo(Programme::class); } } Running Larastan returns the following error: Method App\Models\

troccoli's avatar
troccoli's avatar silveira5mos agoLaravel
10
10
Last reply by silveira 5mos ago
FunCoding's avatar

auth()->id() global displaying error warning in VS Code

I have user model named Employee. I'm using this with Sanctum. This project is an api only, no frontend integration from Laravel. I'm using VS Code. The user global is triggering the ugly red line in VS Code. This typically how I use it: $user_id = auth()->id(); I have a project where User is the model, and I get no warning. In this project Employee is the user model and

FunCoding's avatar
FunCoding's avatar silveira5mos agoLaravel
6
1
Last reply by silveira 5mos ago
it-is-all-about-laravel's avatar

herd / inertia / vue - build

i've created an laravel 12 +inertia+vue project via herd on windows. on my local machine i can view the project in web browser, but when i make changes to vue components i do not see the changes take affect in the web browser. i tried npm run dev in the terminal, that seems to execute with vite reporting it's ready. however that made it worse - as soon as vite is running i get

it-is-all-about-laravel's avatar
it-is-all-about-laravel's avatar lukgol265mos agoLaravel
6
1
Last reply by lukgol26 5mos ago
GeorgeSource's avatar

Install the last version of Vagrant box laravel/homestead in Virtualbox

When I install the Laravel/Homestead box for Virtual box, it always installs version 12.2.0, but it is old, the most recent, as of today, is 14.0.2. I have tried several alternatives, but without success. I have downloaded version 14.0.2 from: "app vagrantup com laravel boxes homestead", but when installing the box, it says that the file is not versioned and assigns i

GeorgeSource's avatar
GeorgeSource's avatar kereborn5mos agoServers
7
2
Last reply by kereborn 5mos ago
adamnet's avatar

Create a function to be called by every other function i a controller

In my application, I want to create a function that will contain some basic tasks to be executed before presenting data in the app views. I.e. I want every view at its top to have the name of the company which will be no static but will be fetched dynamically from the database. Obviously I do not want to repeat this query analytically in every method in the controllers. I want

adamnet's avatar
adamnet's avatar adamnet5mos agoLaravel
4
1
Last reply by adamnet 5mos ago
minaremonshaker's avatar

Sorting Users by Related Table Columns in Laravel API

Hi, I want to implement sorting on my users table using some columns from related tables — for example, date_of_birth from the profiles table and status from the tickets table — combined with columns from the users table itself. Currently, I’m constructing the URL like this: http://localhost:8000/authors?search=Co&searchBy=first_name&sort=profiles.date_of_birth,users.st

minaremonshaker's avatar
minaremonshaker's avatar minaremons...5mos agoLaravel
7
1
Last reply by minaremonshaker 5mos ago
husnainisworking's avatar

After 6 accounts of claude ai free version limit hit

I face numerous bugs , but copilot, chatgpt pro, grok , all dont help at all , always escalate issue, is there any better free ai like claude for code?

husnainisworking's avatar
husnainisworking's avatar martinbean5mos agoLaravel
5
1
Last reply by martinbean 5mos ago
GodziLaravel's avatar

Looking for a ready-to-use Bagisto repository with maximum addons/modules included

Hi everyone, I’m looking for a Bagisto-based repository or starter project that already includes as many addons/modules as possible (official and/or community), ideally close to a production-ready setup. The goal is to avoid starting from a very minimal core and instead build on top of: Common ecommerce features already enabled Popular Bagisto extensions (payments, shipping, ma

GodziLaravel's avatar
GodziLaravel's avatar martinbean5mos agoGeneral
1
1
Last reply by martinbean 5mos ago
b15063368's avatar

Diagnosing Lag and Input Delay in Geometry Dash (System-Level Issue)

Hi everyone, I know Laracasts is mainly focused on development, but I’m hoping someone here can help me understand a technical issue I’m facing while playing Geometry Dash, as it seems more like a system/performance problem than a game issue. geometrydeshapks.com While playing Geometry Dash, I experience random lag, frame drops, and brief screen freezes, especially on levels wi

b15063368's avatar
b15063368's avatar DigitalArt...5mos agoCode Review
3
12
Last reply by DigitalArtisan 5mos ago
zayadur's avatar

403 forbidden when submitting exam

I'm trying to submit my responses to exams but keep getting a 403 forbidden screen on submit. Is anyone else experiencing this? I've tried on both Safari and Google Chrome to check if it's a client-side issue but it's happening in both scenarios.

zayadur's avatar
zayadur's avatar zayadur5mos agoFeedback
0
1
thesimons's avatar

Filament keeps timeout

Hello, I'm dev mode locally using Herd Pro. I'm working with a pretty heavy panel powered by Filament 4. I have tweaked the tweak-able things. I have max exec time at 300 seconds. But it keeps going timeout. Any idea how to avoid it? I have hard this issue before but the solution was for Windows. Thanks, Simom

thesimons's avatar
thesimons's avatar Tray25mos agoFilament
1
1
Last reply by Tray2 5mos ago
vincent15000's avatar

Laravel Envoy and environment variables

Hello, Is there any way to access the environment variables or the configuration files from Envoy.blade.php ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar Glukinho5mos agoLaravel
5
1
Last reply by Glukinho 5mos ago
beracah.kings's avatar

Unauthorised File Upload

Im maintaining a laravel application that has a feature to upload image files to the server. Recently I could notice unwanted files being uploaded to the image files folder . The application runs on Apache. We face thiis issue when Php File upload option is enabled, How to resolve. Please advice

beracah.kings's avatar
beracah.kings's avatar beracah.ki...5mos agoLaravel
1
1
Last reply by beracah.kings 5mos ago
vincent15000's avatar

Merry Christmas to everyone !

Merry Christmas to everyone !

vincent15000's avatar
vincent15000's avatar jlrdw5mos agoGeneral
3
1
Last reply by jlrdw 5mos ago
MarkTierney's avatar

Testing Stripe Webhooks 403 error

Hi, I'm trying to test my stripe webhooks. Everything works fine testing manually locally. But when I run phpunt I get a 403 response on every webhook If I comment out the VerifyWebhookSignature code in the Cashier package I get a 200 response. I have my STRIPE_WEBHOOK_SECRET defined as an environment variable but it's not verifying it for some reason. Even when I disable the m

MarkTierney's avatar
MarkTierney's avatar asim-ali-p...5mos agoLaravel
16
6
Last reply by asim-ali-peerzada 5mos ago
stackprogramer's avatar

How restore db in laravel when i remove db completely first

I need a chunk restore method, because db and files are too big, files extracts successfully. but for db after ajax request time 2 and 3 we had error in provider....middlewares.... I added exception for restore method but it wasn't fixed..... Error: [2025-12-18 14:53:53] local.ERROR: Attempt to read property "headers" on null {"userId":1,"exception"

stackprogramer's avatar
stackprogramer's avatar stackprogr...5mos agoLaravel
8
2
Last reply by stackprogramer 5mos ago
carlosanjos's avatar

Docker Image with Wayfinder

I'm trying to create a Docker image using the latest Laravel version with the starter kit React + Laravel's built-in authentication + Pest. My image has 3 stages. The first building assets, the second running composer install, and the last one building the app. I know Wayfinder needs PHP to run scripts, but I don't get why I need to install PHP's dev libraries. RUN composer ins

carlosanjos's avatar
carlosanjos's avatar bwjoyce5mos agoDevOps
2
4
Last reply by bwjoyce 5mos ago
J-LXXXIX's avatar

Laravel 12 - Vue-Starter-Kit - User info exposed after logout?

This might be a non-issue but figured I should ask the community. I recently cloned the Laravel 12 Vue Starter Kit at: https://github.com/laravel/vue-starter-kit Without making any changes and just exploring the Auth register/login/logout. I noticed my user information was still available after logging out within the source. This happens in the demo too. To replicate the steps,

J-LXXXIX's avatar
J-LXXXIX's avatar J-LXXXIX5mos agoLaravel
8
32
Last reply by J-LXXXIX 5mos ago
apichet7977's avatar

Livewire 4 does not work on subfolders.

public function boot(): void { Livewire::setUpdateRoute(function ($handle) { return Route::post('/livewire4/livewire/update', $handle) ->name('app.livewire.update'); }); } Customizing Livewire's update endpoint is not available. The result displayed is "http://localhost/livewire4/livewire/update 404 (Not Found)."

apichet7977's avatar
apichet7977's avatar apichet797...5mos agoLivewire
2
1
Last reply by apichet7977 5mos ago
karinegomes's avatar

List of available languages

Hey! I'm working on a multilingual project, and I was wondering if there's any function or helper package available on Laravel that retrieves all the languages defined on resources/lang, instead of manually adding a new language to an array everytime a new one is set up. So, if we need to loop through all the languages available, everytime a new locale is added to resources/lan

karinegomes's avatar
karinegomes's avatar JussiManni...5mos agoLaravel
8
1
Last reply by JussiMannisto 5mos ago
sigkydj's avatar

how to update laravel /tenancy app

I have a Laravel 12 app using stanch/tenancy. When I try to update it with "composer update", it breaks the routes and only accesses the main user's login and dashboard. Does anyone know how to fix this?

sigkydj's avatar
sigkydj's avatar sigkydj5mos agoLaravel
0
1
questionAndy's avatar

Error installing homestead box

So i am installing homestead step by step using the official laravel guide, but got an error, is this a bug or am i missing something? It says that there are no available versions that matches constraints, but then they show 13.0.0 as available version so why does it throw such an errror? I did not edit any files. Straight up git clone, init.bat, vagrant up and got this error.

questionAndy's avatar
questionAndy's avatar Voyowsky-6...5mos agoGeneral
8
1
Last reply by Voyowsky-6874182 5mos ago
yougotnet's avatar

How to allows user to build custom forms

I have an application where I need to allow the user to build a custom Survey forms and they design their own questions. I've done this before but wanted to see how others have accomplished this. The process involves the user building the custom form, then display the form for user input, storing the form input and generating a report based on the custom form data. Any input is

yougotnet's avatar
yougotnet's avatar raobilal48...5mos agoDesign
3
1
Last reply by raobilal4822 5mos ago
Punksta's avatar

tinker error

Seems to work, but always starts with "The system cannot find the path specified.". Windows 11, fresh Laravel 12.39.0 project Any ideas ?

Punksta's avatar
Punksta's avatar Punksta5mos agoLaravel
2
2
Last reply by Punksta 5mos ago
mgksmv's avatar

Close filter dropdown on "Apply filters" button click

How can I make table filters dropdown close after I click on "Apply filters" button? My client wants the dropdown to close after clicking but I didn't find a solution for this.

mgksmv's avatar
mgksmv's avatar mgksmv5mos agoFilament
0
1

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.