A little more info on the checkbox:
Notice this in the script:
$post.ocheck = ($("#ocheck").prop("checked") == true ? '1' : '0');
I am getting the 0 or 1 assigned prior to posting. However in a regular post (non ajax) you have to figure out if a checkbox is checked a little different:
In HTML if a checkbox is checked a 1 or true is posted.
However
If a checkbox is not checked nothing is posted for that field. So you need to do a check for that and assign a 0 to be put in the database for a non checked checkbox. But there are several ways to do that. Just Google or Yahoo dealing with checkbox in a post.
Uploading a image with ajax:
I can, but don't for images I highly recommend using a good package for this. One I see on the forum a lot is http://image.intervention.io/ But there are others.
The reason:
Images need proper rotation, cropping, sizing, optimization, etc.
However, there are a couple of forum post on uploading an image already:
https://laracasts.com/discuss/channels/laravel/ajax-file-upload-with-form-data-laravel-53
and
https://laracasts.com/discuss/channels/requests/upload-image-with-ajax
But unless the images are web ready with a good program like Adobe photoshop I'd use a package.
And a final note, don't attempt ajax until you get everything working without ajax.
There have been so many post on laravel where the person would state the ajax isn't working, only to find out it was a code error in form or controller or model, nothing to do with ajax.
Once all is properly working, then switch to ajax and remember to switch the redirect from controller to js.
In the example I used a simple alert, but a real app I'd put a hidden div with a nice message (The record was updated), then hide the div.

