Questions tagged [laravel-5]

Laravel 5 is a version of Laravel released between 2015 and 2020. Laravel is a an open-source PHP web development MVC framework created by Taylor Otwell which helps you create applications using simple, expressive syntax. Use the laravel tag for general Laravel related questions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

FatalErrorException in Handler.php line 26

Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, instance of Error given, called in \vendor\laravel\framework\src\Illuminate\Foundation\...
shubhangee's user avatar
0 votes
1 answer
4 views

Laravel 'BelongsToMany' relations always return value in its 'updated' key (even if the record hasn't changed)

I have many-to-many relation between project_media & tag pivot table project_media_tag. It has additional field qty. I'm doing a syncWithoutDetaching to attach any new / update already existing ...
Daniyal Nasir's user avatar
0 votes
0 answers
25 views

I have encrypted data in the database how to decrypt it before displaying in the frontend in crocodic-studio / crudbooster?

I have the following form - $this->form[] = ['label'=>'Client Name','name'=>'client_id','type'=>'select','validation'=>'required|integer|min:0','width'=>'col-sm-10','datatable'=>'...
Sankha Subhra's user avatar
-2 votes
0 answers
16 views

Laravel validation regex depends upon dependent answer [closed]

We have 2 questions temp_id_type with select options A, B, and C temp_id text field Validation rule required on temp_id requied_if:temp_id_type,A,B,C (I also need a regex rule on temp_id) if ...
Sachin Gupta's user avatar
0 votes
0 answers
8 views

"Resolving Country Code Bug: How to Fix the country code?"

<div class="form-group"> <label class="form-label required">{{ __('frontend.phone_number') }}</label> <...
Sanad Bhowmik's user avatar
0 votes
0 answers
22 views

Selenium Appium App Crashed And Returns A Failed Cases

So I have a Selenium Appium Python script for my testing purpose. I created the UI website using Laravel. My script consists of around 3 test cases: def test_login_success def test_less_phone_number ...
aufa's user avatar
  • 273
-1 votes
1 answer
73 views

How to print Api response data as collection

I was trying to print API response data as collection on blade for that i have used following line $customers = collect(json_decode($response, true)); But whenever i tried to print with following ...
Hola's user avatar
  • 2,183
0 votes
1 answer
32 views

Laravel notification via method changes not coming in toMail method

I have one class where I calculate variables in via method and the same variable I want to use in toMail method but it's always null in the toMail Method. any idea why? class ...
Jigar's user avatar
  • 3,083
0 votes
0 answers
10 views

Laravel Nova Panel Form Fields Update issue

I am working on nova panel in localhost.. When i perform update my form fields that time i will see this warning... "Another user has updated this resource since this page was loaded. Please ...
Vatsal Patel's user avatar
0 votes
0 answers
20 views

Quantized feature maps with Kmeans, then visualize them on the original image

I extracted feature maps using ResNet, then quantized (segmented) using Kmeans. Now I want to visualize the quantized feature maps (labels) on the input image. Does anyone have an idea how I can do ...
rdha's user avatar
  • 1
0 votes
0 answers
27 views

Laravel 5.8: Laravel Passport API Authentication Issue Outside PHP artisan serve

I am encountering an authentication problem with my Laravel API when attempting to run it without using PHP artisan serve. I have implemented Passport for authentication. The authentication process ...
Nasma's user avatar
  • 1
0 votes
0 answers
11 views

Target [Laravel\Socialite\Contracts\Factory] is not instantiable. [Continue With Google]

(https://i.stack.imgur.com/QkRq7.png) [problem](https://i.stack.imgur.com/VTYnY.png) [.env](https://i.stack.imgur.com/LLLMc.png) [web.php](https://i.stack.imgur.com/vrQtX.png) [Controller](https://i....
Shahzaib Ali's user avatar
0 votes
1 answer
63 views

Laravel project code not refelcting changes to view files

I created a Laravel (5.1.3) project with breeze as the starter kit. I am planning to use the react as frontend to this project. I run the php artisan serve command. The boiler plate template is ...
AJITH RT's user avatar
-1 votes
0 answers
44 views

How to send multiple data from view to controller laravel

i want to send data from view to controller ..i.e. 1st card click send id =5 , 2nd card click send id = 6 etc...I can't find answer anywhere on google ...any help will be appreciated...thanks i tried ...
Tej Singh's user avatar
-1 votes
1 answer
41 views

Using variables to access object property in blade file of laravel project

Given the following PHP object and variable $options = { 'options' : { '0' : 'Off' , '1' : 'On' }} $data->{$row->field}} = 0 or 1 Syntax error method Why am I not able to access the '0' and '1' ...
Yeo Bryan's user avatar
  • 359
0 votes
0 answers
34 views

Get all children categories of a collection of categories without using foreach in Laravel

so I have this codes in my Category model. What it does is, you give it a single category collection and it will return all children category ids of that category in a one dimensional array of ids ...
0x9342812j1o's user avatar
0 votes
0 answers
25 views

header style with EASY DATATABLE VUE 3

I'm experiencing difficulties with the table header's appearance, as shown in the picture. It doesn't match the desired style. Can you assist me in resolving this issue? enter image description here i ...
Adam Kintra's user avatar
0 votes
0 answers
23 views

Get query results even with null foreign key

I have a query in which I have multiple relationships. The foreign key acquirente_corretor_id can be null or not. If it is different from null, it has a relationship with the dobby table. I have the ...
Carlos Alberto Junior's user avatar
0 votes
1 answer
19 views

Unable to display data from database on a card using laravel

Even though there are many solutions provided for this error, I am encoutering, I have not find the solution yet, below is the error I am getting when trying to display data from the database on the ...
Mr Chefane's user avatar
-1 votes
1 answer
40 views

Laravel getting data from the database in .js file [closed]

I need to change the series values ​​in the .js file by pulling data from the database, how can I do this? @php not working in js file _wChartTwo.28581ae9.js file: window.addEventListener("load&...
treasuref's user avatar
0 votes
0 answers
17 views

I have error while i copy laravel project from shared hosting to local

I want to copy laravel from shared hosting into my computer and run it from xampp server this is my road: i'm compress public_html folder from host download it and extract in xampp/htacess/...
Amir Eghbal's user avatar
0 votes
0 answers
17 views

socketlabs not working without plainTextBody

This is working fine but when I am sending without plainTextBody then it's not working. I need to use without plainTextBody, I need to set just subject and htmlBody. When I am working without ...
Kuldeep Raj's user avatar
1 vote
1 answer
32 views

Laravel (5.8) observer deleted is not working

I am using Laravel (5.8) and I need to delete a record from table A and then also table B. So I tried Observers, but it never fired the observer's deleted method. I already used other methods like ...
Jiwon's user avatar
  • 385
1 vote
0 answers
151 views

Laravel 10 Auth Login not working with custom Users table and column names

Info I have custom name an columns for my Users table and I'm using MSSQL for database. My table is called 'TUsers' and for columns I'm using PascalCase so I have: 'Email' instead of 'email' '...
John Doe's user avatar
  • 581
0 votes
0 answers
64 views

Pusher error: auth_key should be a valid app key

guys I did try work with edit and when I click on submit I have this error, but the changes was done and I am guessing why I have this issue Pusher error: auth_key should be a valid app key . This is ...
Anton Shupeniuk's user avatar
1 vote
0 answers
35 views

Why laravel users get looged out everytime I deploy an app to heroku

We are using Laravel 5 and spatie-permissions package. Every time we commit something to the master branch, everything gets rebuilt. Could that be the cause of invalidating all user sessions? PHP ...
domaci_a_nas's user avatar
0 votes
2 answers
51 views

After change the password login is not working using Laravel

I created the client register and the password change function. When I register the client with the password that password and username are working without any issues. But when I change the password ...
Jerad's user avatar
  • 213
0 votes
0 answers
47 views

Supervisor setup on laravel error can't find command 'php'

I am setup a Supervisor Configuration on my bitnami LAMP server but when I am ruining sudo supervisorctl error coming 'laravel_queue:laravel_queue_00 FATAL can't find command 'php'' My ...
Rajiv Sarkar's user avatar
0 votes
0 answers
32 views

Why do Refresh Token expires after every 7 days ? Does it affects the file upload on production

I implemented a Laravel web-app with Google Drive's API used for storage. I used this tutorial https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011. When i am trying to upload file on ...
Reshma Gawade's user avatar
-1 votes
1 answer
70 views

Getting ModSecurity: Access denied with code 44 on Laravel Form Submit

I am trying to submit a form in Laravel but getting this error: ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_STRICT_ERROR" required. [file &...
Ankur Badani's user avatar
0 votes
0 answers
46 views

In this code i can't run operation to insert database in laravel , may anyone askme where is wrong in my code

the controller public function storeToDatabase(Request $request) { $params = $request->except('_token'); $user_id = auth()->user()->id; $product_id = $params['...
GempitaRizki's user avatar
0 votes
0 answers
112 views

Metamask Dapp Browser Not Redirecting from HTTP to HTTPS on Certain Mobile Phones

I'm developing a web-based decentralized application (Dapp) that interacts with Ethereum using Metamask. I've noticed an issue with the Metamask Dapp browser on some mobile phones. When users type a ...
Roshan Gamage's user avatar
0 votes
0 answers
21 views

laravel-permission Is there a binding relationship between permissions and routes when the user middleware determines permissions?

For example, in the following figure: permission:member_info|member_add is added to the member routing group. If a user has one of these two permissions, the entire member routing can be accessed. Do ...
wenlong's user avatar
0 votes
0 answers
32 views

Connecting to an SFTP using Storage in Laravel

I Stumbled upon (not sure if its unique) a very tricky situation , when I try to connect to an SFTP with invalid credentials or is not enabled. The first time I try to connect to SFTP which is not ...
vrnair24's user avatar
0 votes
1 answer
35 views

Xlsx file not able to read data in laravel 5.2

I am using laravel 5.2 and "maatwebsite/excel": "~2.1.0", I am not able to read xlsx file data i am getting response empty data My code is here Excel::load($filePathNew, function($...
Loganathan Shanmugam's user avatar
0 votes
1 answer
23 views

How to fetch data from database using multiple dropdown in form in Laravel 5.4?

I have a Blade view which is basically a form consists of 3 dropdown value such as Division, District and Upazila: My index blade looks like below image: After the submit button clicked,it shows me ...
walid alam's user avatar
0 votes
0 answers
48 views

Laravel sanctum Api working fine when already exists user hit Api but not working with new user

I'm New in Laravel I have recently created sanctum authentication it is working fine Its creating a valid token when excisting user post the api but when new user try to post the api token id is ...
Suraj Kumar's user avatar
0 votes
1 answer
28 views

Undefined variable $artikels in foreach laravel

I have a problem with my laravel project where i can't show my data in the table. It keeps giving me undefined veriable $artikels in my writer.blade.php So this is my controller namespace App\Http\...
The Hallpora's user avatar
-2 votes
1 answer
65 views

The GET method is not supported for route api/login. Supported methods: POST. Laravel + react deplo

I got this problem when I deployed a Laravel app: The GET method is not supported for route api/login. Supported methods: POST. But on the route I use the method POST Route::post('/login',[...
K.Oussama's user avatar
0 votes
1 answer
48 views

How to convert a mailable object to plain text version?

I have an old Laravel 5.7 application. I have a mailable Illuminate\Mail\Mailable object. I want to use a 3rd party to send my emails which is not within Laravel's default driver. For the API, I need ...
Adam's user avatar
  • 26.7k
0 votes
0 answers
50 views

after changing theme for one Mailable file in laravel it messup other email which dont have $theme variable set

below is my code to change the theme for particular emails where TablerMailable is extended. class TablerMailable extends Mailable { use Queueable, SerializesModels; /** * Instruct to ...
Jigar's user avatar
  • 3,083
0 votes
1 answer
70 views

Unable to communicate with Sanctum - I am getting a 503 error

I have successfully set up Sanctum on Laravel 8. However, when I try to use Postman with the bearer token obtained from the personal_access_tokens table, I encounter the following error message. Could ...
Benny's user avatar
  • 460
0 votes
0 answers
19 views

Laravel submit form return 404

@csrf is in the form A route exists confirmed through route:list Control is not transferred to the controller I have used exit as a first line of code in the controller method. Get routes are working ...
Anis Mumtaz's user avatar
0 votes
1 answer
293 views

laravel 5 error: SQLSTATE[42000]: Syntax error or access violation: 1305 SAVEPOINT trans2 does not exist

I have a question about Laravel 5.7. I have a multi-tenant project, and the issue is that when generating migrations, the admin is created without any problems. However, when I try to create a client, ...
Arturo Cabrera's user avatar
1 vote
1 answer
146 views

Error "Whoops, looks like something went wrong." in Laravel page

First of all thank you very much for reading me and helping me in this as I am a newbie in laravel. I have done a deployment of a website given to me by a company and everything works except the ...
javier Rizos marcos segura's user avatar
0 votes
0 answers
52 views

Sort an eloquent query based on the field of a nested model

I have this eloquent query that brings me 10 reports in a paginated manner with their respective transactions and contracts $reports = Report::with([ "transaccions&...
Marcel Salazar's user avatar
0 votes
1 answer
104 views

How to delete record using where 2 conditions (AND) in Laravel?

When I delete a record, in a controller, laravel deletes the condition one by one. It is not deleting two conditions at once. Can we delete records for 2 conditions that have been determined, not to ...
Oktavian Yudistira Putra's user avatar
0 votes
0 answers
23 views

Laravel specify channel in logger()->

I have this multiple channels in logging.php, want to specify the logger()->'s channel so that I can specify the log. I know Log::channel('channel name')-> but I want to use logger(). I'm using ...
Aquiko's user avatar
  • 142
0 votes
0 answers
42 views

AWS SQS crashed in Laravel/Lumen

I have setup lumen microservice v9.0 and installed the following dependecies "php": "^8.0", "aws/aws-sdk-php": "^3.263", "dusterio/laravel-aws-worker":...
Rizwan Saleem's user avatar
0 votes
1 answer
81 views

Error authenticating user and displaying validation messages in Laravel

I'm facing difficulties with user authentication and displaying validation messages in Laravel. When attempting to log in, the user is not authenticated correctly, and the validation error messages ...
Fernando Vieira's user avatar

1
2 3 4 5
875