1. Go to this page and download the library: Download rentalmanager/photos 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/ */
rentalmanager / photos example snippets
$photo = new Photo([...]);
$photo->save();
$property->attachPhoto(1, 10);
$property->detachPhoto(1);
// or
$property->detachPhotos([1,2,3]);