Category "laravel"

Error while 'composer require jenssegers/mongodb' adding MongoDB to new Laravel 7 Project

After fresh installation of laravel 7 project, C:\xampp\htdocs\blog>composer require jenssegers/mongodb --ignore-platform-reqs But this is giving an error

Why is my Laravel Inertia Lambda rendering pages inside nested modals?

I have a Laravel app that works fine locally using Docker/Sail. However when I deploy that app to an AWS Lambda, it doesn't function in the same way. Once runni

Laravel livewire sorting by foreign key

I'm trying to sort a post table by a foreign key, and can't figure out how to do it. Hopefully someone can lend me a hand. I can sort by the fields already pres

laravel 8 instalation error - npm run dev throws error

I am trying to install a fresh laravel 8 project. After downloading frontend scaffolding when I try to run npm run dev it gives me an error. This problem also h

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