Support the ongoing development of Laravel.io →

4,311 Threads

Call to undefined method stdClass::getCategory()

Failing to load the name of the category :( WelcomeController@index: public function index(){ $pos...

0 Likes
3 Replies
posted 8 years ago

BadMethodCallException with message Call to undefined method Illuminate\Database\Query\Builder

I'm trying to do a very simple task to count the authenticated user finished giveaways, But one of...

0 Likes
1 Replies

How To Retrieve data

Hi, as per subject how to retrieve data form field that has relation. My Relation class iklan extend...

0 Likes
1 Replies

Achievements/badge system laravel 5.1

I like to implement a badge-system on my own personal projects build with Laravel 5.1 It’s been days...

0 Likes
0 Replies

How to Use/Start Laravel Services in "ConfigureLogging" Overridden File?

I have to create separate log files for the companies Laravel 5. I have already done this in Laravel...

0 Likes
0 Replies
posted 8 years ago

Advanced relationship

I have 3 models, User, Organization, and Role. I have a many to many relationship setup between the...

0 Likes
1 Replies

Code less or more?

Here are 2 pieces of code that does the same thing. Which one do you prefer? 1- Magical: $flights =...

0 Likes
0 Replies

changing the default login page of laravel 5.2

What other pages do I need to change in order for my changes in the default login page of laravel to...

0 Likes
1 Replies

Auto join on model call

I have two models Item [table: id,title,param_id] and ItemParam [table: id,param_name]. Is it possib...

0 Likes
0 Replies

Custom validators on empty string

How can I call custom validators on empty string from eloquent model's $rule array? I am trying to m...

0 Likes
3 Replies

Laravel 5 eloquent relationship between 4 tables

I have four tables, i used Laravel 5.2 eloquent method Municipalities id name --------------- Barang...

0 Likes
0 Replies
posted 8 years ago

find() returns null for some of the existing IDs

I have a kind of strange situation. Assume there is a table (problems) as follows: id problemTitle p...

0 Likes
0 Replies

Retrieve Data From Pivot Table

I have this pivot table: http://3.1m.yt/0_7a5sa.png I need to return multiple names of users (from u...

0 Likes
0 Replies

Blade Menu that share Employee Info

Hello guys,i am new here and to laravel world. I want to create a menu(with items - employee basic i...

0 Likes
0 Replies

Delete value from database results

hello laravelers , i want to delete somme results from my query where some condition are satisfied a...

0 Likes
3 Replies

how can I access my app's model within the envoy.blade.php ?

I have been trying all different combinations for the last 24 hour and there's very little help on h...

0 Likes
1 Replies
posted 8 years ago

Building a query with numerous relationships (Eloquent)

How would I go about having a query that uses multiple relationships? I'm attempting something like...

0 Likes
0 Replies

How to store file in Mysqldb and display in view ??

This is my store method public function store(Request $request) { $this->validate($re...

0 Likes
4 Replies

[Eloquent] Query-based Attributes: Avoiding Duplicate Queries

Hey guys, wondering if anyone has had a problem like this. I have a solution (which I have not post...

0 Likes
3 Replies

Controller response very slow on query that runs fast in phpmyadmin

I have a terrible query from a design that I inherited. Here it is.. SELECT i.id, i.description AS...

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.