Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
20 views

Coupons for the lectures I offer in Laravel [closed]

I want a way to buy a product, for example, through coupons that I create in the admin panel. The producer must place the coupon so that it is opened only to the user who purchased it. The product ...
Ahmed Nasser's user avatar
0 votes
1 answer
43 views

The bulk download from AWS s3 is failing

This code was working fine until a few days ago. However, we noticed that it is failing exactly after downloading 40 files. I don't remember changing any configuration parameters in the recent past. ...
Krishna Chebrolu's user avatar
0 votes
0 answers
10 views

Syntax error or access violation: 1064 SQL_CALC_FOUND_ROWS

I have a Laravel 5.4 application. I have a code that generates and runs a query as below: /** * Returns stats data * * @param $start_date * @param $end_date * @param $...
Dev Dev's user avatar
  • 376
1 vote
0 answers
57 views

Laravel is sending GET instead of POST request while I am actually using post method

PHP version: 7.4.33 Laravel version: 5.8 when I hit the post route, it shows in the error page that I sent it as Get, and this route supports Post. this is the error msg: Symfony \ Component \ ...
Mariam Zayed's user avatar
0 votes
0 answers
36 views

Cant send data to destination page using compact

I've already passed data to the destination page using compact by a method. now I want to pass data to the destination page using compact again. Is there any problem for that? Firstly I tried to use ...
Mr. Anonymous's user avatar
0 votes
0 answers
26 views

Laravel 5 Auth and OAuth

I’m returning to an old laravel 5.7 API code base that was once working swimmingly. I want to start updating it to laravel 11 (my first time doing upgrades in laravel, so was planning on using Shift) ...
David's user avatar
  • 175
1 vote
0 answers
133 views

How to Send Events to Google Tag Manager via PHP and Guzzle

I'm working on an API in Laravel and need to send events to Google Tag Manager (GTM) using PHP. I've created a helper class to send the event via a Guzzle HTTP call. While I always receive a 200 ...
Rizwan Saleem's user avatar
2 votes
1 answer
43 views

Ajax call is not taking full path without including Project Name

My project is running on an IP where there are other projects too. If I add the full URL in my ajax call then it works fine. Like:- $.ajax({ headers: { 'X-...
Kashish Agarwal's user avatar
0 votes
0 answers
59 views

Deployment Error: Laravel Project Fails to Build on Vercel

hello everyone I deployed laravel project on vercel but as you see the style does not work here is the vercel.json file { "version": 2, "framework": null, "functions": {...
mon app's user avatar
0 votes
0 answers
25 views

Apache virtual host pointing to intermediary document root

I have this fodler structure: Path to my laravel project: /home/name/workspace/myProject Path to my intermediary indexes: /home/name/workspace/indexes/indexOne /home/name/workspace/indexes/indexTwo ...
Stefan's user avatar
  • 9
0 votes
2 answers
275 views

Calling a schedule on a function in Laravel console.php

I want to call a function in console.php as a schedule. Here is my console.php code: <?php use App\Http\Controllers\AuctionController; use Illuminate\Support\Facades\Schedule; Schedule::call(...
404ptk's user avatar
  • 13
-1 votes
2 answers
317 views

Is Laravel-admin 1.8.19 not compatible with laravel 11.8.0? [Your requirements could not be resolved to an installable set of packages.]

I am using Laravel 11.8.0 for my web application project and wanted to make an admin page. Therefore, I tried to install laravel-admin. However, it gave me an error saying, "Your requirements ...
Tatsunori Ono's user avatar
-3 votes
1 answer
61 views

Couldn't get my desired output and got this kind of error 'htmlspecialchars() expects parameter 1 to be string, array given' [closed]

This is my data. {"ErrorCode":0,"ErrorDescription":"Success","Data":[{"PluginType":"SMS","Credits":"৳48.959915"}]} I ...
yasin konok's user avatar
0 votes
0 answers
50 views

How to handle "429 Too Many Requests" error when importing products from cjdropshipping.com in a Laravel PHP store with Drop-shipping?

HP store with Drop-shipping? Problem Description: I'm facing an issue while importing products from cjdropshipping.com in a Laravel PHP store with Drop-shipping. I receive an error message GuzzleHttp\...
Amer's user avatar
  • 1
0 votes
1 answer
219 views

Laravel : I want to rate limit API so only one session per IP address should access the application

Problem statement:- We are running a laravel application and receiving requests from worldwide. We want to rate limit API so only one session per IP address should access the application. Another ...
Pradeep Kumar's user avatar
0 votes
2 answers
2k views

Method App\Livewire\Post\Comment::emit does not exist

I use the Livewire framework in my Laravel, I created a comment feature, I want when I comment the screen will automatically scroll to the comment via the ID that I inserted using JavaScript but when ...
devcode's user avatar
  • 11
0 votes
0 answers
49 views

casdoor PHP SDK integration with Laravel

I am new with casdoor or whole SSO concept, I want to integrate casdoor PHP SDK with Laravel for creating API for create account, verify the token, password reset and account update.Can someone point ...
AndroidBeginner's user avatar
0 votes
0 answers
37 views

Laravel eloquent select not accepting if function

I simply need to calculate a new field date in select in eloquent... but it does not seems to work although if I copy the mysql query in phpmyadmin it works. PV_Task::select("*,IF(date_start<'...
Paul Godard's user avatar
  • 1,131
0 votes
1 answer
71 views

Laravel When Condition on a column

I have a ModelA with columns: name, last_name, email I want ModelA with the name Test to add an extra where on email what I tried is the following $model_a_res = A::when( function($query){ return $...
Zein's user avatar
  • 645
0 votes
0 answers
23 views

Laravel 5 Querying "Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to a member function addEagerConstraints() on null"

Trying to establish different relationships between serial number model and warranties public function serialNumber() { return $this->belongsTo(SerialNumber::class, 'serial_no'); ...
Alex's user avatar
  • 1
0 votes
0 answers
23 views

Cannot log-in to ReadyKit after changing a migration

After migrating a new column to a data table, midway through my project I became unable to access the users data table use the login functionality of my app that had been working perfectly before. ...
Trinky's user avatar
  • 41
0 votes
0 answers
60 views

How to fix the error [The file was not uploaded due to an unknown error.]

My form is dynamic with multiple inputs and multiple images also can be uploaded. without selecting the images and inserting any amount of records without any error it's inserting to the table but If ...
Jerad Arul's user avatar
0 votes
0 answers
72 views

update vue2 to vue3 on Laravel 5.5 (node 12)

i unable to find any solution to integrate Laravel 5.5 with vue3, is it possible to integrate? // resources/js/app.js // Import Vue.js import { createApp } from 'vue'; // Import your Vue components ...
k.sridhar reddy's user avatar
0 votes
0 answers
35 views

How to Create an Animated CSS Background Image Dynamically Fetched from a Database Using Laravel

**Here is my static CSS code found in the CSS file ** section .homebanner { background: url('../images/33770859_2209.i032.003.P.m005.c33.isometric\ mining\ set.jpg') no-repeat left top #0D0E0E; ...
Abrar Ali's user avatar
0 votes
2 answers
74 views

How Can I Display Single Image From Array Of Images

Here My Codes That Fetch All Images @foreach (explode('|', $product->images) as $image) <img style="width:100%" src="/storage/image/{{$image}}"> @endforeach Only I want To ...
Abrar Ali's user avatar
0 votes
0 answers
132 views

Deprecated ReflectionParameter::getClass() Errors After Switching Back to Laravel 5.5 from Laravel 6

After switching from my Laravel 6 branch back to my Laravel 5.5 branch, I'm encountering several deprecation errors related to the ReflectionParameter::getClass() method in my application. The errors ...
MP Simon's user avatar
1 vote
1 answer
342 views

How to allow a single script in Laravel app, blade page when CSP (Content Security Policy) is enabled?

I run an app developed in Laravel. I need add a script on a page.blade.php page. Every script I insert in this page is blocked with the developer console error: "The script loading a resource to ...
Marco's user avatar
  • 11
0 votes
1 answer
251 views

LARAVEL 5.7 JSONResource toArray ERROR: Declaration should be compatible

I have an problem using JSON Resource to Array converter in Laravel. My code like this: DataResource.php <?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\...
Merry Ricard's user avatar
0 votes
0 answers
48 views

php - session seems as like it was never removed, even after using session remove + forget+put null

in my code, after saving changes in the project im suppose to clearing the employeNo session after using a lot of method to make sure the session is cleared and checking that it is indeed clear im ...
Omer's user avatar
  • 1
0 votes
2 answers
500 views

Laravel 5.2 + MySQL 8.0 On RDS - Connection Errors Out With "SQLSTATE[HY000] [2002]"

I have an application that runs on PHP 5.6 and Laravel 5.2. It's hosted in AWS on an AWS Linux 1 EC2 machine. This web server connects to a RDS MySQL instance. The RDS instance has been running ...
Lloyd Banks's user avatar
  • 36.4k
0 votes
0 answers
106 views

laravel Auth::logoutOtherDevices() doesn't redirect to login page?

i am using Auth::logoutOtherDevice() in laravel and it logs out user from other sessions but they need to refresh to get to login page . why Doesn't it redirect automatically to login page? If not ...
Tej Singh's user avatar
0 votes
0 answers
51 views

i need to update url for larval website where i do try htaccess but not working

my current website is https://example.com/kelimebulucu?harfler=&baslayan=ar&iceren=rt&biten=ma&uzunluk=7 and i need to make it liek https://example.com/kelimebulucu/{baslayan dynamic ...
Sarafatul Islam's user avatar
0 votes
0 answers
59 views

404 Not Found Route Laravel 5 Sitemap Dynamic

im new in laravel and i'm trying to make dynamic sitemap using Laravel Version 5.5, but when im trying with i still got "404 Not Found", but when im trying on new laravel 10 it's works ...
Ivan Juliant's user avatar
-1 votes
1 answer
48 views

Laravel Livewire how to use whereMonth in blade

laravel livewire I'm using whereMonth inside foreach but I'm getting error error Method Illuminate\Database\Eloquent\Collection::whereMonth does not exist. My blade @foreach ($this->Data as $key=&...
p22222222's user avatar
0 votes
0 answers
106 views

Uploading images using FancyFileUpload and regular form submit without using Ajax

I like the interface of FancyFileUpload that's why I'm try to implement it on my already existing form submit. The existing form submit works just fine and can save data into database and upload files ...
0x9342812j1o's user avatar
0 votes
1 answer
49 views

How to prevent existing tokens from being revoked when updating Laravel 5 to 7?

I was using Laravel 5.8, which included many unnecessary libraries. Therefore, I decided to create a new project using Laravel 7.30.6 and copied all the necessary files. Everything seems to work ...
Aman's user avatar
  • 2,383
0 votes
0 answers
53 views

Laravel 5.8 mail blade with default css styling or inline styling doesn't work

I created mail html blade file designed with css file in Laravel 5.8. I tried many ways to work the degisned view with css, but nothing actually works. Sending email is fine, I just changed the whole ...
Jiwon's user avatar
  • 397
1 vote
1 answer
183 views

Laravel livewire How to merge multiple rows with single row and display result

I'm new for laravel I tried some eloquent collections but not get required result help me to solve. I have data like this TABLE NAME (attendance): id | name |student_id | ...
Ramu Ramu's user avatar
0 votes
2 answers
57 views

Laravel: Nested loop html option and increasing the indent (prefix)

I want to display indented subcategories in the html option tag. I created a recursive iteration in a separate file that I import in a foreach statement. With the first subcategories, I get a prefix ...
Ivan's user avatar
  • 5,238
0 votes
2 answers
119 views

How can I execute a function from my navigation menu without using a controller in laravel?

I'm working on a project and I need to be able to execute a function from my app's navigation menu. As far as I understand, all functions are executable from a view using wire:click, and this triggers ...
dtejada's user avatar
0 votes
1 answer
278 views

Laravel using MPDF in a Docker container can't find my image urls (due to docker)

Issue: Any URL put in creating a PDF, MPDF can't find it (throws an Exception). Exception: cURL error: \"Failed to connect to 127.0.0.1 port 8000: Connection refused\" I have both web and ...
Daniyal Nasir's user avatar
0 votes
1 answer
528 views

livewire 3 how to store foreach value using form

hello I'm new for livewire 3 I have table inside form, data table having radio button for yes or no after selecting yes or no I'm going to submit that form that time I want to store fetch detail like ...
user12380208's user avatar
0 votes
0 answers
28 views

how to get the arrays values using their key in laravel blade pdf

I have an array, and you want to iterate through its elements to create a table and then print the table in a PDF. the aim is to use localization for translating the array values, but i'm facing ...
Umair Mubeen's user avatar
0 votes
0 answers
43 views

Retrieve Comments parent on polymorph relationship with only specific columns

Based on Laravel example Comment has polymorph relationship with Post and Video Model. I can retrieve Comment with Post and Video using $comment->commentable, but it return all columns of Post or ...
Tom Kur's user avatar
  • 2,368
0 votes
0 answers
54 views

How to download excel file using storage disk('s3')

recently i am having problem in downloading file using storage disk('s3') in laravel . I can download file using export.php but i need to convert it to use s3, for which i can't find help on chrome ....
Tej Singh's user avatar
0 votes
0 answers
36 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
17 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
42 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
0 votes
0 answers
18 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
-1 votes
1 answer
127 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,233

1
2 3 4 5
875