Skip to content

Tag: laravel

Laravel 5.5 BelongsToMany with pivot conditions

I have three models, Clinic, Department and ClinicDepartment and has belongsToMany relation called departments from Clinic to Department using ClinicDepartment’s table as pivot table, but when i using this relation, scopes from ClinicDepartment not aplying in query. I decided to make Pivot model calling…

Laravel 5.7 – Queues Jobs are too slow

I use Laravel 5.7 and 3 queues jobs, the time between jobs is too long/slow. I foreach items of RSS feeds in the first job, and I dispatch this item in second job, etc… I don’t enter in details but there are some ridiculous little calculations that must not take time. The problem is that every dis…

Laravel 5.4 environment based config files

I am trying to change the Laravel configuration variables based on environment, but I do not know how. Code to get config is I am trying to have a separate results for the live environment and the development environment. Real life scenario I need to override some config files, so everybody who is using the d…

Laravel mail sending through smtp server error 503 5.5.2

I am trying to send notification mails from php through mail queue in laravel, as far as i can tell everything works fine, i have already tested configuration on my personal mail acc. but when i try sending mail through smtp server it fails with following error. mail config in env. : mail config in mail.php :…