Category "laravel"

Laravel update hasMany relationship using saveMany

As the title suggests, i'm trying to update a hasMany() relationship. I have a Contacts and a ContactsProperties model in my application. Contacts can have man

"RuntimeException: a facade root has not been set"

I'm having an issue in a Laravel Zero project I'm working on. I'm working on a command that handles direct file transfers between 2 disks—1 SFTP and anoth

Argument 1 passed to Symfony\Component\VarDumper\Server\Connection::__construct() ... called in DumpServerServiceProvider.php on line 49 [duplicate]

Actual Error Message is Argument 1 passed to Symfony\Component\VarDumper\Server\Connection::__const ruct() must be of the type string, null

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:\xampp\htdocs\project\routes\web.php on line 18 and exactly 2 expected

Too few arguments to function Illuminate\Routing\PendingResourceRegistration::name(), 1 passed in C:\xampp\htdocs\project\routes\web.php on line 18 and exactly

How to get Laravel's CSRF Token from Another Website?

I want to get a csrf token from another web's form. I've tried to get that token with cUrl. I guess that was success, but I think the real problem is that anoth

Laravel Sail Docker PHPMyAdmin : SQLSTATE[HY000] [2002] No such file or directory

I have some trouble connecting to PHPMyAdmin. So I always get the following message. SQLSTATE[HY000] [2002] No such file or directory I looked for a solution

React Native + Expo + Axios file upload not working because axios is not sending the form data to the server

I am trying to upload an image with react native front end and axios to my back end. This is how pic the image const pickImage = async () => { let result

How to fix a Laravel Sail "SQLSTATE[HY000] [1130] Host 'XXX.XXX.X.X' is not allowed to connect to this MySQL server" error

Laravel: 9.2Mac OS: 12.3.1Docker Desktop: 4.5.0 I have installed a default Laravel project using sail. My docker-compose.yml file includes the following: mysql:

NuxtJs app returns 401 after log in with laravel sanctum

I'm trying to build a PWA with NuxtJS and Laravel is in the backend for the API. I use Laravel Sanctum for API auth and also I have NuxtJS auth module, I can lo

Laravel Livewire pagination with bootstrap links not displaying

I'm using Laravel Livewire with bootstrap 4. I'm trying to use pagination but the links aren't displaying at the bottom of the table. I don't think the issue is

Run existing Laravel project with sail

I have an existing Laravel project which I created with the following command. curl -s https://laravel.build/example-app | bash The project was created success

Laravel Form Request custom error message for date_format rule

I want to add a custom message on date_format validation in laravel but conldn't find any thing.How i can add a custom message I have used this $messages = [ 'p

How to create laravel storage symbolic link for production or sub domain system?

When I worked on laravel local development server php artisan storage:link works fine for me. But when I transfer my site to production server then I saw my pub

Laravel Jetsream Profile page not loading on fresh install

I have performed a fresh install of Laravel Jetstream. Upon completing all the steps outlined in the Jetstream (Inertia) set up process, the project starts up f

Laravel Factory not calling callback 'afterCreating'

I'm trying to modify models after creating them with Factory. I have defined configure() method and within it what I want changed within the model. However, Lar

Issue with laravel eloquent model property

I'm trying to print {{$day->date}} in a view. Instead of full date YYYY-MM-DD the property only returns year YYYY. Can anyone explain me why it is working li

500 (Internal Server Error) with Laravel & Docker [duplicate]

I create Laravel PHP application in Docker. First I setup Laravel app using laravel new laravelDockerApp it creates successfully.I verify

Using Repository in edit method Repository is null

With laravel 7 /livewire app I make crud using Repository and I got listing of data ok, In mount event I assign protected var $FacilityRepository , which works

Laravel $request->expectsJson()

I am doing an Ajax login for my Laravel application. I am using Angular: $http({ method: 'POST', url: '/admin/login', headers: { 'Content-Type': '

How to make a foreign key not using primary key

I have a migration on Laravel for table pasien like this : public function up() { Schema::create('pasien', function (Blueprint $table) { $table->