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

june23's avatar

Is it required to code an entire module like a basic "Instant Messenger" for example in coding interviews as quick and accurate as possible?

I have been wondering, I am sure for MAANG companies there needs to be "perfection" when it comes to coding rounds like memorizing an entire frontend or backend frameworks like Laravel so that it can be possible to code an entire module or component like a "Shopping Cart" for an E-Commerce website with out having to look into the documentation or Stackoverfl

june23's avatar
june23's avatar Snapey6mos agoGeneral
10
1
Last reply by Snapey 6mos ago
JussiMannisto's avatar

PhpStorm not recognizing built-in React props

I'm having an issue with .tsx React components in PhpStorm 2025.2.5. When I define component props explicitly, the IDE doesn't recognize special React props such as key and reports them as invalid. Take this mock example of a Groups component that renders a list of Group components: // Groups.tsx: import React from 'react'; import type { ContactGroup } from '@/Types/ContactGrou

JussiMannisto's avatar
JussiMannisto's avatar JussiManni...6mos agoReact
2
1
Last reply by JussiMannisto 6mos ago
valentin_vranic's avatar

config/database.php Laravel11 -> Laravel12

I have an application, where I connect to multiple db-s. I have In 8 connections 3 where read & write credentials are separately defined, and the rest where only the read were defined and write was left empty. 'mysql' => [ 'driver' => 'mysql', 'port' => env('DB_PORT', 3306), 'database' => env('DB_MYSQL_DATABASE'), 'read' => [ 'host' =&

valentin_vranic's avatar
valentin_vranic's avatar LaryAI6mos agoLaravel
4
23
Last reply by LaryAI 6mos ago
tomasnorre's avatar

When do experience points update?

I have currently 283,360 XPs, which I have had for quite a while. According to my profile, I have to be awarded +100 for some forum posts, but the points haven't been update lately. Is there a Work in progress bug, or something I'm not aware of? I do know that there has been changes regarding XPs for watching videos. I'm not aware of any changes in the regards of forum posts, a

tomasnorre's avatar
tomasnorre's avatar LaryAI6mos agoFeedback
4
1
Last reply by LaryAI 6mos ago
tomasnorre's avatar

Static Site Forms?

Hi, I'm looking for suggestions on a Form service for a static website. I will not expect many mails from the form. It has to be fairly cheap, hosted in Europe and be GPDR conforming. Any suggestions would be appreciated. Thanks.

tomasnorre's avatar
tomasnorre's avatar LaryAI6mos agoTips
4
3
Last reply by LaryAI 6mos ago
asifrumani's avatar

Pre-populate parent ID in select in RelationManager when creating record

I am not very well versed with Filament, just the basic stuff. I am using Filament v4. I have models Customer and Deal. Customer model has HasMany relationship with Deals and Deal model has BelongsTo relationship with Customer. I have DealRelationManager in CustomerResource which lists all Deals for a customer when in View or Edit mode. I am trying to work out a way to automati

asifrumani's avatar
asifrumani's avatar LaryAI6mos agoFilament
2
5
Last reply by LaryAI 6mos ago
xXSamXx's avatar

SQLSTATE[28000] [1045] Access denied for user, but credentials are correct (shared hosting)

Hi everyone, I’m stuck with a persistent SQLSTATE[HY000] [1045] error on a shared hosting environment (A2Hosting), and after 2 days of debugging I still can’t figure it out. Here is the exact Laravel error: SQLSTATE[28000] [1045] Access denied for user 'user-db'@'localhost' (using password: YES) What’s strange is that the same database name, user, password and host work fine i

xXSamXx's avatar
xXSamXx's avatar LaryAI6mos agoLaravel
16
1
Last reply by LaryAI 6mos ago
pier67's avatar

Problem "ReflectionException" class does not exist

Im getting this error and i have previously defined the class on the controller and also on the http requests and i'm still getting this error, i really don't kow what do to, im stuck

pier67's avatar
pier67's avatar erickBanda6mos agoLaravel
25
1
Last reply by erickBanda 6mos ago
Respect's avatar

Does to use livewire 4 now for real world project or go with livewire 3

hello Does to use livewire 4 now for real world project or go with livewire 3 in know it's stell in beta . but will starting new project but need features of livewire v4 like blaze and preformance and structure

Respect's avatar
Respect's avatar Respect6mos agoLivewire
2
4
Last reply by Respect 6mos ago
kevinoneil's avatar

Carbon Difference for Humans

Anyone having any issues with carbon not rounding up when adding to dates? I've tried the ceil(). Examples: // 11 months from now Carbon::parse('2019-08-01 12:00:00')->addYear()->diffForHumans(); // 5 months from now Carbon::parse('2019-08-01 12:00:00')->addMonths(6)->diffForHumans(); // 6 days from now Carbon::parse('2019-08-01 12:00:00')->addDays(7)->diffFor

kevinoneil's avatar
kevinoneil's avatar BHiko6mos agoGeneral
8
1
Last reply by BHiko 6mos ago
Chron's avatar

How to add foreign key in a table that is already created in production?

I want to add a foreign key in a table that already has data and is created. I get this error when I try to migrate the new migration file. Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails. //add_driving_id_as_foreign_key_to_persons_table.php return new class extends Migration { /** * Run the migrations. */

Chron's avatar
Chron's avatar Tray26mos agoGeneral
9
1
Last reply by Tray2 6mos ago
triadi's avatar

Error after Updating Laravel and laravel/boost — Need Help

Hello everyone, I need some help. After updating my Laravel version and the laravel/boost package, I encountered some strange errors that I’ve never seen before. Environment Laravel: upgraded from 10.48.16 → 10.49.0 laravel/boost: upgraded from 1.1.5 → 1.8.4 Editor: Visual Studio Code Issue 1 — Before updating boost While still using laravel/boost version 1.1.5, I started get

triadi's avatar
triadi's avatar triadi6mos agoLaravel
0
3
Developer654079525's avatar

PDF library

We want to export parts of our website into a downloadable, self-contained PDF file with the TOC. It will be generated from a separate, hidden layer of our app that has custom CSS. So, it would be nice, if the rendered PDF somewhat closely matches the CSS HTML look. Which library that plays nicely with Laravel 12.* would you recommend (for a commercial use)?

Developer654079525's avatar
Developer654079525's avatar Snapey6mos agoLaravel
3
1
Last reply by Snapey 6mos ago
petervandijck's avatar

Can't install Vapor CLI

Working on a new laptop, Macbook. I am working with Laravel. I have a Vapor project, that I was coding on another laptop, all worked well. (The other laptop broke). Now on this new laptop, I can't seem to install vapor CLI? I installed vapor CLI globally: composer global require laravel/vapor-cli --update-with-dependencies That worked well apparently. But then I can't use vapo

petervandijck's avatar
petervandijck's avatar DigitalArt...6mos agoVapor
2
1
Last reply by DigitalArtisan 6mos ago
henryoladj's avatar

Meta Tags and other Seo Features

I want to add meta tags like Open Graph taking the post title and link and Twitter Card to my laravel project, does anyone have idea on how i can?

henryoladj's avatar
henryoladj's avatar dipeshkhan...6mos agoLaravel
6
1
Last reply by dipeshkhanal79 6mos ago
jk's avatar

How to update props data on notification broadcast without page refresh? Vue3,Inertia

The csvs.index page displays a table of csvs with path, completed status, and download link. Csvs can have their export completed with all attributes or export incomplete with none of the attributes. When a Notification broadcast is received, the payload contains a csv's attributes needed to update an incomplete csv. The problem I have is understanding how to update my csvs

jk's avatar
jk's avatar Shivamyada...6mos agoInertia
4
1
Last reply by Shivamyadav 6mos ago
n0tttrui's avatar

Select movies where category...

I have rather a category system: #Movie.php (Model) <?php namespace App; use Illuminate\Database\Eloquent\Model; class Movie extends Model { /** **/ public function categories() { return $this->belongsToMany(Category::class); } public function thumbnail() { return url(); } public function comments() { return $this-

n0tttrui's avatar
n0tttrui's avatar bobbyengel6mos agoEloquent
25
1
Last reply by bobbyengel 6mos ago
abdulwolfiz's avatar

Serving Static Assets in Dockerized Laravel Environments

Hey team, I wanted to bring up an interesting point about serving static assets in our Dockerized Laravel setup. Currently, we have the public folder inside our backend container, but Nginx on the host cannot directly access it. This has caused issues where assets like /logo.png work locally in Docker Desktop but fail in production unless accessed via /public/logo.png or throug

abdulwolfiz's avatar
abdulwolfiz's avatar ian_h6mos agoLaravel
5
1
Last reply by ian_h 6mos ago
Chron's avatar

How to append data on request array

I tried doing this // if there are no `available` keys found in `cars` request, set the first item to true if(!collect($request->input('cars'))->contains('available', true)) { $request['cars'][0] = ['available'=>true]; } But I'm getting Indirect modification of overloaded element.... I can use collect(...)->transform(...) but is there a shorter and faster way of

Chron's avatar
Chron's avatar Glukinho6mos agoLaravel
3
1
Last reply by Glukinho 6mos ago
Ligonsker's avatar

On Laravel 12 + Livewire starter kit - where do I change where users are redirected to if they're authenticated and trying to access guest routes?

Hi, Right now, when a logged in user is trying to go to /register while he's logged it, it redirects to the /dashboard. I couldn't find where to change that. On config/fortify.php you have the Home Path: /* |-------------------------------------------------------------------------- | Home Path |--------------------------------------------------------------------

Ligonsker's avatar
Ligonsker's avatar valentin_v...6mos agoGeneral
1
3
Last reply by valentin_vranic 6mos ago
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
32
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
1
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
1
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

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.