All Questions
5,140 questions
1
vote
2
answers
105
views
Laravel request validation: input called "data"
Using Laravel 8, I have a FormRequest Validation as followed
<?php
namespace App\Http\Requests\EXTERNAL;
use InfyOm\Generator\Request\APIRequest;
class ActionUpdateRequest extends APIRequest
{
...
1
vote
1
answer
72
views
In Laravel, how can I keep the selected options of a multiselect on an invalid form?
I am working on a blogging application in Laravel 8.
There is the option to add tags to articles. There is a many-to-many relationship between articles and tags. I have an article_tag pivot table.
In ...
0
votes
1
answer
35
views
Api call in another third party api call using guzzlehttp in laravel 8
I try to call api in laravel 8 in it another bank api call when token is expire so some getting error below menstion
GuzzleHttp\Exception\ClientException: Client error: POST https://bankul/acctenq/v2/...
0
votes
2
answers
65
views
Failure to update article tags in Laravel 8 blog application?
I am working on a blogging application in Laravel 8.
There is the option to add tags to articles. There is a many-to-many relationship between articles and tags. I have an article_tag pivot table.
In ...
0
votes
2
answers
96
views
How can I use a many-to-many relationship to display articles by tag in Laravel?
I am working on a blogging application in Laravel 8.
I am trying to display articles by tag at the following route:
Route::get('/tag/{tag_id}', [ArticlesController::class, 'tag'])->name('tag');
In ...
0
votes
1
answer
72
views
Laravel HTTP Tests Routing Issue
I'm currently playing around with Laravel HTTP Feature Tests and I noticed when executing this code below:
Test.php
$this->actingUser($user)
->withHeaders([..])
->post(uri: '/api/foo/bar', ...
0
votes
2
answers
65
views
How to get current value in Laravel form request for array field
The following is from the request
[
'coupons' => 'nullable|array|min:1',
'coupons.*.code' => [
'required', 'string', new ...
0
votes
1
answer
52
views
Laravel routes not listing
i am fairly new to laravel and backend. I wanted to create a few apis for my frontend and i tried to create a laravel project using the instructions on the official docs. The problem is i am unable ...
0
votes
1
answer
93
views
Why is my laravel s3 bucket publicly accessible url not working?
So I am trying to upload file to my S3 bucket whose bucket policy is :
{
"Version": "2012-10-17",
"Id": "Policy*************",
"Statement"...
1
vote
2
answers
59
views
Laravel errno: 150 "Foreign key constraint is incorrectly formed
I am creating foreign keys of party_id and employee_id. it giving me error
Schema::table('ledger_accounts', function (Blueprint $table) {
$table->enum("type", ["simple"...
0
votes
2
answers
2k
views
Schedule in Laravel 11
We are facing an issue with Laravel scheduled tasks using the call method in Kernel.php not executing as expected in development mode on Windows. When running php artisan schedule:work, it only ...
1
vote
4
answers
370
views
In Laravel, how can I display a custom error message if any of the password complexity criteria is not met?
I am working on a blogging application in Laravel 8.
I have used the standard procedure Laravel 8 provides to ensure the password meets the complexity criteria:
protected function validator(array $...
2
votes
2
answers
50
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 ...
1
vote
1
answer
53
views
throttle error when migration laravel 8 to 11
I made a migration from laravel 8 to 11 following the guides proposed in the doc, I find myself with a throtter problem when I try to reach my api sanctum and fortify :
error is :
[2024-12-11 10:47:30]...
0
votes
0
answers
51
views
Curl is returning response but Laravel Http client is not returnig respose
-> The below code is based on php Curl.
$curl = curl_init();
// API Endpoint
$url = 'https://api.bybit.com/fht/compliance/tax/v3/private/registertime';
curl_setopt_array($curl, array(
CURLOPT_URL =...