Support the ongoing development of Laravel.io →

4,311 Threads

Pagination with where and join and get with args

Hi! I have this problem: i'm getting data from database with joins and i want only get few columns s...

0 Likes
2 Replies
posted 9 years ago

Generating pivot tables in Laravel 5

Hi everyone, New to Laravel and hitting the ground running with fresh Laravel 5 stuff. Just stuck on...

0 Likes
3 Replies

Insert Multiple rows?

Hopefully someone here can help me with this, I'm kinda stuck here... I have a form looks like this:...

0 Likes
1 Replies

Weird behavior - Sorting collection

I'm trying to sort a collection by the column "name". I am logging the ajax result and whe...

0 Likes
1 Replies
Solved

Custom toArray method on Eloquent model

Hi, I have a Eloquent Model and I want to create a customized toArray method... class Posts extends...

0 Likes
4 Replies
Solved

Route model binding with condition

Helo, I wonder how can I bind a model with condition? in this example: https://iatstuti.net/blog/elo...

0 Likes
3 Replies

Suggestions PLS! Display results using a association table

What am I not understanding? I want to get all the 'industries' associated with a 'project' via an a...

0 Likes
1 Replies

Understanding Mass Assignment

I'm learning Laravel and just need to clarify myself here. If you intend to push all input data to i...

0 Likes
7 Replies
Solved

Controller show($id) function help

When I use a show($id) function called with a wild card route, the resulting view appends a director...

0 Likes
0 Replies

Converting elasticsearch result into Objects

Dear all, I am having an issue to display elasticsearchresult in my view. ElasticSearch returns the...

0 Likes
2 Replies

ModelName::first() returns "No query results for model" even though there's data within the database

Paste: http://laravel.io/bin/9vvxv php artisan tweek Tweet::first() PHP Fatal error: Class 'Twe...

0 Likes
0 Replies

child of child relationship with pivots

Hi everyone Could you please help me to solve my problem I have 3 tables: types belongstoMany catego...

0 Likes
1 Replies

Auth::user not working in laravel

I'm creating a messaging application. User logs in and then his conversations are displayed to him....

0 Likes
2 Replies
posted 9 years ago

BelongsTo - Undefined property (Default of a select field)

I created a form which is used for creating and editing packages, multiple features and a single pac...

0 Likes
3 Replies

2 pagination in one page Laravel4

Hello, i have index page where are 2 tabs. In the contens i loading products and categories with two...

0 Likes
1 Replies

Validation not working

Hello, I'm having trouble with my validation. I'm sending this JSON: { "promotor": {...

0 Likes
1 Replies

Edit Permission a role From checked checkbox

Hello. I got Zizaco/Entrast package installed. https://github.com/Zizaco/entrust/tree/1.0 I create a...

0 Likes
2 Replies
posted 10 years ago

Accessing relations using snake_case

So given the following schema: users id (int) some_group_id (int) some_field (string) so...

0 Likes
4 Replies
Solved

Seeder File For Users Table

Is there a better way to write this up? <?php // Composer: "fzaninotto/faker": "v...

0 Likes
2 Replies

Is it possible to build an Eloquent query version of this SQL query?

Even if it included some Raw elements. :) Select concat(places.path, child_places.id, '/') as p...

0 Likes
4 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.