This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// log with error_log function | |
if( !function_exists('log_it') ){ | |
function log_it() { | |
foreach( func_get_args() as $message ) | |
if( is_array( $message ) || is_object( $message ) ) | |
error_log( print_r( $message, true ) ); | |
else | |
error_log( $message ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Developer : MahdiY | |
* Web Site : MahdiY.IR | |
* E-Mail : M@hdiY.IR | |
*/ | |
namespace App\Http\Middleware; | |
use Closure; |
NewerOlder