1. Go to this page and download the library: Download orchid/blade-icons 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/ */
orchid / blade-icons example snippets
$ composer
namespace App\Providers;
use Orchid\Icons\IconFinder;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot(IconFinder $iconFinder) : void
{
$iconFinder->registerIconDirectory('fa', storage_path('app/fontawesome'));
}
}
namespace App\Providers;
use Orchid\Icons\IconFinder;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
public function boot(IconFinder $iconFinder): void
{
$iconFinder
->registerIconDirectory('fa', storage_path('app/fontawesome'))
->setSize('54px', '54px');
}
}
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Orchid\Icons\IconFinder;
class ExampleMiddleware
{
public function __construct(
private IconFinder $iconFinder
) {}
/**
* Handle an incoming request.
*/
public function handle(Request $request, Closure $next): mixed
{
$this->iconFinder->setSize('54px', '54px');
return $next($request);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.