Support the ongoing development of Laravel.io →

2,049 Threads

posted 10 years ago

How to add class to a select options

Can we add a class or something else to a <option> in Laravel 4 ? I try to use deboostrap prop...

0 Likes
1 Replies

How to cache specific related model info?

Hi, Let's say a User belongsTo a Language, and to make it simple here's the controller (no repo) : $...

0 Likes
6 Replies

Redirect After Setting Response

Hi guys! I have a problem with my Response. I am generating a .ics file setting the headers and cont...

0 Likes
0 Replies

View data in Controller or View...

Hello, there. I have a table of users, and when you click on a Details button for a particular user...

0 Likes
1 Replies

dont show error if relation not exist , just show empty field.

Hi i have controller and i am taking data like this $events= Eventm::with('teacher')->get(); th...

0 Likes
1 Replies
Solved
posted 10 years ago

HTML::image : image rotates automatically

Hi, I have a problem with the function HTML::image(). When i use it with a heavy image (more thant 1...

0 Likes
2 Replies
posted 10 years ago

GroupIn Method for Collection

First of all, English is not my primary language and if the group in term is wrong for what I'm tryi...

0 Likes
1 Replies

Getting data of model related as an array

Hi... maybe it's a newbie question... these are my first steps with Laravel.. suppose I have in Post...

0 Likes
2 Replies
Solved

Mobile & Desktop Pagination

It's possible to have two pagination settings for mobile & desktop? app/config/view.php If mobil...

0 Likes
1 Replies
Solved

[Packages] Meta (Makes it easy to add meta tags to your views) and Shareable (Simple social sharing buttons for views)

Hey everyone, I released a package today that some of you may find helpful. It's called Meta, and it...

0 Likes
1 Replies
posted 10 years ago

ErrorException Creating default object from empty value

http://www.codeheaps.com/php-programming/creating-blog-using-laravel-4-part-1/ I followed this great...

0 Likes
5 Replies

paginate() problem

I have a problem with paginate() with hasmany(). I have 2 tables. Categories and posts. I showing po...

0 Likes
2 Replies

One to many relationship help

I have a table named attendance and another named students_attendance. I add an attendance record to...

0 Likes
3 Replies

rendering data of a join query

i've been able to construct a join and it works: $projects = Main::join('builds', 'mains.build_id',...

0 Likes
1 Replies
posted 10 years ago

{{trans('messages.title')}} use vars something like $title

Hi, Is it possible when I translate a title like {{trans('page.title')}},receive the value 'title'...

0 Likes
3 Replies
Solved

manual pagination

in controller : $push_arr = [ ...] $paginator = Paginator::make($push_arr, Category::count(),10); r...

0 Likes
2 Replies

Array on One Column (Join)

DB::table('users') ->join('contacts', 'users.id', '=', 'contacts.user_id') ->join('orders', 'u...

0 Likes
1 Replies

Error validation : Replace label attribute in error message

Hi, I have this code in my_view.blade.php : <div class="row"> <div cl...

0 Likes
1 Replies
Solved

Using GULP with laravel - understanding the basics

Hi I've been using basset as my asset manager and am playing with gulp.js as an alternative to compi...

0 Likes
1 Replies

thomaswelton/laravel-gravatar Installation Quesiton

I am trying to install thomaswelton/laravel-gravatar Gravatar Helper and I am having a slight issue....

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.