Initial commit

This commit is contained in:
hackerESQ
2024-08-01 13:53:10 -05:00
commit 1984bff865
142 changed files with 17783 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Support;
use Illuminate\Http\Request;
class Spotlight
{
public function search(Request $request)
{
// Do your search logic here
// IMPORTANT: apply any security concern here
if (!auth()->user()) {
return collect();
}
return collect([
[
'name' => 'Mary', // Any string
'description' => 'Software Engineer', // Any string
'link' => '/users/1', // Any valid route
'avatar' => 'http://...' // Any image url
]
]);
}
}