Support the ongoing development of Laravel.io →

Luddinus

Joined 18 Apr 2014

Statistics

Threads 5
Replies 9
Solutions 0
Articles 0

Middleware vs FormRequest authorize method

Imagine I have an API and this can only be used by authenticated users. I want to get all my albums...

Likes Replies

Which one use (injection vs static method)

Hi. Probably is a PHP general cuestion but this is what I'm wondering: class A { public functio...

Likes Replies

Get an user who has specific relationships

Hi. I have a user with countries relationship. (hasMany) user_id 1 country_id 1 user_id 1 country_i...

Likes Replies
Solved

Change config value(s) from a form

Imagine I want to change the debug parameter from true to false. Is there something to WRITE "f...

Likes Replies
Solved
posted 8 years ago

Is possible to do this?

I have a User and a Country models, and the user model has one-to-many relation class User extends E...

Likes Replies
replied 7 years ago

Middleware vs FormRequest authorize method

@shez1983 That's what I'm doing. (users/authenticated/albums instead of users/albums), but the quest...

0 Likes
replied 7 years ago

Middleware vs FormRequest authorize method

@shez1983 I use JWT. The authentication is not the problem. I mean, if a user can go to users/1/albu...

0 Likes
replied 8 years ago

Can I load a view into an AJAX?

Yes, use the render method View::make('yourview')->render()

0 Likes
replied 8 years ago

Get an user who has specific relationships

Well, this is the solution (thx to jarektkaczyk) $countries = [1,5,9]; User::whereHas('countries',...

0 Likes
replied 8 years ago

Change config value(s) from a form

CaporalDead said: Hi, Laravel does not provide a way to "write" the config on your filesy...

0 Likes

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.