Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

LewisHead's avatar

What agent skills do you use for Laravel inertia react typescript?

Look for some new skills to try to make my development cleaner and not have to do as much cleaning up for claude

LewisHead's avatar
LewisHead's avatar jasperfern...1mo agoGeneral
3
3
Last reply by jasperfernandez 1mo ago
dogakorkmaz35's avatar

How can I gather all shared view data?

Hi there, in one of my projects I am trying to differentiate current laravel application's view shared data vs data that passed down as props to view file via view("file")->with($data);, I tried to create a ViewFactory class that extends and overrides Laravel's default Illuminate\View\Factory class, and returns (via its viewInstance method) my own View class that e

dogakorkmaz35's avatar
dogakorkmaz35's avatar ghabriel251mo agoLaravel
1
1
Last reply by ghabriel25 1mo ago
rseletsk's avatar

Executing app resulting from app:build results in a runtime error

Executing app resulting from app:build results in a runtime error: PHP Fatal error: Uncaught Dotenv\Exception\InvalidPathException: Unable to read any of the environment file(s) at ... bootstrap/../.env].

rseletsk's avatar
rseletsk's avatar rseletsk1mo agoDesign
19
79
Last reply by rseletsk 1mo ago
Amirhossein256's avatar

Laravel 13 artisan commands close when interactive prompts are required on Windows (PHP 8.4/8.5)

Hello everyone, I am having a strange issue with Laravel 13 on Windows. Whenever an Artisan command requires user interaction (a prompt/question), the terminal process exits immediately after showing the question. For example: php artisan migrate Output: WARN The database 'faraertebat-db' does not exist on the 'mysql' connection. Would you like to create it? (yes/no) [yes] ❯ A

Amirhossein256's avatar
Amirhossein256's avatar Amirhossei...1mo agoLaravel
0
5
eskiesirius's avatar

Increment/Decrement on High Traffic

I created a fintech app, right now i am using ->increment/decrement for the balance.. my current problem is that when a certain merchant has lots of traffic, it causes a problem it needs to wait before it updates because of the atomic lock.. I also have a ledger of the wallet transaction but using sum to get the real balance will be very expensive when it has a lot of record

eskiesirius's avatar
eskiesirius's avatar Snapey1mo agoEloquent
10
5
Last reply by Snapey 1mo ago
earmsby's avatar

Importer for relationship with pivot value

I'm working on a project that has a model for Work: namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Work extends Model { protected $fillable = [ 'work_number', 'title', 'year_composed', 'commit_status', ]; public function authors(): BelongsToMany

earmsby's avatar
earmsby's avatar earmsby1mo agoFilament
5
5
Last reply by earmsby 1mo ago
jrmypttrsn's avatar

Get plan price from config/spark.php?

I'm trying to build a pricing section on my landing page. I'm able to loop through the plans I've specified in my config file but I'm at a loss as to how to access the prices for each plan, I can only return the ID for the monthly or yearly plan from Paddle. I've tried looking at the Vue files in vendor/laravel/spark-paddle/resources/js/components but it's still not clear to me

jrmypttrsn's avatar
jrmypttrsn's avatar imrandevbd1mo agoSpark
4
4
Last reply by imrandevbd 1mo ago
dcranmer's avatar

npm run build error: sh: vite: command not found

I'm trying to deploy a refactored Laravel/Inertia/Vue3 app to our "staging" server (which is a test production environment), but can't seem to run vite build. The error I get is: > postinstall > npm run build > build > vite build && vite build --ssr && vite build && vite build --ssr --ssr npm stderr: sh: vite: command not found I s

dcranmer's avatar
dcranmer's avatar Tuco331mo agoVite
7
3
Last reply by Tuco33 1mo ago
earmsby's avatar

button/link to copy text to clipboard

I have a livewire component & blade which is used within a Filament 4.x application. The component retrieves some data about a Model called Publication and displays it to the user like this: <div> <div class="mb-4 p-2 border-solid border-2 border-gray-200 rounded-md"> <div> <label class="font-bold">SKU:<

