1. Go to this page and download the library: Download translucent/s3-observer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
translucent / s3-observer example snippets
$user = User::find($id);
$user->fill(Input::all());
if (Input::hasFile('profile_image')) {
$user->profile_image = Input::file('profile_image');
}
if (Input::has('delete_profile_image')) {
$user->profile_image = null;
}
$user->save();