Custom verificarion email in laravel issue

guys in my laravel application i’m trying to send my users a custom verification email, as i’m using language translations So as the first step I’ve created following custom email template in my App/…

How do I do Laravel form validation when value of one field decides validity of the other field

I have a form. Type field is a drop-down and has only two possible values. Second field is bcode. E.g. if table has data like- ID TYPE BCODE 1 1 2 2 1 3 3 2 2 4 1 4 5 …

How to know the controller and method name inside blade file in Laravel 6?

I am new to Laravel. I was practicing setting up a blog in Laravel 6. I have a layout.blade.php file where all the basic HTML is written. In the content section of the layout.blade file, I want to @…

What is the difference between a JsonResource & ResourceCollection? in Laravel v6 or v7

Can someone explain the difference between a ResourceCollection and JsonResource? In Laravel 6 docs you can generate 2 different types of resources… ResourceCollection and JsonResource. https://…

command not being found even though I am registering it Laravel 6.x

So consider the service provider, yes I know I am registering this command in two places, but just give me a moment to explain:

Artisan::call(‘route:cache’) from within Laravel app, crashes

Quick summary: I need to programmatically clear the routes cache (unless there is another way using the RouteServiceProvider?) but Artisan::call(‘route:cache’); is throwing an error. I have routes …

Laravel 6.11: Shopping cart HasMany::fisrt() in Accessor not working

EDIT: typos corrected (made while translating some of the code) I’m building a shopping cart with Laravel 6.11 (MAMP). I am getting a couple of errors that are driving me nuts. Please help! First I’…

Search is not working although item exists in DB

I am using laravel 6 : need user to find records by search bar, but it shows No Available Records enter image description here this in my model:Category model: public function scopeWhenSearch($query,…

Laravel 6 with Nginx, php 7.4 fpm and mysql 8 on docker is slower than Laravel 4 on php 7.1

I have been working on a site built on Laravel 4.2 and on Php 7.1. Recently I have been trying to migrate the site to Laravel 6 with php 7.4 and mysql 8. I setup docker with the following settings. …

Possibility using gate authorization without logged user

Is there a possiblity to use Gate authorization without making use of user auth service? For example I want to define a Gate: Gate::define(‘morning’, function(){ return date(‘H’) < 12; }); …