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
13 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
-2 votes
0 answers
24 views

How to connect laravel snowflake database [closed]

How to connect laravel snowflake database
Munesh Kumar's user avatar
-1 votes
0 answers
10 views

Laravel bosnadev/repository package issue when upgraded the laravel version from 5.8 to 10

I upgraded my laravel application that was previously using 5.8 to laravel 10. There is a following issue: Class "Bosnadev\Repositories\Eloquent\Repository" not found I try to install the ...
Bilal Ahmed's user avatar
0 votes
0 answers
24 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
34 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
1 answer
39 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
29 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
15 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
11 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
28 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
17 views

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

I have 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
37 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
25 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
48 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
26 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.2k
0 votes
0 answers
28 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,073
0 votes
1 answer
47 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
18 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
90 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
90 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
50 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
78 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
12 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
33 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
73 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
0 votes
0 answers
57 views

laravel gates permission foreach

excuse me, i'm a junior developer and im still learn about laravel gates concept. i have a tables structure like this. Users = id, email, password, role_id. role = id, name, description. permission ...
Rizdhan Hernanda's user avatar
0 votes
0 answers
20 views

How to get sorted one to many field with respect to max of a column in Laravel?

I am using Laravel 5.1 and want to get items sorted with respect to one column of the many field. I have members and subscriptions. Each member has multiple subscriptions with end date as one of the ...
Burak Er's user avatar
0 votes
4 answers
55 views

How to Count Data from Another Function

I have a trouble from my controller. When i want to count the array from another function in controller is get a error cannot to count I get this error Call to a member function get() on array This ...
Test Doang's user avatar
0 votes
0 answers
51 views

Enable tls for phpredis configuration in laravel 5.6 application

