Table with sorting, pagination, text search.
public function index(Request $request){
$query = User::query();TanStack Query (dawniej znany jako React Query) to potężna biblioteka do zarządzania asynchronicznym stanem aplikacji (tzw. server state). Pomaga w pobieraniu (fetching), cache'owaniu, synchronizowaniu oraz aktualizowaniu danych pochodzących z serwera, eliminując potrzebę pisania skomplikowanego kodu opartego na useEffect i useState.
npm i @tanstack/vue-query
npm i @tanstack/vue-table| <?php | |
| // php artisan storage:link | |
| namespace App\Providers; | |
| use Carbon\CarbonImmutable; | |
| use Illuminate\Support\Facades\Date; | |
| use Illuminate\Support\Facades\DB; | |
| use Illuminate\Support\ServiceProvider; | |
| use Illuminate\Validation\Rules\Password; |
| <!doctype html> | |
| <html lang="pl"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>CRM Pipeline</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| margin: 0; |
| /* | |
| Download fonts here: | |
| https://fontsource.org/fonts/poppins/install | |
| unzip all font files from static directory to fonts/poppins | |
| More fonts: | |
| https://www.npmjs.com/package/@fontsource/poppins | |
| https://github.com/fontsource/font-files/tree/main/fonts/google/poppins/files | |
| */ |