Laravel 2 Nisan 2024

Laravel with MongoDB

Advantages: None

Disadvantages:

  • To Slow
  • You can’t able to use the Eloquent find method
  • There is no auto-increment id so you have to manage IDs yourself

Why should I use it? If you want to torture yourself do it.

Post::create([ ‘id’ => intval(Post::max(‘id’)) + 1, ‘header’ => Request::get(‘header’), ‘body’ => Request::get(‘body’), ‘category_id’ => Request::get(‘category_id’), ]);