Q:

Simultaneously insert data into same table with PHP (laravel)

I'm not sure if this is even possible but what the heck :) I have two URL, both trying to insert different data into the same table. Example
We have table "food" and two URL with functionality that insert into FOOD table some values

http://example.com/insert_food_1
http://example.com/insert_food_2 

When loading both URLs in the same time, every one of them waits for the other one to finish first and afterwards inserts into the DB the specific values. 
I know this is called multithreading or something... but i'm not sure if this can be done with PHP (or Laravel).
Any help would be much appreciated. My code looks like so ...
$postToInsert = Post::create(
 array(
      'service_id' => 1, 
                'custom_id' => $post->body->items[0]->id, 
                'url' => $post->body->items[0]->share_url,
                'title' => $post->body->items[0]->title,
                'title_tags' => $tags,
                'media_type' => $mediaType,
                'image_url' => $imageURL,
                'video_url' => $videoURL
            ));

$postToInsert->save();

A:

I kind of fix it. Opening them in separate browsers or php them via CURL from terminal solves the problem. 
Thanks for all the help

