PHP code example of brunty / laravel-behat-fixtures

1. Go to this page and download the library: Download brunty/laravel-behat-fixtures 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/ */

    

brunty / laravel-behat-fixtures example snippets




// Create users via factories
$users = factory(App\User::class, 5)->create();

// Alternatively, you can just do whatever you'd like with eloquent
$user = new \App\User(['name' => 'Matt', 'email' => '[email protected]', 'password' => bcrypt('apassword')]);
$user->save();