etrepat / baum

Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.
http://etrepat.com/baum
MIT License
2.24k stars 460 forks source link

I cannot use normal eloquent for update and insert? #239

Open lyhongpon opened 8 years ago

lyhongpon commented 8 years ago

I am trying to use normal eloquent for update and insert data into a table(product) which is using Baum. I can do with other tables, but this. Indeed there is no real error, it's just very very very slow, and after a minute, it displays error Maximum execution time of 60 seconds exceeded.

This is my current eloquent code

Product::create([
            'shipment_id' => $request->shipment_id,
            'slug' => str_slug($request->job_title),
            'description' => $request->description
]);