All Questions
37,652 questions
-2
votes
0
answers
34
views
BindingResolutionException 'Target class [admin] does not exist.' in laravel 11 [closed]
i get this error when i tried to access the admin/dashbaord
here is my web.php
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\TransactionController;
use App\Http\Controllers\...
0
votes
1
answer
68
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
64
views
How to Login using the Middleware 'auth'?
I'm having problems with the authentication because in the following methods when it entries to the authenticate method, I receive True in my validation Log::info("", ['authenticated' => ...
-1
votes
1
answer
70
views
Error “foreach() argument must be of type array|object” in laravel controller
During comments show in the post
Error “foreach() argument must be of type array|object” in laravel controller
The code is as under
Blade File
@foreach($comment->product_images as $image)
<a ...
0
votes
1
answer
62
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 ...
1
vote
1
answer
74
views
Why are session tokens and form tokens different laravel? [closed]
Why are session tokens and form tokens different in Laravel?
Added to file:
vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
protected function tokensMatch($...
0
votes
0
answers
46
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
30
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
238
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
82
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,
"...
0
votes
0
answers
38
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
498
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
501
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
63
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
418
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 ...