PHP code example of midnightsuyama / laravel-kahlan4
1. Go to this page and download the library: Download midnightsuyama/laravel-kahlan4 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/ */
midnightsuyama / laravel-kahlan4 example snippets
LaravelKahlan4\Config::bootstrap($this);
// spec/User.spec.php
describe('User', function() {
it('has a name "example"', function() {
$user = factory(App\User::class)->make(['name' => 'xample']);
expect($user['name'])->toEqual('example');
});
});