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

siemankohe's avatar

Undefined variable: hours and another

Hello, I have another problem with my site and i think this is not last problem. Problem: Undefined variable: hours code: @foreach($hours as $hour) all the error is now on this page: http://wwlodarczyk.pl/hours Please help because after correcting one mistake another one pops up ...

siemankohe's avatar
siemankohe's avatar martinbean4mos agoLaravel
5
1
Last reply by martinbean 4mos ago
yumna12-coder's avatar

Validation upload image

how to validate image ? public function addproduct(AddProductRequest $request){ $imagepath=null; if($request->hasfile('image')){ $imagepath=$request->file('image')->store('photos','public');} $product = Product::create([ 'name'=> $request->validated('name'), 'price'=> $request->validated('price'), 'description'=>$request->validated('descri

yumna12-coder's avatar
yumna12-coder's avatar LaryAI4mos agoLaravel
1
1
Last reply by LaryAI 4mos ago
MIS1st's avatar

Best query Distinct Approch

hello every one i have done this public function index(TenantBranchCustomerMoneyExchangeFilter $filter): JsonResponse { $moneyExchange = TenantBranchCustomerMoneyExchange::query() ->whereIn('id', function ($q) { $q->selectRaw('MAX(id)') ->from('tenant_branch_customer_money_exchanges')

MIS1st's avatar
MIS1st's avatar MIS1st4mos agoLaravel
10
1
Last reply by MIS1st 4mos ago
waleed_lara_1's avatar

Connection Timed Out (522)

Hello Everybody I have been facing a strange issue since 2 weeks now, It was reported to me by my client that he seems to getting quite a lot of "Connection Timed Out" Errors, And since then i have been trying to solve the issue but haven't gotten anywhere, I am on Hostinger KVM 2 VPS using AlmaLinux2, I have WHM installed and my Laravel website on it, We have been us

waleed_lara_1's avatar
waleed_lara_1's avatar jlrdw4mos agoServers
1
1
Last reply by jlrdw 4mos ago
mathewberry's avatar

Envoyer showing 404 when trying to clone repo from Bitbucket

As of yesterday, both my Envoyer accounts (using 2 different Bitbucket profiles) stopped deploying and every time Envoyer attempts to clone the repository on any of the projects it just says 404. Connecting to bitbucket.org (bitbucket.org)|2401:1d80:3210::bbc:1:df7c|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2026-01-20 10:14:52 ERROR 404: Not Found

mathewberry's avatar
mathewberry's avatar graham19914mos agoEnvoyer
1
1
Last reply by graham1991 4mos ago
Bloobz's avatar

livewire starter kit

Hi guys, anyone having trouble grabbing the latest version of the livewire starter kit for v4? Like the livewire starter kit is different on the github version compared to what I'm downloading? On the github version under resources/views/ they have the pages integration for v4 Using laravel new {app name} command -> selecting livewire [starter kit] -> authentication scaff

Bloobz's avatar
Bloobz's avatar Bloobz4mos agoLaravel
2
1
Last reply by Bloobz 4mos ago
OligarchCat's avatar

Error uncompromised() method on MacOs

Hello all! When I was writing password rules for my API, I encountered an issue where the rules worked when deployed to Ubuntu 24.04. On MacOS (M1), I got an error. After testing, it turned out there was an error in the method uncompromised(). Has anyone encountered this issue? The project was deployed five times on each machine (without Docker, PHP 8.4). Password::defaults(sta

OligarchCat's avatar
OligarchCat's avatar martinbean4mos agoLaravel
2
1
Last reply by martinbean 4mos ago
sanjayacloud's avatar

What is the best way to config laravel logs in kubernetes

What is the best way to config laravel logs in kubernetes

sanjayacloud's avatar
sanjayacloud's avatar sanjayaclo...4mos agoLaravel
0
1
faificz's avatar

livewire4 error A request already contains one of the messages in this array

Hi , aften I updated my project from livewire 3 to livewire 4 I had an error livewire.js?id=8b575521:5200 Uncaught Error: A request already contains one of the messages in this array at compileRequest (livewire.js?id=8b575521:5200:21) at livewire.js?id=8b575521:4248:9 at livewire.js?id=8b575521:5196:9 at Array.forEach () at livewire.js?id=8b575521:5195:29 at Array.forEach () at

faificz's avatar
faificz's avatar faificz4mos agoLivewire
2
1
Last reply by faificz 4mos ago
amitgupta's avatar

Add to Watchlist and Mark Series Complete buttons not visible

On a series page, the buttons to add the series to watchlist or to mark it as complete are not visible at normal page zoom settings. If one zooms out to less than 100% then those are visible, not at the default 100% zoom.

amitgupta's avatar
amitgupta's avatar amitgupta4mos agoFeedback
3
1
Last reply by amitgupta 4mos ago
Basile404's avatar

Using laravel/boost in a docker environment

Hi I recently saw a video from Jeffrey Way about Boost, and thought: I will give it a try. I am also trying to move more towards Docker (not using Sail at the moment) as well. The context The way I have it set up right now is as follows: Laravel 12 (livewire/blade components) npm v22 & Vite 7 docker-compose.yml services: app: build: context: .

Basile404's avatar
Basile404's avatar martinbean4mos agoDevOps
6
120
Last reply by martinbean 4mos ago
minaremonshaker's avatar

Validating Role Assignments via Form Request

I have a controller method that assigns roles to users. The request includes a string containing the roles to assign, and I need to validate that each specified role exists in the roles table using a form request. Currently, I created a custom validation rule that converts the string into an array, loops through each role, and checks if it exists in the database—failing if any

minaremonshaker's avatar
minaremonshaker's avatar minaremons...4mos agoLaravel
7
118
Last reply by minaremonshaker 4mos ago
Ali-Hegzy's avatar

How to move in the path with the new content?

Hello guys, Now I am moving in the learning path in the web site - I am still in PHP for Beginners - and I saw the there is new Laravel playlist uploaded on the web site, so my question is When will I watch the new series after "30 days to learn Laravel" or before it, and why? EDIT: The path on the website has been modified, and the "30 days to learn Laravel"

Ali-Hegzy's avatar
Ali-Hegzy's avatar Ali-Hegzy4mos agoGuides
3
1
Last reply by Ali-Hegzy 4mos ago
yumna12-coder's avatar

ERROR : Error Call to undefined method ArrayObject::set()

Why gives me error when using make method? $idea=App\Models\Idea::factory()->make(); Error Call to undefined method ArrayObject::set(). $idea=App\Models\Idea::factory()->raw(); = [ "user_id" => 19, "name" => "Dicta assumenda iusto sed debitis porro nesciunt et.", "description" => "Ut commodi facilis autem dolores m

yumna12-coder's avatar
yumna12-coder's avatar LaryAI4mos agoLaravel
1
2
Last reply by LaryAI 4mos ago
a2logic's avatar

Livewire 4 - phpstorm support

Hello, I tried the new livewire4, but unfortunately I don't get the support from Ide like the old way with writing the components. So do you know if I need to enable a setting or some option in my Ide or the support will come in the upcoming patches of phpstorm. Thank you!

a2logic's avatar
a2logic's avatar ozumu4mos agoLivewire
1
1
Last reply by ozumu 4mos ago
devope's avatar

How to get access to archived courses?

I noticed that some courses are achieved without possibility to find them. Sometime legacy courses could be very useful.

devope's avatar
devope's avatar jlrdw4mos agoFeedback
1
1
Last reply by jlrdw 4mos ago
Reg's avatar

Vanilla JavaScipt

Is it possible to have a Vanilla JavaScript series focused on modern, practical usage without relying on frameworks. The goal is to strengthen our core JavaScript fundamentals, including topics such as: DOM manipulation and events ES6+ features and best practices Asynchronous JavaScript (Promises, async/await) Performance considerations Writing clean, reusable, and maintainable

Reg's avatar
Reg's avatar Reg4mos agoJavaScript
4
1
Last reply by Reg 4mos ago
hussainabeer's avatar

TemporaryUrl() on livewire image uploads 401 response

Livewire version v3.5.19 Laravel version v11.31 Which PHP version are you using? PHP 8.4 What is the problem? I can upload the images fine, but when I use the temporary preview Url, it throws a 401 error. I looked around online, and everyone keeps saying comment out the validate signature portion from within livewire source files. I dont think that is a viable solution here. I

hussainabeer's avatar
hussainabeer's avatar satyakresn...4mos agoLivewire
3
1
Last reply by satyakresna 4mos ago
hinlocaesar-75309181's avatar

Which course to learn the Laravel From Scratch (2026 Edition) or 30 Days to Learn Laravel??

Which course to learn the Laravel From Scratch (2026 Edition) or 30 Days to Learn Laravel??

hinlocaesar-75309181's avatar
hinlocaesar-75309181's avatar 0xSenator4mos agoFeedback
7
12
Last reply by 0xSenator 4mos ago
GodziLaravel's avatar

Supervisor Issue: Queues Not Executing Despite Status 'RUNNING'

Hey, I'm facing an issue with Supervisor in my Laravel app. Despite supervisorctl showing everything as RUNNING, queued jobs aren't executing. Checking the jobs table reveals no changes. Oddly, restarting Supervisor (sudo service supervisor restart) resolves the problem temporarily, but I need a lasting solution. Details: Laravel version: 9 Supervisor version: 4.2.1 OS: Ubuntu

GodziLaravel's avatar
GodziLaravel's avatar RanjanNaga...4mos agoGeneral
8
3
Last reply by RanjanNagarkoti 4mos ago
IHsojib's avatar

anhskohbo/no-captcha working locally but not working in production

I have used anhskohbo/no-captcha package and its working fine in the local machine. But when deploying the project captcha is showing but I can submit the form without verifying the captcha. I am using AWS EC2 instance server. Site domain is added in reCaptcha, has SSL too but still not validating. Please someone tell me how to setup it properly...

IHsojib's avatar
IHsojib's avatar bstory4mos agoLaravel
6
2
Last reply by bstory 4mos ago
minaremonshaker's avatar

Organizing API Routes into Separate Files

Hi, my routes/api.php file has become quite large, so I’d like to split the routes into separate PHP files inside the routes directory. I don’t want to register them manually in app.php—I just plan to include those files directly within api.php. Is that a good approach, or are there better alternatives?

minaremonshaker's avatar
minaremonshaker's avatar JussiManni...4mos agoLaravel
2
1
Last reply by JussiMannisto 4mos ago
minaremonshaker's avatar

Laravel Test Fails: RefreshDatabase vs DatabaseTruncation with assertJsonCount on Search API

Hello, I want to understand why this test fails specifically with the RefreshDatabase trait but succeeds with DatabaseTruncation. The failing assertion is $response->assertJsonCount(1, 'data')—all other assertions and the complete test method work fine. I've tested other database traits, but none resolve the issue. Here's the test code: #[Test] /*#[DataProvid

minaremonshaker's avatar
minaremonshaker's avatar minaremons...4mos agoTesting
5
39
Last reply by minaremonshaker 4mos ago
Chron's avatar

Session timeouts

I'm planning to add an alert for the user to continue their work or let the system log out their account due to inactivity. Does having a get route that points to a controller that only has $request->session()->regenerate()/invalidate() considered "safe"?

Chron's avatar
Chron's avatar shahriar_s...4mos agoLaravel
4
1
Last reply by shahriar_shaon 4mos ago
naykel's avatar

Can't use 'index' in any part or a component suffix.

Is there a reason i can't use the word 'index' in any part of a component suffix. For example Unable to find component: [admin::course.course-index] Unable to find component: [admin::course.course-abcindex] Unable to find component: [admin::course.course-thisindexisstillaproblem] It took me ages to work out i can use any other word except for 'index'. I can get rid of the 'cou

naykel's avatar
naykel's avatar naykel4mos agoLivewire
4
1
Last reply by naykel 4mos 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.