Category "laravel"

'npm run watch' or 'dev' not working anymore in my computer (Laravel project), Error : '[webpack-cli] RangeError: Maximum call stack size exceeded'

I have been working on a website (using Laravel) recently, and since yesterday I have been working on JavaScript code (to implement Meilisearch). For this, I r

Laragon auto Vartual host file gets reset on refresh

hi I have many sites that I want to test on local, so when I edit the files on auto virtual host files under Apache->sites-enabled->file name, after reloa

How to set database dynamically based on client request in Laravel

I am using a Laravel Application as a backend and wish to set the database connection dynamically (and keep it until the page is refreshed) through an axios req

Laravel - Composer detected issues in your platform after updating it

So i just updated composer using the command composer self-update --2, However, now my web application shows the error Composer detected issues in your platform

What is Laravel Sail's HMR_PORT in Docker

I'm learning docker, trying to build an environment: Two Laravel Sail project, with Nginx Proxy Manager. This is the video I'm watching. I labeled the time: htt

Interface "Filament\Models\Contracts\FilamentUser" not found

what can be the possible cause of this error, I am using laravel filament for admin, I got this error when I pushed to production, but it is working fine on loc

Laravel Nova 404 at source map files

In my Chrome DevTools I see this Erros: DevTools failed to load source map: Could not load content for http://xxx.yyy.net.local/nova-api/styles/filter.css.map:

JSON Render Issue in Date Object Laravel and PHP 7.4

I am facing a stranger issue in php 7.4 inside Laravel. When I am trying to log the results using dd() function for any collection its gives me that my date fie

Laravel Json test with Bearer authentication

I'm writing a simple test to assert if an api endpoint response returns with 200 status. My api got Bearer authentication through sanctum middleware. My test fu

Laravel 9 Cannot find table - pivot table singular/plural issue

My understanding is that the naming convention for database tables in Laravel is to use plural names for regular tables, and singular names for pivot tables (do

Laravel insert dynamic input values with radio button

I am a beginner at Laravel, I want to insert a more dynamic address field to the database and I want to select one primary address using the radio button. I can

Login if user is active using Laravel Breeze

I've changed it in the LoginRequest.php file at authenticate function, but it doesn't work. if (! Auth::attempt($this->only('email', 'password', ['active' =&

Job stay in pending list after processed

I am running Laravel 8, horizon 5.4 After I initiate the job, it processes successfully as it should, but in the Horizon dashboard it stays pending list, it doe

How to export all rows using Export Buttons of Backpack Laravel?

I'm looking to export all rows of users table using the export button of Backpack in Laravel. Currently the export button only exports the lignes of 10 rows sho

Laravel Vapor file upload fails

Following the Laravel Vapor documentation for file uploads (https://docs.vapor.build/1.0/resources/storage.html#file-uploads), I'm encountering the following er

Laravel Fortify not triggering 2FA challenge?

I've used Laravel Fortify to write some authentication for my app and I've setup the enable part of the 2FA, and that all works fine, but the problem I'm having

Use environment variables in Laravel Nova

I am trying to follow: https://laravel.com/docs/9.x/mix#environment-variables My project setup is Laravel Framework 8.4 Php 7.4 Laravel Nova 3.0 .vue file in /n

How to render html from a @foreach loop in a textarea

Using Laravel 8 livewire, I need to render a list of name ($list) on per line in a textarea. I do this <div class=" border border-red-800 rounded-lg mt-8 p-4

getting null values from the collection

I have an array that comes from an API request that has the stucture below. ^ array:40 [ "id" => 2 ... "categories" => array:2 [ "data" => ar

Product varient size validation on Add to card in laravel

I'm using Laravel and I'm struggling a little bit with Add to cart button validation. The scenario is: if user want to Add to cart to cart is not added without