All Questions
21,923 questions
1
vote
0
answers
45
views
Allow Cross Origin in Laravel 4.2
I am working on a legacy project which uses Laravel 4.2 for the backend API and angular for the frontend. When I make the login request in local pc I am seeing CORS error in developer tool network tab....
-2
votes
2
answers
92
views
Eloquent query returning null when using a variable
I am having a issue where when i write out a eloquent query using a variable it is returning NULL but if i write out that variable value in text it returns data.
This is my code
$code = 'Test123';
...
2
votes
2
answers
49
views
Request for How to Handling if Command in Relationship Handling
Request for How to Handling if Command in Relationship Handling
Hello, good day Artisan,
Please, I need help with an if command not working for a relationship. I want to get the correct relationship ...
0
votes
1
answer
95
views
Why the first call to ::create() method will not set the id field on the model in Laravel?
I use Laravel 5.5 and October CMS 1.0 with MySQL 5.6 database and PHP 7.4.
I have several models with integer autoincrement id keys.
The model's default settings are left intact—I didn't change any of ...
0
votes
1
answer
79
views
Laravel Powergrid Table Add Loading on Pagination
I'm fairly new to Laravel, and I'm using PowerGrid to display an employee table. The skeleton loading works fine when the page initially loads, but I would like to add the loading animation when ...
0
votes
0
answers
63
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 ...
0
votes
0
answers
35
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
377
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
1
answer
665
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
654
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
67
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 ...
1
vote
1
answer
589
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 ...
1
vote
2
answers
7k
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
77
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
318
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 ...