Support the ongoing development of Laravel.io →
posted 10 years ago

belongsToMany + belongsToMany

A User belongstomany (can have many) Collections. A collection belongstomany users. A collection bel...

0 Likes
0 Replies

Problem having a Route named same as folder in Public

I have a route called admin which displays my admin dashboard however its broken since i have a fold...

0 Likes
4 Replies
posted 10 years ago

ORM validation, valid date or null

I have a table that may have a date or may be null. Is it possible to set an ORM validation rule th...

0 Likes
1 Replies

use laravel with record locking

I have a multi-tenant DB that I need to manage incrementing invoice numbers per tenant. It's import...

0 Likes
0 Replies

Eloquent relation

Hello ! I have two models, who have a one-to-many relationship. 1 - a company has many initiators 2...

0 Likes
3 Replies
Solved

Lazy loaded relation results in "ErrorException Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation"

My ERD is something like this: ControlForm hasMany FormRows FormRow hasMany FormColumns FormColumns...

0 Likes
0 Replies

can we find a row based on foreign key??

Suppose we have two tables abc and def. id is primary key of both tables. abc_id is foreign key of d...

0 Likes
4 Replies

What are the typical things I have to do in order to keep the app secure up and running?

Hi, This is the first time I am hosting sites on Digital Ocean. Everything is set up and working wit...

0 Likes
1 Replies

Using a variable in join function

Hi, I need to perfom a query which includes a join on multiple conditions. Therefore, I try to do th...

0 Likes
4 Replies
Solved

In-query check or code check

Hey, Quick question here! I don't really know what are the best practices on that subject, so I'll l...

0 Likes
4 Replies
Solved
posted 10 years ago

How can I replicate this SQL with the query builder?

This is part of a union MySQL query I'm using in my current project: SELECT DISTINCT NULL AS id, i1....

0 Likes
2 Replies
Solved

Best way of using model event and eloquent guard

I currently have a form with 3 dropdown menu which allow a user to select his date of birth by day,...

0 Likes
0 Replies

Is possible array of form input validation and display each input validation error?

how to display custom messages after validation, I require that each input message is showing valida...

0 Likes
3 Replies

Scope Applicator - a package for easy data filtering and sorting

Hi. Check out a new library for data filtering in Laravel 4. It applies named scopes according to UR...

0 Likes
0 Replies

Get array from browser url.

Hello all, Can anyone please send me a bit of code to get array from url? Suppose this is my url :...

0 Likes
3 Replies
Solved

Laravel 4 paginate on GET request

I have a form that is used to filter results for a categories page. So, the URL will be localhost/pu...

0 Likes
2 Replies
Solved
posted 10 years ago

Route Parameters in a Route causing 404 under different instances

The following route works fine: Route::get('/{category}/{product?}/{id?}',array('uses' => 'Produc...

0 Likes
2 Replies
Solved

Publishing all assets to /public

I have inherited an application written in Laravel and am trying to get it to work properly. Let me...

0 Likes
0 Replies
posted 10 years ago

"optimize" command results in broken page

Hey, I have an issue with "php artisan optimize": I get an exception when opening my Larav...

0 Likes
0 Replies

Dingo - OAuth 2.0

Hello. I am a little bit confused on how to use OAuth 2.0 with Dingo. I've never used OAuth in a p...

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.