Category "laravel"

Google API Gateway: Authorization Header not forwarded

I have a google cloud api gateway deployed to send requests to a cloud run service. The cloud run service hosts a laravel docker container image and to authenti

Unable to create lockable file - Laravel 8 & PHP 8

I'm stuck in a Laravel project, I've been using laravel a lot of years and never happened this. I'm using Vagrant (as always) and only happens this with PHP 8,

How to create custom column for polymorphic model and without model id in Laravel

I have a model to take the polymorph association "Qualification." Qualification: - id - model_name - name - value The Laravel documentation said th

Run Laravel migrations on just one server (like ->onOneServer() for scheduled cronjobs)

I'm running a Laravel app on multiple servers at the same time. It's running in a Docker image. Each time I deploy some code changes, Docker image is restarted

Show list of registered users base on current month using laravel

Im new to laravel and im tryin to learn the fundamentals of it. My question is how can I display all the registered users that is registered only on the current

Laravel whole batch is cancelled if one Job fails

I'm working on a Laravel project that uses the Batching feature to batch a bunch of Jobs into a Batch. In my context, I have around 50 jobs in a batch, each job

Laravel 9.x and MySQL how to issue an Update on millions of records

I have a project where certain records in a table will "expire" after so many days. I use soft deletes so basically all I have to do is set the deleted_at colum

How to create foreign keys in Laravel without errors

I'm trying to create foreign keys in Laravel. However, when I migrate my table using Artisan, I am thrown the following error. Schema::create('billing_transacti

Laravel same route for different middlewares

I have problem with routes and middlewares. I have 5 middleware roles. Administravimas, birstonas_biblioteka, druskininkai_biblioteka, birstonas_registratura,dr

How to fix Call to undefined method App\Models\TableName::factory?

I have created a seeder that populates data in Laravel but was having a BadMethodCallException Call to undefined method App\Models\Project::factory(). Why is th

how to solve laravel/horizon v4.3.3 requires ext-pcntl problem

I'm using Windows operating system. I've also tried with these solutions available here: link 1) PHP pcntl module installation link 2) How to install PCNTL exte

Insert multiple records at once from a table

I have this table which is loaded with data from the database and what the user has to do is select the one they want and fill in the data from both the select

Display sidebar menu elements based on user's role, with "yaminncco/vue-sidebar-menu" package

Hi I'm using Laravel Breeze with Inertia JS. I'm using "yaminncco / vue-sidebar-menu package" for the sidebar. I'm asking if there is a way to display menu elem

How to exclude date in RRule.js?

Suspected code: <script src="https://jakubroztocil.github.io/rrule/dist/es5/rrule.min.js"></script> // Create a rule: const rule = new rrule

strpos(): Argument #1 ($haystack) must be of type string, array given

I'm newbie in Laravel, and follow a free course in Laracast. This is link of my course my_cource (episode 11 at 2:49s). Summary of my problem: I'm trying to mak

Laravel passport auth token not working after moving to different server

I have created this small app using laravel + vue js 2 years ago. It has been working fine till now but the server guys moved it to different server and suddenl

Requests check if user is authenticated or not

I was asked to check if the user is logged in or not I have been given a sample code public function getAllNfts(GetAllNfts $request): JsonResponse {

The session is not working properly in PHP

The session is not working properly in PHP. The login page is working fine. But after redirecting to my home page I couldn't able to see my login details it thr

The POST method is not supported for this route. Supported methods: GET, HEAD, PUT, PATCH, DELETE. Laravel 8

hello i have a problem with uploading a form this is my form @extends('layouts.app-admin') @section('content') <div class="container"> <div

Laravel Sanctum Vue

I have some problems authenticating an user with Laravel Sanctum. I have installed everything as needed, with Vite and Vue 3 as a frontend. So here is the probl