Support the ongoing development of Laravel.io →

4,313 Threads

Creatable fields

Hey, I'm new to laravel and still learning a lot every day :) But I have already my project in mind...

0 Likes
0 Replies

Migrate and primary keys

Hello, I have trouble creating my tables with the migrate tool. I'd like a table for countries with...

0 Likes
10 Replies
Solved

Working on a relationship

I'm trying to put together a wrestling project and have arrived to the point where I need to put tog...

0 Likes
9 Replies
Solved

Dynamic table names using setTable()

To answer http://forumsarchive.laravel.io/viewtopic.php?id=11485 $test = new Test(); $test->setTa...

0 Likes
0 Replies
posted 10 years ago

Pagination not showing on category view page

Hi guys, Im using pagination on my categories page. However when im trying to apply pagination links...

0 Likes
2 Replies

Pagination and JOIN with Laravel

I'm having a strange behavior (due to my fault I guess) while trying to paginate some results after...

0 Likes
5 Replies

Help with users and their roles (Laravel + Entrust)

Hello, first thanks for the interest in my topic! Here's my question, I have Laravel and Entrust aut...

0 Likes
3 Replies
Solved
posted 10 years ago

Associate one-to-one relation

How do we associate models related one-to-one? $user->card()->associate($card); // error $user...

0 Likes
2 Replies
posted 10 years ago

How do I mass replace a column value using Eloquent in Laravel 4?

Is there any way I can mass replace a column value ? I am currently using the where clause but it re...

0 Likes
3 Replies

Using Eloquent::with when having a parameter

Hello, I'm Developing a system for displaying a list of mandatories done by a student in a specified...

0 Likes
1 Replies

Only once for first element of a foreach?

I don't know what to say in the if statement. @foreach($posts as $post) @if($p...

0 Likes
1 Replies
Solved
posted 10 years ago

Eloquent ORM dynamic relations

I have a notifications table with a dynamic relationship (where parent table is variable) +---------...

0 Likes
1 Replies
Solved

Filter search results by tags using eloquent

I have table structure like this posts | posts_tags | tags _________________________ id |...

0 Likes
4 Replies
Solved

Seperate rights management from views and controllers

Hi, I want to ask you guys about how you seperate your roles/rights logic from views or controllers....

0 Likes
3 Replies
posted 10 years ago

Set a multi-column primary key for a model

Hi, I know that if I can set the value for the $primaryKey protected field in my model in order to t...

0 Likes
0 Replies

why whereRaw() not accepting pivot column

I have a ManyToMany relation Users controller public function measurement() { return $th...

0 Likes
0 Replies

Cache Eager Loading

Hi there How I can cache Eager loading in laravel? suppose that we have this query : $today_posts =...

0 Likes
0 Replies

(!) Problem with boolean attr

From my model... public function getNumberDeletedAttribute($value) { return (bool)$value; } public...

0 Likes
2 Replies

If / Else Yesterday does not work?

This does not work? @foreach($posts as $post) @if($post->created_at == 'isYesterday()')...

0 Likes
3 Replies
Solved

Self reference Many to Many relationships

Hi guys! I'm learning Laravel and am working on a personal project as I do it. It's essentially a d...

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