213,146 questions
-4
votes
1
answer
37
views
What is the difference in feature test and unit test in laravel?
I'm new to testing in Laravel and I used to think that unit tests and feature tests were the same thing.
But now I realize there's a big difference between them.
Can someone please explain—preferably ...
0
votes
1
answer
17
views
AWS ECS Docker automatic environment variables injections
I will share my experience about a crazy problem on one application that I manage, that is a Laravel application publish on AWS ECS, that need to use a shared redis to store sessions and developers ...
0
votes
1
answer
19
views
403 response to basset files
Using laravel backpack with basset, all files are returning 200 status except basset files.
I already tested and checked permissions but still 403 persists.
$ chown -R www-data:www-data storage
$ ...
-1
votes
0
answers
13
views
Flask integration with Laravel for Object Detection
I'm trying to integrate Flask with Laravel for a Automatic Number Place Recognition System, the goal is to have Laravel as my main frontend and all object detections would be run on Flask, to create ...
0
votes
0
answers
42
views
How to Change the Composer php path in a Laravel Project
My Composer is not Working anymore because I reinstalled PHP.
How to resolve Composer dependency issues after reinstalling PHP on my Laravel project.
Cannot run program "/opt/homebrew/Cellar/php/...
-3
votes
0
answers
39
views
I am getting an error: Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route" not found in C:\xampp\htdocs\index.php
I am trying to setup a test environment on my local machine and installed composer, laravel and Xampp.
I have written the following basic code in the index.php file to test:
<?php
echo "Hello ...
2
votes
0
answers
40
views
Schema::hasColumn() returns false for existing SQL table columns using Laravel and external database connection
I'm working on a Laravel 12 project that connects to a Microsoft Dynamics CRM SQL Server database through a custom connection. I've run into a puzzling issue: Laravel's Schema::hasColumn() returns ...
0
votes
1
answer
25
views
Laravel spies not calling implementation?
I have two classes, Foo and Bar:
class Foo {
private Bar $bar;
public function __construct(Bar $bar)
{
$this->bar = $bar;
}
public function foo()
{
return $...
-3
votes
1
answer
29
views
I keep getting the same error, I tried everything, and nothing seems to work [closed]
I was assigned a work with some colleagues and I don't get why nothing seems to work.
$ php artisan migrate
Illuminate\Database\QueryException
could not find driver (Connection: mysql, SQL: ...
2
votes
0
answers
42
views
Markdown Syntax Highlighting Not Working in Production with Laravel
I'm using a package for rendering Markdown content with syntax highlighting in my Laravel application, and it works fine locally, but on my production server, the code syntax highlighting is not being ...
-1
votes
0
answers
50
views
Best way to integrate Laravel Nova in a microservices architecture with Docker: same container or separate service? [closed]
We're transitioning from traditional monolithic PHP and pure JS web development to a modern infrastructure that includes:
CI/CD (Jenkins)
Docker or Podman-based containerization
Laravel and React
...
0
votes
1
answer
28
views
Why is Livewire throwing 404 depending on call to retrieve article from DB?
I'm using Laravel 12 and Livewire 3 and have a very particular problem.
On individual article pages, when interacting with a Livewire component, I get a 404 error for /livewire/update if in the model'...
0
votes
1
answer
29
views
The cache, users, jobs and personal_access_tokens tables are not created in Laravel's public folder
When creating a postgres database, the following tables are not automatically created:
enter image description here
As I understood they should be created in the 'public' folder, but it is empty.
I ...
-1
votes
1
answer
36
views
Database question about simple Categories & Subcategories. Laravel 11
I want to have Categories with related Subcategories, It must looks like this:
Category: Broth
Subcategory: Chicken broth, Meat broth, Vegetable broth
And I'll create create_categories_table & ...
-1
votes
0
answers
24
views
api response laravel 12 [closed]
I have a fire problem in the laravel 12 project that uses vue as the starterkit, now I want it when the user has not logged in later to display the error message response, but in my project, when the ...