All Questions
37,672
questions
0
votes
0
answers
22
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) ...
1
vote
0
answers
49
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 ...
0
votes
0
answers
33
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": {...
0
votes
0
answers
24
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
...
0
votes
2
answers
140
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(...
-1
votes
2
answers
163
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 ...
-3
votes
1
answer
57
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 ...
0
votes
1
answer
136
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 ...
0
votes
2
answers
911
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 ...
0
votes
1
answer
67
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 $...
0
votes
0
answers
22
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');
...
0
votes
0
answers
48
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 ...
0
votes
0
answers
31
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;
...
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 ...
0
votes
0
answers
98
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 ...