Category "laravel"

Laravel - Passing id from one page and reference that id for the next page's table data

Good day. I'm having a hard time solving how to pass an id from a table (Region table) and use that id as a reference (idParent) for the table (Province table)

Separate React app and Laravel 8 api, doesnt set cookie/cors

I have a standalone react app on localhost:3000 using Axios I make a request to my Laravel 8 api using sanctum. The request goes through: But the cookie doesn'

laravel database error when I try to convert an string to datetime

I'm on Laravel project that I didn't start, my problem is when I try to do an insert on laravel. I need to insert a datetime, on Y-m-d h:i:s.v format but when i

ERROR when try to install cretueusebiu/valet-windows

Hi Guys i try to install cretueusebiu/valet-windows, but i found the error like this : $ composer global require cretueusebiu/valet-windows Changed current dire

Problem 'SQLSTATE[42S02]: Base table or view not found

I have a problem with php artisan tinker, can't find the reason why he wants a 'businesses' table but not a 'business' table. Help me fix mistakes, I feel I did

Laravel Auth FormRequest works when accepting JSON, fails when accepting form data

This is very strange. I have an endpoint that accepts a PUT request. namespace App\Http\Requests; use Dingo\Api\Http\FormRequest; class UpdateTestRequest extend

Laravel - Alternative root domain on verification email link

I have a Laravel application which can be accessed from multiple clients all of which have their own domain (eg myclient.com). In addition, there is a core clie

'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