PHP code example of juiko / phosphoricon
1. Go to this page and download the library: Download juiko/phosphoricon 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/ */
juiko / phosphoricon example snippets
use PhosphorIcon;
...
public function icons()
{
return PhosphorIcon::getData();
}
...
use PhosphorIcon;
...
public function index(Request $request)
{
$mymodel = Mymodel::get();
$mymodelWithIcon = PhosphorIcon::getIcon($mymodel);
return response()->json($mymodelWithIcon);
}
...
bash
php artisan migrate