File: /home/imensosw/www/ezwork/app/Http/Controllers/ProficiencyController.php
<?php
/**
* ProficiencyController 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 App\Models\Proficiency;
use Illuminate\Http\Request;
/**
* ProficiencyController class
*
* The class manage the Proficiency
*
* @category ProficiencyController
* @package Ez
* @author Imenso Software <admin@imensosoftware.com>
* @license http://imensosoftware/license.php GNU Public License
* @link http://imensosoftware.com/recipes
*/
class ProficiencyController extends Controller
{
/**
* GetProficiencys function get the list of proficiency and
* return it in json format.
*
* @param void
* @return json
*/
public function getProficiencys(): \Illuminate\Http\JsonResponse
{
$proficiencys = Proficiency::get();
return response()->json(
[
'status' => 'success',
'proficiencys' => $proficiencys->toArray(),
],
200
);
}
// end getProficiencys()
}
// end class