1,869 questions
0 votes
1 answer
67 views
Laravel Polymorphic Relations And Has Many Through
Tried to find a solution, but couldn't find a similar problem. I have two classes: Product and TempProduct. Both inherit from BaseProduct. BaseProduct doesn't have a table name defined, but Product ...
0 votes
0 answers
51 views
How to Modify Many-to-Many Relationship in Laravel MongoDB (jenssegers/mongodb)?
I'm using Laravel with MongoDB via the jenssegers/mongodb package. Currently, I have a many-to-many relationship between Organization and User models, with both collections maintaining arrays of ...
0 votes
0 answers
38 views
Can't listen to event for Laravel Websocket in Live Chat Application using Laravel 9
I am trying to implement live chat module in my SaaS module. I am using BeyondCode's Laravel Websockets package for this. This package uses php-pusher and installs it automatically when we install ...
2 votes
2 answers
211 views
Laravel Cloud Error: Call to undefined function Illuminate\Foundation\laravel_cloud()
I am running phpUnit tests using Laravel Framework Version 9.52.20. The tests work just fine in my local environment and in my CI/CD pipeline. But when I try to run the same tests in my dev ...
1 vote
0 answers
88 views
Laravel app does not generates .jpg or .png photo as background image
I am developing a Laravel application on Windows OS. Among other things, the application needs to generate reports, including a background image within them. I am using the barryvdh/laravel-dompdf PDF ...
0 votes
1 answer
131 views
Laravel: undefined variable $component un non-cached blade views
On my local machine, launching the application with php artisan serve, everything works. On the production server, using apache, it gives that error when the blade view is not cached. If I run php ...
0 votes
0 answers
33 views
Laravel 9, a specific cookie gets immediately deleted right after i create it
We are trying to build a filter system for a list of wines, so we built a step-by-step wizard to set the right filtering. In order to do so, inside the controller that effectively filters wines called ...
0 votes
0 answers
38 views
Laravel Lumen Migration 9-10 Router::middleware() Error
I want to migrate Laravel Lumen from 9 to 10. The composer updated perfectly. But the application is not running and the error comes "Call to undefined method Laravel\Lumen\Routing\Router::...
1 vote
1 answer
59 views
Laravel losing session when file extension in URL
I have a weird bug in my Laravel application where, when I use a file extension in the URL, the application is logging out automatically. After investigating I noticed it only happens when using valid ...
0 votes
1 answer
246 views
Laravel Websocket cURL error 28 on Event Trigger
I am new to beyondcode/laravel-websockets and followed instructions .env BROADCAST_DRIVER=pusher PUSHER_APP_ID=livequeueing PUSHER_APP_KEY=livequeueing_key PUSHER_APP_SECRET=livequeueing_secret ...
0 votes
1 answer
92 views
Laravel 9 Bug? Changing config/mail.markdown.theme does not work. Still loads default from vendor published folder
So editing the config/mail.php during launch time to let each user have their own mail template: Config::set('mail.markdown',[ [ 'theme' => 'domain.com', 'paths' =&...
0 votes
0 answers
174 views
Astrotomic/laravel-translatable add new language dynamically
can somebody tell me please how to achieve this in astrotomic/laravel-translatable package? I need to add new language to the app dynamically. There is config/translatable.php which contains 'locales' ...
0 votes
0 answers
44 views
Working with Laravel email and laravel query
Laravel SMTP issue: data displays correctly in controller but not in blade email view. I'm working on sending emails using SMTP in Laravel. I'm able to retrieve and verify the correct data in my ...
1 vote
0 answers
53 views
file clarification after a laravel upgrade
I have just had my site upgraded to Laravel 10 as part of an uplift. A file has appeared in the site directory called users.######.encrypted and is tagged as a Laravel 9 inclusion. I've removed the ...
0 votes
1 answer
50 views
Laravel - How to use Mockery to mock service bindings?
I have the following class: class Testclass { public WebshopappApiClient $client; public function __construct(Webshop $webshop) { $this->client = app()->make(...