Laravel - how to calculate the sum of objects in an array in blade view

I have a foreach loop in a blade view, where I am listing the objects that have a pivot property price: @foreach($tr...
05

Select max value and group by another field

Hi. Can you help me with selecting rows from database using mysql. What I need is to select max stake for each user and group them by the user_id...
01

Mysql query not working on laravel 5.4

Hi all, my sql query is working perfect in mysql query box, but not working on laravel. mysql query: select books.name, GROUP_CONCAT(author...
05

Mystery Error in view

I have an app where companies are stored. Each company has many offices. Each office belongs to a city. I have: Route: Route::get('/ci...
10

Edit/update with relationship

Hi folks, I have a serious problem in my thesis, Here are my problems in relationships: I have 2 tables, workers which is the list of...
01

Get session by session ID

Hello fellow developers! Is there a way I can fetch a session by its id? I'm making a stateful API and when the user logs in via a post requ...
04

Cant wrap my head around markdown mailables

Hi, Im struggling with markdown mailables, I want to have different footer for every e-mail. So Im trying: @component('mail::...
06

Filesystem fails on absolute path. FILE DOES NOT EXIST.

I am using thujohn/twitter which is great. However, I am trying to access image files that are stored on AWS. I am doing this;...
01

Cashier - multiple payment methods

Hi there, I have a default working checkout form with stripe creditcard payment possibility based on this tutorial:...
02

Queue Worker via Schedule Command not working

Okay, I'm trying to trigger the queue via the cron scheduler. But somehow it doesn't seem to work anymore.. I'm using this now:...
01

Save in pivot table

How can I save in a pivot table: category id and item id? Controller: $id_kategoria = $request->input('kategoria')...
06

Export Search data

Hi i want to export my search data to an csv but i cant get the users and articles i have in the view table Here is my controller:...
01

How can i protect my Laravel Application

Please what is the best method for protecting my laravel application when it goes live ? Do i need to install security dependencies and if there is...
09

Does Laravel 5.5 use PHP 7.1?

Hi, I wonder if Laravel 5.5 uses PHP 7.1 (although Documentation says PHP 7.0). I got the following error: Parse error: syntax error...
05

Send user to page if email not verified, not working

I have set up a email verification process that is working fine, the next step is to return the user to a page displaying that the user has not bee...
04

authorize null field on create but make it required on update

Hello, I have 3 linked tables. Let's call them table 1 , table 2 and table 3. The table 2 is not managed on my app, it's only necessary for...
02

Upgrade Laravel Version

I Update the laravel version from 5.2 to 5.4, after updating when i open the login page following error shown. (1/1) ReflectionExce...
02

laravel time out error

Hi, i have a project running in ubuntu-apache2 with laravel 5.3. The problem is that laravel works on some users but on others it doesn't. When you...
02

Queued events on separate queue

I have a queued Job which in turn has queued events. Is there any way for pushing the queued events on to a different queue? My use case is that th...
17

How do I orderby relationship value using the code in this lesson https://laracasts.com/series/eloquent-techniques/episodes/4

Hi Guys can't seem to figure out how to orderby relationship value. public function sortby($sortby = null) { return $this->builde...
01