Support the ongoing development of Laravel.io →

4,311 Threads

Localization - Dynamically filling the language files from database

I'm currently porting an app from Codeigniter to Laravel and was looking to implement some functiona...

0 Likes
4 Replies

Database records -- Select from time range, group by ID, sum numeric columns

Hi guys, I'm fairly new to Laravel (and web dev), but I'm trying to build a project for work. I'll t...

0 Likes
3 Replies
Solved

Observing pivot tables

I've seen a lot of posts here about this but no solution. Is there any method to observe pivot table...

0 Likes
0 Replies

Is it possible to pass a second argument to edit and update methods of a controller?

I need to pass a second argument to edit and update methods of a controller like: public functi...

0 Likes
2 Replies

Button for Download

I'm saving the files in a folder, but I want to make available for download . How do I do that ?

0 Likes
1 Replies

Curious about $factory

Hello, I've been building my app for a while with Laravel 5.1, and I'm still a total newbie with thi...

0 Likes
0 Replies

Querying Relationships Tables

Hi friends, do you can help me? I need construct a query for view (empleados.index), parsing data fr...

0 Likes
0 Replies
posted 8 years ago

Is there any way to add attribute to objects in collection?

Hello, I finally understood Collections. However, I am looking to add an attribute (pulled from an e...

0 Likes
0 Replies

How Can I "Request" the data of a collection of rows?

I want to build a web based system to keep track of students attendance. I have these three tables r...

0 Likes
0 Replies

How to use OrderByRaw to get posts from database?

I currently have this code: $sidebar = Post::where('published', '=', '1')->orderByRaw("RAND(...

0 Likes
2 Replies
Solved

How to add variables to file upload form and fetch it from the route?

How do i add the value of $course->id to this form so the my route::post(/course/{id}.......... w...

0 Likes
0 Replies

Order results

I want to order the result of a decreasing form of consultation. I'm trying this: $call = App\Call::...

0 Likes
4 Replies
Solved

How do I access pivot table columns?

Following the code below and it keeps saying the pivot property is NULL. There must be something wro...

0 Likes
3 Replies

Change SQL query on Auth, Laravel 5.1

When logging in, the query fails, because "email" is not on "usuario", it's in &...

0 Likes
6 Replies
posted 8 years ago

Scope to check for existence of a relationship

I'm building a site concerning nightclubs, events and booths - the idea is a user can book booths fo...

0 Likes
2 Replies
Solved

Error "Missing argument 2" on a Constraining Eager Load closure

Hi, I'm using a Constraining Eager Load closure to filter a query, but when I use a second argument...

0 Likes
1 Replies
Solved

Relationship cant access recently created model

Hello, I have this scenario: Route::group([ 'middleware' => ['reservation'], 'prefix' =&g...

0 Likes
1 Replies
Solved

How to call a model function inside the controller in Laravel 5

I have been facing a problem of not able to use the model inside the controller in the new laravel f...

0 Likes
1 Replies
Solved

hi guys im new to laravel please help me.

i have a basic knowledge in php and laravel(i watch laravel5 fundamentalls) but i'm confused because...

0 Likes
1 Replies

Complicated Query and Data Request

I will try to explain as best I can. I have a options table which is a tree structure like: Colors...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.