Suggestion: Order model by its related model attribute

Let say that we have Article model with Comment as its related model. I want to get the 10 latest commented articles by date (Not last arti...
06

why it shows selected value twice in laravel drop down option value

// database table jobcategories id | name 1 | IT 2 | MBA 3 | Pharmacy I save one of this value by selecting...
03

How to call a function in another class properly ?

I would like to call a function in another class, how I can do that properly with Laravel 5 ?...
10

Sending mail in Lumen via gmail smtp

I have been trying to send mail in freshly installed lumen. I installed illuminate\mail and have uncommented the $app->withFacades(); as mention...
00

Catching all Exceptions thrown in my API

I'm building a small app, that has an API and an admin dashboard. My API routes are all prefixed with api/v...
01

Filter relational data with with() method.

I have a one to many relationship with my two tables. (User, Post) When i grab user with posts i want to filter posts like ...those posts which is...
04

Why isn't this pivot table set up working?

I have a table of events, and a table of categories. Each event can be in more than one category, and each category can have more than event. So I...
03

Homestead and phpunit, "The program 'phpunit' is currently not installed"

Hi forum-ites, I've got homestead working and it's great, however when I try to run my unit tests inside the homestead ssh wit...
03

Using Auth to logout

Hi, I see that in HomeController.php if I use Auth::logout() there is an error related to the detection of the method. However, if I use \Au...
02

Sorting by data joined by a pivot table

I have the following query: $event = Event::with(['instances.venues'])->findOrFail($id); Which returns:...
05

Migration don't work after optimize

Hello everybody, After a : php artisan optimize my migrations don't work. If I try php artisan migrate:status, half of migrations has the Ran "...
08

[HELP] Efficent way to get data from DB?

I have a table that's probably going to contain a lot of data, some of this data is categorized by type. Say for example, 3 records is a typ...
04

psr-4 auto loading not working

I am trying to use psr-4 auto loading in Laravel but I cant get it to work correctly. When I use 'composer dump-autoload -o' it works fine....
00

Laravel Roadmap and LTS (Long Term Support) , is there any?

I would like to use Laravel at work but the team leader asked me if there is a clear Roadmap for Laravel 4.2/5.x. for example : Will...
11

Laravel 5 Fundamentals Source Code

Where can I download the source code for the Laravel 5 fundamentals course?...
04

Disk Space and Bandwith

I want to get started with Forge, but I dont know, How much disk space and bandwith they offer me?. On page not say anything about that. Please giv...
02

Search query with filter

I am new to laravel, I need help to run search query with filter. I have 4 tables with interrelated relationship e.g. Categor...
03

The reply text area is positioned wrong.

Hello, I don't know if other people see this, but for me, the text area is positioned slightly to the left, covering the badge under the pro...
09

help with validation

Hi, I have a problem i have a validation request class...
00

Error In Installation

Hello, I am really struggling installing homested on windows. I get these errors when I type in: homestead: Warning: re...
07