Category "laravel-8"

How to check authorization before loading Route Model Binding

I ask this question after doing various searches without finding any clarifying information that helps me solve the problem that I am presenting. I have created

I get this error: Attempt to read property "Username" on null, when trying to display the username [duplicate]

I am trying to display the Username on the web page, but I keep on getting the error Here is my blade template @extends('layouts.app') @secti

How to handle if <![CDATA[ ]]> is null/empty?

I want to convert xml data into JOSN format but there is an issue if I try to do that. simplexml_load_string() returns empty data once after it perhaps get <

The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST in laravel 8

I get the following error with the code below. The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST Controller public functio

Hide button before enter valid data, unhide it after enter valid data

{{ Form::label('name', __('Task name***'), ['class' => 'form-control-label']) }} {{ Form::text('name', null, ['class' => 'form-con

What causes the "route not defined" error in this Laravel 8 API?

I am working on a registration form with Laravel 8 and Angular 13. The back-end is an API (link to Github repo). In the UserController I have a signin() and a s

how to use @foreach inside AJAX & jQuery code for insert Multiple rows Data in Laravel 8

The code it works normal when i put option in static mode, for example: "<select name='id_post[]' id='' class='form-control'>"+ "<option value='1'&

SQLSTATE [42000]: Syntax error or access violation

Grouping without disabling strict mode of MySQL, the following query works if I disable strict mode, however, I would like not to do it, someone could give me a

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

Laravel - Method Illuminate\\Support\\Collection::makeHidden does not exist

I want to hide the columns password & OTP ,that is included in $uses result. Actually these 2 columns are part of the users table. I've tried like below. B

how to send error emails to the developer in laravel 8 App

I am using laravel "laravel/framework": "^8.75" version. When deployed the app turn APP_DEBUG=false but users get errors but they can not know what is wrong and

Target class controller does not exist - Laravel 8

Here is my controller: <?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class RegisterControlle

Laravel aws lambda file upload exception - Aws\S3\Exception\S3Exception: Error executing InvalidAccessKeyId

Aws\S3\Exception\S3Exception: Error executing "PutObject" on "https://sage-dev-serverlessdeploymentbucket-1t0g1w1stv04r.s3.amazonaws.com/images/background.jpg"

Modal not showing laravel 8

` I wanted to make modal that appear when the user wants to delete the album but its not showing and i dont know the reason the modal is created but not showing

Can I run laravel (admin dashboard) and vue (front-end) in a single domain

I have done a project which admin dashboard is done by using laravel+vus (vue (v2.6) inside laravel(v8)) and front end is done by independent vue(v3) js(getting

Array to string conversion error in header

Currently working with laravel 8.And calling the api using httpclient but few of them i need to pass the bearer token in headers for which struggling from coupl

unisharp laravel-filemanager Thumbnail url

Hi I'm using unisharp laravel-filemanager for user to upload their products photos when the image uploaded this address will save in database /photos/44/606074

Variable undefined error in laravel blade component view

Component InputError.php <?php namespace App\View\Components; use Illuminate\View\Component; class InputError extends Component { /** * Create a

InvalidArgumentException View [layouts.app] not found. Larave-8 LliveWire-2

When I change app.blade.php to base.blade.php I am having the following error. InvalidArgumentException View [layouts.app] not found. (View: D:\Code\my-app\ven

How can i set expire time in otp in laravel8?

When i am trying to expiry otp, is not working but i do not know what i am doing wrong. I set expiry time with Carbon but still not working. What should i do?.