Stuck one to one relationship laravel

Hi guys I am new in Laravel I want your help. Here is my database: user: id, name, surname, email, role user_informations: id, user_id, status I want the name...

date filter

select * from assignment where (assignment.agency_id = '102' and assignment.status = '1' and assign...

Horizion - Queue worker on forge vs. app config code (queue.php / horizion.php)

I would like to get some clarification on the queue worker settings within forge vs. within my code config. Within horizion.php 'environments' =&g...
Forge
1
18

Unable to install github repo

Hi everyone, my situation is that i have a forge account currently with 2 severs (staging and production). The production server isn't in use yet as we haven't got that fa...
Forge
1
30

Telescope not showing jobs that are queued

I installed Telescope on my dev environment AND production. It's just and running in both. However, I cannot see the jobs (it just is empty) on the production server. Both...

Laravel JSON Encryption

Good Evening all, Just wondering - because I cannot find explicit mention of yes or no - just a maybe in a few places... Does Laravel encrypt JSON responses w...

issue exporting config variable into vue component

Hi everyone, I created a config folder in my laravel-vue app, inside config I created globals file where I store following info: export const globals = {...

How does the Laravel code example send email to many recipients

How does the Laravel code example send email to many recipients. Recipient e-mail address data from the database...

Get the latest record ID - smartest solution

I've an ongoing invoice number and i'm currently thinking what could be the smartest way to create the new database entry with the ongoing number. Do you think i sho...

Save a special shape of html code to a database

The following html is stored in the database. This code can be edited by the administrator (html-aware) in the Web Administration (Laravel Nova). <a href=...

Getting Sum of Field through Polymorphic Relationship

I have two models, Payments_Distribution and Donation. In my Donation model: public function payments(){...

Envoyer Deployment removes my uploaded media

So I have an application that uploads media into public/uploads/{member_id}/file.ext As expected when a new deployment is done, the uploads no longer work as the pub...

Laravel Telescope records nothing on Production

I successfully configured and run locally with no issues. But as I install Laravel Telescope on production env it's record noting but Exceptions. Any idea why or it'...

Listening for Events Triggered by an External Application

Is there any way I can have a Laravel application listen and respond to an event triggered by another Laravel application? The system I am currently building consists of th...

Laravel Gate, policy and supper admin

Hi Guys, I am implementing Gate in my application, where I have following setup. Users Roles Route & policy middleware Ro...

Get cumulative users by week

Hi, I'm having trouble getting my head around writing something in Laravel to produce cumulative user numbers. like... Week 1 : 10 users Week 2 : 8 us...

str_limit truncates at the wrong point

Hello! First of all, I'm still learning Laravel so my apologies if my question may seem obvious. I'm making a content manager for a project we're working on school,...

javascript push removing previous item from array

Hi, I have a collection of posts wich I want to group by month of creation (created_at), to do this I'm looping through each post, parsing the date using moments plugin and...

Issue trying to show grouped array length

Hi, I have a component where I display all posts grouped by creation date, by months. For each of the twelve months I want to show next to it the total ammount of posts pu...

Serialize computed property Carbon instance

Hi, my model offers a computed property called "departureTime"; if a departure time is available, it will be returned as a Carbon instance. By serializing...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels