Download the PHP package mariojgt/builder without Composer
On this page you can find all versions of the php package mariojgt/builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mariojgt/builder
More information about mariojgt/builder
Files in mariojgt/builder
Package builder
Short Description Laravel Crud builder with dynamic tables and controller made in vue js
License MIT
Informations about the package builder
Laravel Builder
A powerful Laravel package that streamlines CRUD operations with a dynamic form builder and robust API integration. Build complex admin interfaces in minutes.
Features
- Dynamic Form Builder with multiple field types
- Built-in Laravel API integration with automatic relationship detection
- Advanced Conditional Styling for dynamic visual feedback
- Row-Level Conditional Styling for entire table rows
- Interactive Links with customizable styling
- Advanced Filtering with date ranges and custom filters
- Beautiful UI with Tailwind & DaisyUI
- Responsive Design with SPA experience
Installation
Quick Start
1. Setup Routes
2. Basic Controller
3. Vue Component
🔗 Interactive Links
Add clickable links to any field with customizable styling.
Basic Links
Link Styling Options
Available Link Styles
Style | Description | Example Classes |
---|---|---|
'default' |
Standard link with hover underline | text-primary hover:underline |
'button' |
Button outline style | btn btn-sm btn-outline |
'button-primary' |
Primary button style | btn btn-sm btn-primary |
'button-secondary' |
Secondary button style | btn btn-sm btn-secondary |
'badge' |
Badge/pill style | badge badge-primary |
'underline' |
Always underlined | underline text-primary |
'link' |
DaisyUI link class | link link-primary |
'none' |
No styling, just opacity on hover | hover:opacity-80 |
'custom' |
Use custom CSS classes | Your custom classes |
Real-World Link Examples
Dynamic Link Classes
You can also pass CSS classes directly as the style:
🎨 Conditional Styling
Apply dynamic styling based on field values for instant visual feedback.
Simple Conditional Styling
Advanced Conditional Styling
Preset Styling Methods
Available Operators
- Equality:
equals
,not_equals
- Comparison:
greater_than
,greater_than_equal
,less_than
,less_than_equal
- Range:
between
(with min/max values) - String:
contains
,starts_with
,ends_with
- Existence:
exists
,not_exists
🎯 Row-Level Conditional Styling
Style entire table rows based on data conditions.
Basic Row Styling
Row Styling Examples
🔍 Advanced Filtering
Comprehensive filtering with various field types.
Filter Types
- Text Filters: Contains, exact match, starts with
- Date Range Filters: From/To with quick presets (Today, 7 days, 30 days, 90 days)
- Boolean Filters: True/False dropdown
- Select Filters: Dropdown with predefined options
- Number Filters: Numeric value filtering
- Model Search: Searchable dropdown with related models
🔗 Relationship Support
Builder automatically detects and loads relationships from field keys.
Basic Relationships
Fallback Relationships
📋 Field Types
Supported field types:
TEXT
- Text inputEMAIL
- Email inputPASSWORD
- Password inputDATE
- Date pickerTIMESTAMP
- Datetime pickerSELECT
- Dropdown selectBOOLEAN
- Toggle switchMEDIA
- Media uploadEDITOR
- Rich text editorNUMBER
- Number inputMODEL_SEARCH
- Model relationship searchPIVOT_MODEL
- Many-to-many relationshipCHIPS
- Tags/chips inputICON
- Icon selector
🎬 Complete Example
🎯 Best Practices
When to Use Links
✅ Good for:
- External resources (NVD, vendor sites)
- Related records (view details, edit)
- Documentation links
- Quick actions
❌ Avoid for:
- Long descriptive text
- Non-actionable content
- Too many links in one table
When to Use Styling
✅ Good for:
- Status indicators
- Priority levels
- Severity scores
- Boolean values
- Progress indicators
❌ Avoid for:
- Names and titles
- Long descriptions
- Generic text content
Performance Tips
- Use links and styling where they add real value
- Test with real data to ensure proper functionality
- Don't overwhelm users with too many colors/links
- Use preset methods for common patterns
- Optimize model relationships with proper indexing
🛠️ Node Dependencies
⚙️ Vite Configuration
🔧 Troubleshooting
Links Not Working
- Ensure backend provides
{field}_link
data - Check link URLs are properly formatted
- Verify target (
_blank
vs_self
) is correct
Styling Not Applied
- Ensure CSS classes are available in your build
- Check that values match exactly (case-sensitive)
- Use browser dev tools to inspect applied classes
Relationships Not Loading
- Verify relationship exists in your model
- Check relationship name matches field key exactly
- Use dot notation for nested relationships
📄 License
MIT License - feel free to use in your projects!
🌟 Support
If this package helped you, please give it a star on GitHub!