PHP code example of bastinald / laravel-bootstrap-components
1. Go to this page and download the library: Download bastinald/laravel-bootstrap-components 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/ */
bastinald / laravel-bootstrap-components example snippets
$collection = $this->model();
$this->setModel('name', 'Kevin');
$this->setModel(User::first());
$this->setModel([
'name' => 'Kevin',
'email' => '[email protected]',
]);
$this->addModelItem('locations');
$this->removeModelItem('locations', 3);
$this->orderModelItem('locations', 3, 'up');
$this->validateModel([
'name' => [']);
console
php artisan vendor:publish --tag=laravel-bootstrap-components:views