Category "laravel"

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

Laravel 8 - Bootstrap 5 Bootstrap-select dont show options

I am trying to set bootstrap-select in laravel via laravel mix. Everything seems correct, but when clicking on the select, it does not show the options. In reso

How to extend PHP Laravel model's fillable fields in a child class?

I try to extend an extintig ˙PHP` Laravel model with some other fields, but I not found the right solution. I use PHP 7.1 with Laravel 6.2 Here is my code

Laravel route returning error 404 when attempt is made to pass value to controller function

I have a button in my blade like this @can('customer_show') <a class = "btn btn-primary" href = "{{ route('admin.loan-applications.showCustVi

How to use regex or any other operator with whereIn clause

Is there any way we can use operator or regex as we normally do with the whereIn() clause. I want to use something like this $query->whereIN(name,'like','%te