Support the ongoing development of Laravel.io →

991 Threads

slug, str_slug

I added a collumn in the table users I call slug, no errors or anything, it just doesn't add. Should...

0 Likes
2 Replies
Solved

How to use multiple database connections in laravel project?

I want to use mysql and mongoDB in my laravel project, I know I can define multiple connections arra...

0 Likes
1 Replies
Solved

Default Value On Migrate

Hello How can I define a default value on table schema(migrate)? Thank You

0 Likes
1 Replies
Solved

Get DB field from whereHas Table

Hi there, I have the folloing Tables: Partner id int name varchar booking id int id_partner int bo...

0 Likes
1 Replies
Solved

Users and Roles

Hi! I'm new in Laravel and I have a little problem with User and Roles. In a database I have users a...

0 Likes
11 Replies
Solved

Order by pivot table attribute in Eloquent

Hi Guys I have this query: $user = Auth::user(); $user->jobs()->get(); where jobs is a bel...

0 Likes
6 Replies
Solved

Wanna Add some text before text insert to database

<div class="form-group"> {!! Form::label('eMail', 'e-Mail', ['class'=>'co...

0 Likes
4 Replies
Solved

Issues with belongsToMany() only returning data for one column on pivot table.

So I'm kind of following the Laracasts Many To Many tutorial in Laravel5 Fundamentals and have the M...

0 Likes
2 Replies
Solved

Add Columns with Methods Undefined

What I am trying to do is set a column to be a foreign key. Following the documentation, it's prett...

0 Likes
3 Replies
Solved

How to get data from one to many relation.

Hello everyone. I have a small problem. I got two models: User and Group. They are connected by one...

0 Likes
4 Replies
Solved

Laravel 5.3 and Notifications

I'm trying to grab some users from the database and notify them that a new position has been posted....

0 Likes
2 Replies
Solved
posted 7 years ago

QueryBuilder doesn't get records

I have to get some records from a table given an array of ids, to do so I use this code $future_meet...

0 Likes
2 Replies
Solved

"with" or "load" causes all objects loaded

Hello All, This is my first post on this forum, so I'd like to send warm hello and thank You in adva...

0 Likes
5 Replies
Solved

Pagination with ajax not working

I´m using Laravel5.3. The problem is that the current Pagenum is not set. I mean I get the correct d...

0 Likes
1 Replies
Solved

Query items that have all categories

Hi, I have a Shops model associated to services, using a pivot table: public function services() {...

0 Likes
1 Replies
Solved
posted 7 years ago

How to merge pivot data into an array of pivots?

The problem that I am having is that when I output the data from the database like this: $diets = Di...

0 Likes
1 Replies
Solved

syntax error, unexpected ':', expecting ';' or '{'

Good day all, Running into a little problem with my models and a package by spatie. Hopefully you ca...

0 Likes
2 Replies
Solved

Advanced Eloquent query from morphToMany question

I have an Eloquent query question of approach. A Story hasMany Chapter. Story and Chapter are Taggab...

0 Likes
1 Replies
Solved

Fetching large numbers of rows

Hello guys, is there any way currently to fetch large datasets with Laravel? I know there's chunk()...

0 Likes
10 Replies
Solved

migrate:refresh can't find migration class file

Some migration files come up as missing: From term after php artisan migrate:refresh --seed [Symfony...

0 Likes
6 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.