Category "laravel"

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

how to create temporary url for custom storage in laravel?

I make a disk in filesystem like: 'avatars' => [ 'driver' => 'local', 'root' => storage_path('app/avatars') ], is it

How to re-init the AlpineJS component after Livewire re-renders?

I have an alert component that I hide using AlpineJS but I want it to be visible again after Livewire re-renders. Showing the alert using Livewire component @if

Laravel Command Schedule Not Working Properly

I'm building a project with Laravel 7.28 on localhost. I need to update a PDF every hour. For the beginning I created a command: <?php namespace App\Console

Laravel Command Schedule Not Working Properly

I'm building a project with Laravel 7.28 on localhost. I need to update a PDF every hour. For the beginning I created a command: <?php namespace App\Console

After social Login its redirect to Facebook page

This is mani I am facing some issues with social login subject: I face a redirection issue in larvel socialite When I login through Facebook after authenticatio

how to send message to specific one user id using ratchet Laravel?

chat.php how to send message to specific user id? public function onMessage(ConnectionInterface $from, $msg) { $numRecv = count($this->clients) - 1;

Laravel-mix-criticalcss in Docker cannot read property 'content-type'

I'm trying to set up laravel-mix-criticalcss in a Docker container and I'm getting an error. Has anyone come across this before? Error [webpack-cli] TypeError: