PHP code example of bangunsoft / problem-alert

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

    

bangunsoft / problem-alert example snippets



return [

	//except save request
	'except' =>  [
  	// 'login'
 	],

 	//catch error if listed
 	'status_code' => [
		403,
		404,
		500
	],

	// who can access
	// default is web & auth
 	'middleware' => ['web', 'auth'],

 	//name of the table which visit records should save in
	'table_name' =>  'site_problems',
];
terminal
php artisan migrate
terminal
php artisan migrate --path=/vendor/bangunsoft/problem-alert/database/migrations/2023_05_30_000001_create_problems_table.php
config/problem.php
terminal
./vendor/bin/phpunit ./vendor/bangunsoft/problem-alert/tests/TestCase.php