the error shows that something like [2023-06-27 13:51:56] dev.ERROR: read error on connection to {"exception":"[object] (RedisException(code: 0): read error on connection to /var/www/...
Sreehari S's user avatar
0 votes
0 answers
51 views

file_exists(): open_basedir restriction in effect

I am develope a laravel app. I go to the route folder myapp/routes/web.php on serve and register a new route as follows: Route::get('/linkstorage', function () { Artisan::call('storage:link'); }); ...
Linh Pham's user avatar
0 votes
0 answers
54 views

Firebase Push Notification with Laravel 5.6

I am asking for help in push notification (especially Firebase Cloud Messaging : FCM). I already have checked the official documentation about it and it was pretty clear but i just wanna know how to ...
Ratsirarson Johar's'ou's user avatar
0 votes
1 answer
77 views

Laravel Custom Rule Validation with Array of Form Fields

I want to access attribute values in the custom validation rule I created. HTML Designation Dropdown <select name="resource[{?}][designation]> <option value=1>First Value</option&...
Zack's user avatar
  • 171
0 votes
1 answer
43 views

how to store form with 1500 plus fields using jquey ajax in laravel

How can I store a form with more than 1500 fields in Laravel 5.8? Controller: public function store(Request $request) { dd($request->all()); } View file: @extends('main') @section('content') ...
Bhagvat Joshi's user avatar
0 votes
0 answers
15 views

Wrong php version - laravel 5

I have a problem with the PHP version after running php --version. It should be the 5.6.40 PHP version, but after running this command into my Laravel (php --version), it shows PHP 8.2.40, but when I ...
Armando Manalaotao's user avatar
0 votes
1 answer
73 views

How can I filter on Multiple Checkbox values retrieved?

am working on a filtering system in Laravel PHP framework and I am trying to filter on products brand selected from a checkbox input. When I try to retrieve Products lets say for example with the ...
MOHAMED KESSOUM's user avatar
1 vote
1 answer
28 views

Filter the data of a school to which the user belongs

I want to display the list of students from a school the user belongs to and not display data from other schools. for that I created two user tables: id , school_id school table: id, name, address,.......
zkaili's user avatar
  • 11
0 votes
0 answers
42 views

dependent drop in laravel with ajax doesn't work

Blade: <label class="form-label" for="basic-default-password12">اختر فصل دراسي</label> <div class="input-group"> <span class="input-group-...
Ahmed Nasser's user avatar
0 votes
0 answers
17 views

Why Laravel passport login suddenly not working?

I am getting error for when try to login. I am not update any package at all but suddenly getting this error. There was an error while creating the signature: error:0909006C:PEM routines:get_name:no ...
Chong Kw's user avatar
0 votes
1 answer
29 views

Dispatch on laravel 5.6 won't run function handle(), only run construct()

Hi i try to create queue job, using queue=redis in laravel 5.2 But i've checked using log, my job only run construct() not running handle() can you suggest what's wrong? my dispatch scheme like this : ...
justmealf's user avatar
0 votes
1 answer
67 views

How to replace the cache driver?

I have a laravel application and i want to improve the site's performance by using Redis as a cache driver. i want to make sure that the page will load faster the next time (if the user is moved to ...
rashenter's user avatar
0 votes
1 answer
390 views

Cannot use object of type GuzzleHttp\Psr7\Response as array in file

I am new in laravel, I am getting an error when I am trying to access elements of json response in this case being access_token details of the error: 'Cannot use object of type GuzzleHttp\Psr7\...
Nosi Chefane's user avatar
0 votes
1 answer
142 views

How can I customize my own route for login and register in Jetstream but keep the same post method?

I'm using jetstream in my project and I have a problem, by default in jetstream there are many routes like login and register... I have made a /auth route in web file,this route return a page that ...
moemen saadeh's user avatar
0 votes
0 answers
211 views

Unable to Resolve Vue Components in Laravel 9 with Vue.js, Inertia, and Custom Admin Directory

I'm using Laravel 9 with vue.js and Inertia. The thing is there is a small issue that I'm facing. In my "resources/js/Pages" directory I have all the vue files. Now what I want to do is ...
Muhammad Khan's user avatar
0 votes
0 answers
15 views

Laravel date changes to 1st January 1970 when passed from blade template to model in a function call

I have a larav`el project where I produce balance sheet by getting ledger opening balance and aggregating transactions that occurs between two dates say 01/01/2023 to 31-03-2023. The controller ...
Philip Afemikhe's user avatar
0 votes
0 answers
68 views

Get data from adyen

How do we get liability shift, fraud score from adyen api which is integrate into laravel 5.4 as SDK? try { $adyen = new AdyenClient(); $params = array( '...
Nitesh Soni's user avatar
1 vote
1 answer
14 views

how to fix not found 404 in laravel 5.2 validation?

i try to lean laravel and i want to learn validations so i create this blade (create.blade.php) @extends('layouts.app') @section('content') <form method="POST" action="/posts"&...
Amel Mehenni's user avatar
0 votes
1 answer
84 views

Background image in Maatwebsite excel laravel

I am using laravel 9 and using Maatwebsite. I want to set background image in excel. Here I did class myExport implements FromView, WithEvents ,WithDrawings { public function view(): View { ...
kasfik's user avatar
  • 13
0 votes
1 answer
54 views

Maatwebsite excel set watermark in laravel

I am using laravel 9 and using Maatwebsite. I want to make watermark in excel. Here I did class myExport implements FromView, WithEvents ,WithDrawings { public function view(): View { ...
kasfik's user avatar
  • 13
0 votes
0 answers
74 views

Error in TokenMismatchException and have CSRF token

I have a project in Laravel, everything worked fine, from one day to the next it stopped working correctly, I get an error in the token even though I am sending the token in the form, I clean the ...
Jotan Mesia's user avatar
0 votes
0 answers
17 views

Laravel Homstead project can't be reach on Chrome

My Laravel project is working fine on firefox, but when i try it on Chrome i got "This site can’t be reached" and "Your connection with this site is not secure" I'm using Homestead ...
MilBan's user avatar
  • 1

1
2 3 4 5
875