Category "laravel"

Laravel 9 email verification Invalid Signature

I've read all available solutions, but no chance. It always redirects to the 403 page with message (Invalid Signature). Here is my route : Auth::routes(['verify

Laravel Implicit Binding Routing with More Than Two Word

We know that Laravel 8 and above has an Implicit Binding function on its routes. I have tried to create a controller resource with model name is QuestionHelper.

How to set onEachSide at controller level on laravel?

How to set onEachSide at controller level on laravel? on blade we use: {{ $records->onEachSide(2)->links() }} How this can be done at controller level?

Laravel - foreach on collection

I have a request : $comments = $post->comments()->with('replyComments:id,post_id,user_id,content,created_at,reply_comment_id')->orderBy('created_at', '

alpine js, x-model binds to wrong value when switching tabs

running into an issue with alpine js. First of all I have a master component that allows the user to switch between two tabs @props(['pages', 'blogs']) <div

Hidden checkbox is still Submitted When i have the checkbox checked

<td><input type="checkbox" name="level_one[{{$loop->index}}][]" class="check" value="1"><input type="hidden" name="level_one[{{$loop->

How to convert the image into qrcode in laravel?

convert the image into qr code

Missing class import via use statement

I'm trying to fix the pipeline and I get the following 2 warning $secretKeyString = new \java("java.lang.String", $secretKey); $pbbEncryptAES = new \java("my.c

Missing class import via use statement

I'm trying to fix the pipeline and I get the following 2 warning $secretKeyString = new \java("java.lang.String", $secretKey); $pbbEncryptAES = new \java("my.c

Laravel Model is freezing the server. Timeout error

I'm having a really strange issue here. I have a user model (detailed below). It all works fine until I added the getReportsSharedAttribute function. When this

Which route is to write for same method on every page [closed]

Currenty developing a project in Laravel and want to now which route should I write when for example the search bar appears in the navigation

Laravel docker-compose 404 not found Nginx

I'm facing a strange behavior when trying to run my Laravel app using docker-compose. After starting the containers, if I try to visit my website URL I get the

Unable to update user role spite package when datatype changed to UUID

Hi I am using Spaite package for roles and permissions. I am using UUID datatype. Everything works fine when used normal integer datatype. Now showing Following

How to install google consent script for CMP banner?

window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("consent", "default", { ad_storage: "Denied", analytics_storage:

Laravel Mix HMR Server Does Not Launch

Laravel Mix Version: 6.0.43 Node Version (node -v): 16.13.1 NPM Version (npm -v): 8.1.2 OS: Windows 10 21h2 Description: THIS IS HAPPENING ON A FRESH NEW INSTAL

Issue with Generating Random Numbers using Laravel contains vs foreach loop [duplicate]

Hey guys I come across this strange issue where if I use the foreach it does not generate a unique random number wheres if I use laravel funct

My coding mistake or problem with the integrity of the data?

I'm learning Laravel from Laracasts videos and so far I've made simple blog with 4 posts that are dynamic but only 2 of them when I click on the name of the pos

Install an Older Version of Laravel with Sail

I have a server that is still running PHP 7.4.x I, therefore, need to install laravel 8.x (the current version of laravel is 9.x) with laravel-sail. Since I don

root directory is displayed twice in URL on load and reload

I am trying to build an app using Laravel with Jetstream and Inertia + Vue.js. URL looks like this : https://website/app/route When I first visit the page, it l

How I can generate the unique transaction ID in laravel 8?

I am using Laravel ID Generator and i have made trasaction id and inserted in db but unfortunately i am getting duplicate transaction id in db please help me ho