earmsby's avatar
earmsby's avatar earmsby1mo agoLivewire
7
10
Last reply by earmsby 1mo ago
hafizur-rahman's avatar

Ppaypal payment gateway : Got Http response code 404 when accessing

Hello seniors, I was trying to integrate paypal payment gateway in my laravel project. But facing an issue. here first I tried to redirect with these code: pls check https://i.postimg.cc/LsH5LYFx/explaination.png "Got Http response code 404 when accessing " error. https://i.postimg.cc/nhVMQ9J0/error01.png what can be the solution here? Thanks in advance.

hafizur-rahman's avatar
hafizur-rahman's avatar nawaelkim1mo agoLaravel
5
3
Last reply by nawaelkim 1mo ago
ninjapeps's avatar

Creating an event to check for inactivity

I'm trying to make a sort of real time auction site with each auction ideally lasting only as long as people are bidding. If no new bids are detected within a few seconds of the last bid, then the auction will close. Originally, I did this by having an event fire off when someone bids that sleeps for a few seconds and then checks if there are any new bids when it finally runs.

ninjapeps's avatar
ninjapeps's avatar ninjapeps1mo agoReverb
7
4
Last reply by ninjapeps 1mo ago
MuhammadAli2003's avatar

At what point do you stop patching CSS and just rebuild properly?

Hey, I’m working on a small project built on WordPress, but instead of using a proper theme structure I ended up building most of the UI using custom HTML + CSS blocks. It worked fine early on, but now I’m starting to hit a wall. Main issues I’m running into: styles are duplicated across multiple sections I’ve relied too much on !important to override things no real global syst

MuhammadAli2003's avatar
MuhammadAli2003's avatar Andy30001mo agoGeneral
11
9
Last reply by Andy3000 1mo ago
kokoshneta's avatar

Excluding a field from validation if not present, but validating type if present

[Laravel 9, Livewire 2 – upgrading is not currently an option] I have a Livewire component that validates a number of fields belonging to a User model. The validation rules are stored in the User class and pulled into the component from there. Usually, when validating User models, I want to validate the username and password fields, but for this particular component, those two

kokoshneta's avatar
kokoshneta's avatar vincent150...1mo agoLivewire
16
6
Last reply by vincent15000 1mo ago
papnikol's avatar

Suggest a path for me

Hi everyone, I have used PHP previously (almost 10 years ago). I barely wrote any OOP PHP and did no use Laravel (on any other framework for that matter) and I learned it as I went. So I am trying to balance my will to learn modern PHP and Laravel with my tight schedule since I want to create a website with admin panels connecting to an existing SQL database whose schema is al

papnikol's avatar
papnikol's avatar imrandevbd1mo agoGeneral
2
7
Last reply by imrandevbd 1mo ago
Respect's avatar

how to show delete confirmation and make request continmue

hot to make request continue <script> document.addEventListener('livewire:init', () => { Livewire.hook('component.init', ({ component }) => { component.intercept('delete', async ({ action }) => { action.cancel(); const resu

Respect's avatar
Respect's avatar Snapey1mo agoLivewire
6
4
Last reply by Snapey 1mo ago
Makaram's avatar

crypto wallet in Laravel

Hi everyone I have a project in laravel which need's an In app Crpto wallet is there any package/ libarary in PHP or laravel that would Help ?

Makaram's avatar
Makaram's avatar Tray21mo agoGuides
1
1
Last reply by Tray2 1mo ago
daveb2's avatar

Pest V4 browser testing - unreliable

Hi all, Browser testing is awesome, and very powerful. I love being able to script actions and save screenshots. I'd love to be able to use these, maybe even in some basic CI like github workflows, but for some reason it is just incredibly unreliable for me. I've worked through everything I can find with online guides and the LLMs etc. I pare down my browser test scripts and te

daveb2's avatar
daveb2's avatar daveb21mo agoTesting
5
2
Last reply by daveb2 1mo ago
ayoubelmoudni's avatar

How to run site with "http://localhost/example' instead of "http://example.test" while using Laravel Herd

I have a project that needs to be run as "http://localhost/example" and not "http://example.test" in my local, am using Herd and i like it, is there any way to do this?

ayoubelmoudni's avatar
ayoubelmoudni's avatar BenWortley1mo agoGeneral
4
1
Last reply by BenWortley 1mo ago
lsvagusa's avatar

Contract/Interface for Eloquent models

Hello. I have created a number of different tables that when having an entry created in them all need to go through a queue job. So they all need some kind of 'status' field (and others that are very application specific so won't mention). Then when being processed by the job the 'status' field would get updated. Of course this is something the job shouldn't care about, so I th

lsvagusa's avatar
lsvagusa's avatar ghabriel251mo agoEloquent
9
6
Last reply by ghabriel25 1mo ago
june23's avatar

I am sorry this is way off topic. But is this link that can be downloaded and installed malware?

A person I was messaging with on another website sent me a link. I installed this WPS Office from a person that wanted to show me a document. But I clicked on it and installed it and tried to remove my self following manual steps: 1. first turn off wi-fi 2. obtain administrator access throughout the entire removal of malware 3. use cmd prompt icacls/cacls to unhide any files in

june23's avatar
june23's avatar quintinmor...1mo agoGeneral
3
2
Last reply by quintinmorrow 1mo ago
marcusmoore's avatar

DB schema for marriage?

Hello, I'm working on a quick(ish) family tree type application and I got a little lost on what the best way to lay out the db tables and their corresponding Eloquent models. I thought of something similar below that I thought might work but I'm just not sure if that's the direction I should take. Marriages ___ id partner_1_id partner_2_id start_date end_date I wasn't sure ho

marcusmoore's avatar
marcusmoore's avatar martinbean1mo agoGeneral
2
6
Last reply by martinbean 1mo ago
june92's avatar

If I create a CRM and I needed web developers to work on the CRM, would web devs not work on it if it was not successful?

I want to create a Real Estate Investment CRM. I just wonder if I created a REI CRM and it started getting a good amount of users and the users are using the CRM but needed to be maintained. Will web developers not work on this because the codebase was not what they expected and think the CRM did not have good code even though it works and follows best practices? Even if the C

june92's avatar
june92's avatar Dewaxdi1mo agoGeneral
21
36
Last reply by Dewaxdi 1mo ago
june92's avatar

How big of projects do I need to get a job?

If someone can take the time to look at this open source project https://github.com/invoiceninja and if someone can tell me do I have to create a few projects like these? I know they aren't system design and other technologies. But should I have a project like this or a little smaller to apply for a job? I was planning to create a project but if I create a basic CRM or maybe a

june92's avatar
june92's avatar vincent150...1mo agoGeneral
9
9
Last reply by vincent15000 1mo ago
lara28580's avatar

Can't clear fields in form with livewire

I am trying to clear fields after submitting a form with livewire, but I can't get this to work. I am using the reset function trying to achieve this. What I am doing wrong here? public function submit() { $this->protectAgainstSpam(); // if is spam, will abort the request $validatedData = $this->validate(); Partner::create($validatedData);

lara28580's avatar
lara28580's avatar youssef200...1mo agoLivewire
9
1
Last reply by youssef2001 1mo ago
PeteBatin's avatar

VS Code, Laravel and increased errors/warnings from Intelephense

Has anyone else noticed a sudden increase in warnings in the Problems tab of VS Code from the Intelephense Extension? Does anyone know if they've reduced the feature set for the freemium version and maybe that's why it's doing it? It happened around last Thursday (12th Feb) where the most basic things are being falsely flagged up. I also noticed that PHP Namespace Resolver had

PeteBatin's avatar
PeteBatin's avatar CaptainBor...1mo agoGeneral
5
1
Last reply by CaptainBornig 1mo 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.