Compare commits

...

5 Commits

5 changed files with 18 additions and 5 deletions
+4
View File
@@ -1,3 +1,7 @@
<p align="center">
<img src="assets/citrus-logos/citrus-dikey-dark.svg" width="50%" alt="Citrus CMS Logo">
</p>
# Citrus CMS - Geliştirici Dokümantasyonu
## İçindekiler
+11 -1
View File
@@ -4,6 +4,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Cache;
class AppServiceProvider extends ServiceProvider
{
@@ -36,7 +38,15 @@ class AppServiceProvider extends ServiceProvider
$this->protectDocumentFolders();
Blade::directive('includeCache', function ($expression) {
return "<?php
\$view = $expression;
\$cacheKey = 'blade_cache_' . md5(\$view . request()->fullUrl());
echo Cache::remember(\$cacheKey, 3600, function() use (\$view, \$__data, \$__env) {
return view(\$view, \$__data)->render();
});
?>";
});
}
private function protectDocumentFolders()
+1 -2
View File
@@ -28,8 +28,7 @@
"maatwebsite/excel": "^3.1",
"mpdf/mpdf": "^8.2",
"phpoffice/phpspreadsheet": "^1.28",
"phpoffice/phpword": "^1.2",
"truncgil/laravel-blade-cache": "^1.7"
"phpoffice/phpword": "^1.2"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
+1 -1
View File
@@ -182,7 +182,7 @@ return [
// Maatwebsite\Excel\ExcelServiceProvider::class,
Barryvdh\Elfinder\ElfinderServiceProvider::class,
Alexusmai\LaravelFileManager\FileManagerServiceProvider::class,
Truncgil\LaravelBladeCache\CacheServiceProvider::class,
],
@@ -20,7 +20,7 @@ return new class extends Migration {
'cron_job_batch_process_count' => '10',
'cron_job_period' => '1',
'gemini_api_key' => '',
'header_color' => 'bg-primary-dark',
'header_color' => 'bg-primary-darker',
'DevExpress_Theme' => 'dx.material.orange.light.compact.css',
'pdf_template_path' => 'default',
'languages' => json_encode(['en', 'tr']),