Support the ongoing development of Laravel.io →
jrsalunga

jrsalunga

Joined 25 Feb 2014

Statistics

Threads 3
Replies 8
Solutions 1
Articles 0

get controller and action name in your template?

i wonder if how i can get the Controller name and Action name in the Blade template/View? Thanks in...

0 Likes
1 Replies

get data from Pagination

i have $users = User::paginate(10); how do i get the data when i pass it to my blade template. e.g:...

0 Likes
7 Replies

How to set the Primary Key and Foreign Key to string

I'm not using the auto increment for the id instead i'm using the 32 char unique id. So when i creat...

0 Likes
6 Replies
Solved
replied 11 years ago

How to set the Primary Key and Foreign Key to string

wtf! im so dumb! just need to put the 2nd param on my $this->belongsTo('User') public function us...

0 Likes
Solved
replied 11 years ago

How to set the Primary Key and Foreign Key to string

zenry said: did you try this // Reservation model return $this->belongsTo('User', 'foreign_key',...

0 Likes
replied 11 years ago

How to set the Primary Key and Foreign Key to string

auto increment is fine for me when i will make new app. the problem is the database is existing and...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.