Support the ongoing development of Laravel.io →

4,599 Threads

Can't access final model (posts) through hasManyThrough method, error "Call to undefined method Illuminate\Database\Query\Builder::posts()"

I don't know what is wrong here. I have this kind of setup: item_model id - integer name - s...

0 Likes
20 Replies

connection data base

I wonder if there is some form of excolhes the path of database connection before login to the syste...

0 Likes
1 Replies

Help with the eloquent query!!!

Here is my reddit post. Thanks!

0 Likes
0 Replies

How to: Get first N objects in foreach loop

Is it possible to get first Nth ojects in foreach loop. For example i have foreach loop with movies...

0 Likes
1 Replies
Solved

Remove white space between words in DB

HI all REally appreciate some help with this one if any one has time. I need to remove the white spa...

0 Likes
6 Replies
posted 8 years ago

Access other users by id inside Blade template

Hi guys, Been trying to find solution to my "problem" so I hope you can help me. So I have...

0 Likes
0 Replies

Join multiple tables Eloquent

I am trying to Join multiple tables and get results I have now 2 tables 1- projects_info (id - pro_t...

0 Likes
1 Replies
Solved

Collection filtering is slow, any tips?

I'm working on a website for a soccerteam where I dynamically generate the ranking by getting all th...

0 Likes
0 Replies

Laravel Authentication and MYSQL user table

I have developed my first Laravel CRUD application and i am looking to setup a system of authenticat...

0 Likes
1 Replies

How to save multiple checkboxes in Laravel

Please i need some help in my application. I am using Laravel 4.2 and MySQL database. I am trying to...

0 Likes
2 Replies
posted 8 years ago

change place of column with migrations, after(), modifyAfter()?

Hi, i'm trying some things with migrations. i made a model, i added columns with an migration, and a...

0 Likes
5 Replies

BadMethodCallException in Builder.php line 2345: Call to undefined method Illuminate\Database\Query\Builder::photo()

Hey guys getting this error on this database save for a photo using dropzone.js here is the model ca...

0 Likes
3 Replies
posted 10 years ago

Changing the length of a column using migrations?

I do not find it in the documentation, how to change the length of a string=varchar column using the...

0 Likes
3 Replies

Multi-way Relationship?

Good day, I'm new to laravel and have been attempting to figure out how on earth to do a multi-way r...

0 Likes
2 Replies
Solved

Relating models using composite keys

I unfortunately need to import data from a third-party vendor and use their non-standard database sc...

0 Likes
0 Replies

Do something when session expire.

Hello guys, I just wanna know if it's possible to update a table on the DB when the session lifetime...

0 Likes
1 Replies

[L5] Why it takes so long? Any suggestion better?

i have this code in my controller // 1 $header = DB::table('rekap_cmd')->select('date','uni...

0 Likes
1 Replies

Query between a db table an array

I wanna make a query like this. public function find(Request $request){ $dato=$request->buscarD...

0 Likes
1 Replies

Why Laravel converts field names in POST request and add unnecessary fields?

I am making POST request: http://localhost:8081/myserver/server.php/api/v1/contracts/1 with body {...

0 Likes
0 Replies

A lot of issues with the multiauth package

Written with StackEdit. So i am struggling with understanding this laravel multi-auth concept in l...

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.