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 | |
/** | |
* Филтер за транслитерацију из српске ћирилице у латиницу | |
*/ | |
class CyrillicToLatin extends php_user_filter { | |
/** | |
* Ћирилица | |
* @var array |
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
//app/Providers/ArtisanServiceProvider.php | |
<?php | |
namespace App\Providers; | |
use App\Providers\Command\ControllerMakeCommand; | |
class ArtisanServiceProvider extends \Illuminate\Foundation\Providers\ArtisanServiceProvider | |
{ |
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
#/etc/nginx/conf.d/cache.conf | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=static_cache:128m inactive=30m max_size=500m; | |
server { | |
server_name content.site.domain; | |
listen IP:PORT; | |
root /var/www/content; |
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
//В phpdoc контроллера указать @url | |
gulp.task('urlfind', function () { | |
return gulp.src('modules/*.class.php') | |
.pipe(find(/@url.(.+)+/g)) | |
.pipe(replace('@url ', '\r\n')) | |
.pipe(concat('urls.txt', {newLine: ''})) | |
.pipe(replace('\r\n\r\n', '')) | |
.pipe(replace(',', '')) | |
.pipe(gulp.dest('')); |
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 | |
namespace App\Providers; | |
use App\Monolog\Handler\TelegramHandler; | |
use Illuminate\Support\ServiceProvider; | |
use Monolog\Logger; | |
class TelegramExceptionsProvider extends ServiceProvider | |
{ |