Support the ongoing development of Laravel.io →

4,603 Threads

posted 10 years ago

How to extend `Blueprint` to change the default length for string

I use utf8mb4 charset and utf8mb4_general_ci collation for Mysql connection. The default length is 2...

0 Likes
0 Replies

How to get the values of a foreign key table

Hi I'm trying to get the values of a table that references 2 tables. my tables looks like this pages...

0 Likes
0 Replies

Problem with hasmany relathionship

Hi, I am working on my first application. I created two database tables: "leads" and "...

0 Likes
4 Replies
posted 10 years ago

whereNotExists in database already querying

I'm trying to return results from a database that limits the results to ones that aren't already in...

0 Likes
0 Replies

Laravel and Doctrine 2

Someone use laravel with doctrine 2? I tried with this package: https://github.com/mitchellvanw/lara...

0 Likes
1 Replies

Advanced Data Base queries and Eloquent

Hi All, I've been developing a laravel application the last couple months and it's my first ride wit...

0 Likes
6 Replies

Create Input::get reusable array

Hi All, I have a controller that receives input from a from. My controller handles both the create a...

0 Likes
1 Replies

How to paginate Raw query?

$rawq= 'SELECT COUNT(*) from `'.DB::getTablePrefix().'table`... blah-blah'; $result = DB::select(DB:...

0 Likes
0 Replies

Postgres Database Error: Eloquent/Fluent Query where boolean value is true/false

I am getting the following error when I run an eloquent query: ERROR: operator does not exist: bool...

0 Likes
1 Replies
Solved
posted 10 years ago

Redis scan family commands via laravel?

I am new to using Laravel and Redis together. I'm trying to run the Redis command zscan: $redis = Re...

0 Likes
0 Replies

Advanced ratings based on votes in different categories

I'm quite new here and are REALLY stuck on this. So i figured I could give this forum a try... I'm w...

0 Likes
4 Replies

Many-to-many or other way?

Hey, i'm just starting to plan a laravel project. I have a User-, BranchOffice- and a Company-Model...

0 Likes
1 Replies

Best approach

Hi guys, This question isn't strictly related to laravel but, as I used it, I'm asking for your sugg...

0 Likes
0 Replies

save() function don't work for another of table

hi, \n i use save() function for saving detail of table and this is work when i want change default...

0 Likes
3 Replies

Nested Dependant Relationships

Hey everyone, we're trying to figure out how to do what I call "nested relationships" in L...

0 Likes
0 Replies

Query by pivot attributes?

I have two tables, call them table1 and table2, corresponding to Table1 and Table2 models. Those two...

0 Likes
0 Replies

How to assign value to a variable from an object?

How to assign value to a variable from an object? public function func() { $valida...

0 Likes
1 Replies
Solved

Conditinaly Where Clause

Hey, i have two relational tables, funs and user_votes, user_votes is saving votes for funs, likes o...

0 Likes
2 Replies

Eloquent N:M relation saveMany problem...

Hi, I have problem saving N:M relation data saving. Model 1 "Books": class Book extends \E...

0 Likes
2 Replies
Solved

Call to undefined method stdClass

What am I doing wrong? I have a 'Category' model that is the model for my table 'categories'. In the...

0 Likes
2 Replies
Solved

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.