Category "laravel"

http to https and www to non-www not working correct with laravel 8 URI links

I searched a lot of about this topic to redirect all urls to https://my-domain I want delete the www and add https. I found a lot of answers this one work good

No alive nodes. All the 1 nodes seem to be down

I am trying to use Elasticsearch 8.1 using laravel. My elasticsearch instance is running at port 9200. https://localhost:9200 returns me { "name" : "node-1",

Laravel | Route not defined

I have a problem in my Route. I see this error: Route [utilizadores.editar] not defined The error occurs on the page when I try to update the data in my DB. M

How can I force a refresh in my spa website with vuejs - laravel

Hi I know that this had been spoken but I have tried everything and nothing works.. so I come here one more time to ask a final or a solution to the big problem

How to get top 5 tags of Category from posts Laravel

Hi I've 3 Modeles Post, Tag, and category , post belongs to many categories as well as tags. I want to fetch the top 5 tags of the posts for the given categori

Laravel 8: How to set default value of all enum values

I want to assign all default values for allowed_file_types column in products table which are all values of enum FileTypes. But now I have no way to do that. Ca

Illuminate\Foundation\Auth\User returning keyType: int

I am using the following trait to generate UUID's for my user model. I have setup a listener to the following event: Illuminate\Auth\Events\Login. This works wh

How can I send JSON data from local storage to controller in Laravel?

I want to send the json data from view to controller using ajax. How can I achieve that? The data in local storage is [{"productId":2,"productCost":"630","produ

HTML returning as text Laravel Controller

I am trying to return HTML from Laravel controller, but it is returning as plan text: Example: <input type="checkbox" class="row-select" value="9"> ->a

What is the best practice to query this type of data in laravel?

I have 3 tables structure like below:- products id name 1 apple 2 orange branches id name 1 Branch 1 2 Branch 2 stocks id branch_id product_id qty 1

Laravel - Sanctum Remove Database Id From Generated Token

Currently I am building rest API using Laravel. For authentication, I am using the Sanctum package. Every time a user is logged in it generate a token that look

CKEditor5 Vue(tify)2 Laravel - Cannot read property 'getAttribute' of null

I followed this https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/frameworks/vuejs-v2.html#integrating-a-custom-build-from-the-online-bui

Images don't save using Faker Image in seeder

I'm doing a project on Laravel 7 with FakerPHP, I want to populate my database with some random images and at the same time saving them on my local storage fold

There is no like "toOthers()" method in @broadcast of lighthouse?

framework versions laravel 6.20 lighthouse 5.3 Problem I'd like to use toOthers() method like this (laravel doc) in lighthouse but it seems @broadcast doesn't h

How to reliably detect an expired Laravel session?

I am working on a web client which does a lot of AJAX request. The backend is written in Laravel. If the backend throws a PHP exception, the backend sends a JSO

Display hidden not working with flex in Tailwind

I'm trying to hide a div in mobile, and display flex with md screen & above, here's my code: <div class="hidden md:flex"> <x-navbar.nav

How to install GD Library? Laravel at AWS Lambda with Bref

When using Intervention\Image in laravel on lambda The following error has occurred. By the way, it works in the local environment. I have to add gd. [2021-08-

How to pass a value from Laravel blade to a vue component?

I am working on laravel / vue project and i want to pass a value from laravel blade to the vue component but i get this error : Missing required prop: "id" at

Use identifier in PHP and how does it affect the logic

Use identifier is used when we want to send some outer environment variables inside closures so I have a scenario. $invoiceList = UserInvoice::where('user_id',

Is a way to echo translation string in laravel?

I want to translate text inside the button. <?php if ($product->category_slug === 'bramy-przesuwne' || $produc