File: /home/imensosw/.trash/app.1/Http/Controllers/PhotoProofTypeController.php
<?php
/**
* PhotoProofTypeController class file
*
* PHP Version 7.2
*
* @category Controller
* @package Ez
* @author Imenso Software <admin@imensosoftware.com>
* @license http://imensosoftware/license.php GNU Public License
* @link http://imensosoftware.com/recipes
*/
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\PhotoProofType;
/**
* PhotoProofTypeController class
*
* The class manage the Photo Proof Type
*
* @category PhotoProofTypeController
* @package Ez
* @author Imenso Software <admin@imensosoftware.com>
* @license http://imensosoftware/license.php GNU Public License
* @link http://imensosoftware.com/recipes
*/
class PhotoProofTypeController extends Controller
{
/**
* GetPhotoProofTypes function gets the list of photo proof type
* and return it in json format.
*
* @param void
* @return json
*/
public function getPhotoProofTypes(): \Illuminate\Http\JsonResponse
{
$photoProofTypes = PhotoProofType::get();
return response()->json(
[
'status' => 'success',
'photoProofTypes' => $photoProofTypes->toArray(),
],
200
);
}
// end getPhotoProofTypes()
}
// end class