PHP code example of codesleeve / guard

1. Go to this page and download the library: Download codesleeve/guard 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/ */

    

codesleeve / guard example snippets


'providers' => array(
		...
		'Codesleeve\Guard\GuardServiceProvider',
	),


   php artisan guard:watch

   php artisan config:publish codesleeve/guard

	'paths' => array(
		'app/assets',
		'app/models',
		'app/controllers',
		'app/views',
	),

	'events' => array(
		new Codesleeve\Guard\Events\LogEvent
	),