1. Go to this page and download the library: Download darkghosthunter/larafind 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/ */
darkghosthunter / larafind example snippets
use DarkGhostHunter\Larafind\Facades\Find;
use Illuminate\Database\Eloquent\Scope;
$classes = Find::path('Scopes')->implementing(Scope::class)->get();
use DarkGhostHunter\Larafind\Facades\Find;
$classes = Find::path('Scopes')->get();
use DarkGhostHunter\Larafind\Facades\Find;
$classes = Find::basePath('app_foo/Scopes')->get();
use DarkGhostHunter\Larafind\Facades\Find;
$classes = Find::path('Scopes')->nonRecursive()->get();
use DarkGhostHunter\Larafind\Facades\Find;
$classes = Find::path('Scopes')->nonRecursive()->get()
->filter(fn($class) => str_starts_with($class->name, 'Foo'));