Support the ongoing development of Laravel.io →

4,606 Threads

Many to many inverse query how?

Let`s take classic documentation example User -> Role public function roles() { return $this->...

0 Likes
10 Replies

how can get hasbelongsToMany and send data to view

$employee=Employee::create([ 'name' => $request->get('name'), 'lastname' => $request-...

0 Likes
2 Replies
Solved

paginate() not working

Hey guys, today I started developing a new website with L5.1 and wanted to use the paginator. I used...

0 Likes
2 Replies

How to do not delete pivot table row

Hi, I have two tables; Table user and table user_groups. I'm using soft delete to delete users. When...

0 Likes
2 Replies

show remaining and occupied

I am struggling with something and I really need some help The web application I am putting it toget...

0 Likes
1 Replies

Fail To Auth:attempt() in Laravel 5.1

I am newbie of laravel just authenticate 'username' and 'password' with database for successful log...

0 Likes
1 Replies
Solved

How lists a ::with relation model one to many?

$users=Tlc\Employee::with('users')->get(); => Illuminate\Database\Eloquent\Collection {#822...

0 Likes
0 Replies

response()->json differs on OS

So I have this odd problem with json. It will return different jsons depending on my underlying syst...

0 Likes
0 Replies

Laravel eloquent - how to use DB raw inside custom relationship

I have laravel models : Post and Comment. As normal, post will have many comment tables as bellow: P...

0 Likes
1 Replies

Compare Properties of Multiple Collections

How can I compare properties of multiple collections. I have the following code. $games = Schedule::...

0 Likes
3 Replies

Class 'App\Song' not found

So I've been following https://laracasts.com/series/laravel-5-from-scratch/episodes/8 and I've got t...

0 Likes
3 Replies
Solved
posted 10 years ago

People asking about jquery / ajax

For those asking about jquery ajax: Here I am editing a pet, and looking up the petowner and filling...

0 Likes
28 Replies

Artisan Migrates, but App MySQL Connection Fails... why?

App and MySQL are running on a separate hosts inside the same network Migrations and seeding the dat...

0 Likes
5 Replies

Create server side script

I am new to laravel Detailed explanation: I am creating quiz contest website.I have a timer in which...

0 Likes
1 Replies

One-to-many polymorphic relations

Hello, I'm familiar with many-to-many polymorphic relations explain here: http://laravel.com/docs/5....

0 Likes
1 Replies

Hierarchical relation checking

I have a model A which has a parent/child relation with itself through a pivot table AHasA. Model A...

0 Likes
1 Replies

Link on form to disable user.

Hi I need to put a link on a form to disable a user in users table. I already have the id and i crea...

0 Likes
3 Replies

Eloquent, Postgres, and the JSON datatype

Has anybody worked with eloquent/postgres and the json/jsonb datatype? I've fleshed out some basic c...

0 Likes
7 Replies
Solved

How to get (Client::with->last 10 activities) in one Eloquent collection

Hi everyone. I'm not sure if it's possible but here is my question: How to get all my clients with t...

0 Likes
4 Replies
posted 9 years ago

Unserialize from column doesnt work

Hello togehter, i have a problem to unserialize an entry of a column with the data type "binary...

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

© 2025 Laravel.io - All rights reserved.