PHP code example of hehecoding / laragen-ui-kit

1. Go to this page and download the library: Download hehecoding/laragen-ui-kit 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/ */

    

hehecoding / laragen-ui-kit example snippets


return [
];

<x-laragen::button color="error" size="xs" rounded="lg">
    {{ $slot }}
</x-laragen::button>

<!-- A primary button with a custom text and a before icon -->
<x-laragen::button color="success" iconBefore="fas fa-plus">Add Item</x-laragen::button>

<!-- A disabled button with a loading spinner -->
<x-laragen::button disabled loading></x-laragen::button>

<!-- A link button with an icon -->
<x-laragen::button href="/" icon="fas fa-home"></x-laragen::button>

<!-- A text-only button -->
<x-laragen::button variant="text">Cancel</x-laragen::button>

bash
php artisan vendor:publish --tag="laragen-ui-kit-config"
bash
php artisan vendor:publish --tag="laragen-ui-kit-views"