Skip to main content

All Questions

Tagged with
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....
Ish's user avatar
  • 27
-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'; ...
Adam Allen's user avatar
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 ...
Mohammed Yacine Henaoui's user avatar
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 ...
odion_cloud's user avatar
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 ...
Krystian's user avatar
  • 3,423
0 votes
1 answer
70 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' => ...
Josue Sanchez Dominguez's user avatar
-1 votes
1 answer
80 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 ...
software dev's user avatar
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 ...
Ermuun's user avatar
  • 1
1 vote
1 answer
81 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($...
Sergey Permyakov's user avatar
0 votes
0 answers
62 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
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) ...
David's user avatar
  • 195
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 ...
Rizwan Saleem's user avatar
0 votes
0 answers
95 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, "...
mon app's user avatar
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 ...
Stefan's user avatar
  • 9

15 30 50 per page
1
2 3 4 5
2509