This file contains hidden or 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/Http/Middleware/SmartRateLimit.php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Support\Facades\RateLimiter; | |
| class SmartRateLimit | |
| { | |
| public function handle($request, Closure $next) |
This file contains hidden or 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
| <!-- resources/views/components/copy.blade.php --> | |
| <button | |
| onclick="navigator.clipboard.writeText('{{ $text }}')" | |
| class="px-3 py-1 rounded bg-gray-800 text-white" | |
| > | |
| Copy | |
| </button> | |
This file contains hidden or 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/AppServiceProvider.php | |
| use Illuminate\Support\Facades\DB; | |
| use Illuminate\Support\Facades\Log; | |
| public function boot() | |
| { | |
| DB::listen(function ($query) { | |
| if ($query->time > 100) { | |
| Log::warning('Slow Query: '.$query->sql, [ |
This file contains hidden or 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/Traits/HasSlug.php | |
| namespace App\Traits; | |
| use Illuminate\Support\Str; | |
| trait HasSlug | |
| { | |
| protected static function bootHasSlug() | |
| { |
This file contains hidden or 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/helpers.php | |
| if (! function_exists('cachef')) { | |
| function cachef($key, $seconds, Closure $callback) | |
| { | |
| return Cache::remember($key, $seconds, $callback); | |
| } | |
| } | |
| // Usage |
This file contains hidden or 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/AppServiceProvider.php | |
| use Illuminate\Support\Facades\Response; | |
| public function boot() | |
| { | |
| Response::macro('success', function ($data = [], $message = 'OK', $status = 200) { | |
| return response()->json([ | |
| 'status' => 'success', | |
| 'message' => $message, |
This file contains hidden or 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
| Добро пожаловать в Виктейлс — литературное пространство, где древние мифы встречаются с современной реальностью, а границы человеческого сознания исследуются через призму мифологических архетипов. Здесь каждый текст является порталом в мир, где сон переплетается с явью, где память сталкивается с забвением, а символическое и реальное переплетаются в единый поток опыта. Каждое произведение открывает новые измерения человеческого существования, исследует природу свободы, смысл жизни и внутренние границы личности, приглашая читателя к глубокому погружению в мифологическое сознание. | |
| https://wikchenlun.site | |
| В основе Виктейлс лежит идея соединения прошлого и настоящего, Востока и Запада, традиций и эксперимента. Здесь древнегреческие архетипы оживают в современной литературе, китайская поэзия отражает ритмы поднебесной, немецкая философия исследует экзистенциальные границы, а русская проза переносит читателя в глубины внутреннего мира героя. Каждый текст — это уникальный сплав культур, эпох и литературных стилей, |
This file contains hidden or 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
| 📌 Coin Trading Project — Overview & Documentation | |
| Author: Inna Tarasyan | |
| Role: Web Developer & Crypto Enthusiast | |
| Website: https://cryptotrading.website | |
| 👋 About Me | |
| Hello! I'm a passionate web developer from Armenia, dedicated to creating tools that make crypto trading more accessible and informed. | |
| I believe in the power of real-time data and clean interfaces to help users analyze the crypto market efficiently. |