Kaynağa Gözat

init version

master
azri 1 gün önce
işleme
31a5697b54
100 değiştirilmiş dosya ile 17857 ekleme ve 0 silme
  1. 18
    0
      .editorconfig
  2. 77
    0
      .env.example
  3. 11
    0
      .gitattributes
  4. 34
    0
      .gitignore
  5. 43
    0
      README.md
  6. 8
    0
      app/Http/Controllers/Controller.php
  7. 48
    0
      app/Models/User.php
  8. 28
    0
      app/Providers/AppServiceProvider.php
  9. 15
    0
      artisan
  10. 18
    0
      bootstrap/app.php
  11. 2
    0
      bootstrap/cache/.gitignore
  12. 5
    0
      bootstrap/providers.php
  13. 83
    0
      composer.json
  14. 10355
    0
      composer.lock
  15. 126
    0
      config/app.php
  16. 126
    0
      config/auth.php
  17. 113
    0
      config/cache.php
  18. 173
    0
      config/database.php
  19. 86
    0
      config/filesystems.php
  20. 132
    0
      config/logging.php
  21. 116
    0
      config/mail.php
  22. 112
    0
      config/queue.php
  23. 38
    0
      config/services.php
  24. 217
    0
      config/session.php
  25. 60
    0
      config/statamic/antlers.php
  26. 87
    0
      config/statamic/api.php
  27. 226
    0
      config/statamic/assets.php
  28. 36
    0
      config/statamic/autosave.php
  29. 160
    0
      config/statamic/cp.php
  30. 11
    0
      config/statamic/editions.php
  31. 105
    0
      config/statamic/eloquent-driver.php
  32. 57
    0
      config/statamic/forms.php
  33. 184
    0
      config/statamic/git.php
  34. 77
    0
      config/statamic/graphql.php
  35. 36
    0
      config/statamic/live_preview.php
  36. 28
    0
      config/statamic/markdown.php
  37. 69
    0
      config/statamic/oauth.php
  38. 53
    0
      config/statamic/protect.php
  39. 30
    0
      config/statamic/revisions.php
  40. 56
    0
      config/statamic/routes.php
  41. 82
    0
      config/statamic/search.php
  42. 77
    0
      config/statamic/stache.php
  43. 174
    0
      config/statamic/static_caching.php
  44. 221
    0
      config/statamic/system.php
  45. 182
    0
      config/statamic/users.php
  46. 0
    0
      content/assets/.gitkeep
  47. 2
    0
      content/assets/assets.yaml
  48. 0
    0
      content/collections/.gitkeep
  49. 5
    0
      content/collections/pages.yaml
  50. 16
    0
      content/collections/pages/home.md
  51. 0
    0
      content/globals/.gitkeep
  52. 0
    0
      content/navigation/.gitkeep
  53. 0
    0
      content/taxonomies/.gitkeep
  54. 3
    0
      content/trees/collections/pages.yaml
  55. 1
    0
      database/.gitignore
  56. 44
    0
      database/factories/UserFactory.php
  57. 49
    0
      database/migrations/0001_01_01_000000_create_users_table.php
  58. 35
    0
      database/migrations/0001_01_01_000001_create_cache_table.php
  59. 57
    0
      database/migrations/0001_01_01_000002_create_jobs_table.php
  60. 25
    0
      database/migrations/2024_03_07_100000_create_asset_containers_table.php
  61. 30
    0
      database/migrations/2024_03_07_100000_create_asset_table.php
  62. 56
    0
      database/migrations/2024_03_07_100000_create_blueprints_table.php
  63. 24
    0
      database/migrations/2024_03_07_100000_create_collections_table.php
  64. 33
    0
      database/migrations/2024_03_07_100000_create_entries_table_with_string_ids.php
  65. 23
    0
      database/migrations/2024_03_07_100000_create_fieldsets_table.php
  66. 25
    0
      database/migrations/2024_03_07_100000_create_form_submissions_table.php
  67. 24
    0
      database/migrations/2024_03_07_100000_create_forms_table.php
  68. 25
    0
      database/migrations/2024_03_07_100000_create_global_variables_table.php
  69. 24
    0
      database/migrations/2024_03_07_100000_create_globals_table.php
  70. 28
    0
      database/migrations/2024_03_07_100000_create_navigation_trees_table.php
  71. 24
    0
      database/migrations/2024_03_07_100000_create_navigations_table.php
  72. 30
    0
      database/migrations/2024_03_07_100000_create_taxonomies_table.php
  73. 28
    0
      database/migrations/2024_03_07_100000_create_terms_table.php
  74. 25
    0
      database/migrations/2024_03_07_100000_create_tokens_table.php
  75. 23
    0
      database/migrations/2024_05_15_100000_modify_form_submissions_id.php
  76. 27
    0
      database/migrations/2024_07_16_100000_create_sites_table.php
  77. 23
    0
      database/seeders/DatabaseSeeder.php
  78. 8
    0
      lang/en/validation.php
  79. 2927
    0
      package-lock.json
  80. 17
    0
      package.json
  81. 31
    0
      phpunit.xml
  82. 20
    0
      please
  83. 6
    0
      postcss.config.js
  84. 21
    0
      public/.htaccess
  85. 0
    0
      public/assets/.gitkeep
  86. 0
    0
      public/favicon.ico
  87. 17
    0
      public/index.php
  88. 2
    0
      public/robots.txt
  89. 8
    0
      resources/blueprints/assets/assets.yaml
  90. 22
    0
      resources/blueprints/default.yaml
  91. 29
    0
      resources/blueprints/user.yaml
  92. 1
    0
      resources/css/cp.css
  93. 5
    0
      resources/css/site.css
  94. 15
    0
      resources/js/components/fieldtypes/ExampleFieldtype.vue
  95. 14
    0
      resources/js/cp.js
  96. 1
    0
      resources/js/site.js
  97. 4
    0
      resources/users/groups.yaml
  98. 4
    0
      resources/users/roles.yaml
  99. 1
    0
      resources/views/default.antlers.html
  100. 0
    0
      resources/views/errors/404.antlers.html

+ 18
- 0
.editorconfig Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+root = true
2
+
3
+[*]
4
+charset = utf-8
5
+end_of_line = lf
6
+indent_size = 4
7
+indent_style = space
8
+insert_final_newline = true
9
+trim_trailing_whitespace = true
10
+
11
+[*.md]
12
+trim_trailing_whitespace = false
13
+
14
+[*.{yml,yaml}]
15
+indent_size = 2
16
+
17
+[docker-compose.yml]
18
+indent_size = 4

+ 77
- 0
.env.example Dosyayı Görüntüle

@@ -0,0 +1,77 @@
1
+APP_NAME=Statamic
2
+APP_ENV=local
3
+APP_KEY=
4
+APP_DEBUG=true
5
+APP_TIMEZONE=UTC
6
+APP_URL=http://localhost
7
+
8
+APP_LOCALE=en
9
+APP_FALLBACK_LOCALE=en
10
+APP_FAKER_LOCALE=en_US
11
+
12
+APP_MAINTENANCE_DRIVER=file
13
+# APP_MAINTENANCE_STORE=file
14
+
15
+PHP_CLI_SERVER_WORKERS=4
16
+
17
+BCRYPT_ROUNDS=12
18
+
19
+LOG_CHANNEL=stack
20
+LOG_STACK=single
21
+LOG_DEPRECATIONS_CHANNEL=null
22
+LOG_LEVEL=debug
23
+
24
+DB_CONNECTION=mysql
25
+DB_HOST=127.0.0.1
26
+DB_PORT=3306
27
+DB_DATABASE=amics2
28
+DB_USERNAME=root
29
+DB_PASSWORD=
30
+
31
+SESSION_DRIVER=file
32
+SESSION_LIFETIME=120
33
+SESSION_ENCRYPT=false
34
+SESSION_PATH=/
35
+SESSION_DOMAIN=null
36
+
37
+BROADCAST_CONNECTION=log
38
+FILESYSTEM_DISK=local
39
+QUEUE_CONNECTION=sync
40
+
41
+CACHE_STORE=file
42
+CACHE_PREFIX=
43
+
44
+MEMCACHED_HOST=127.0.0.1
45
+
46
+REDIS_CLIENT=phpredis
47
+REDIS_HOST=127.0.0.1
48
+REDIS_PASSWORD=null
49
+REDIS_PORT=6379
50
+
51
+MAIL_MAILER=log
52
+MAIL_SCHEME=null
53
+MAIL_HOST=127.0.0.1
54
+MAIL_PORT=2525
55
+MAIL_USERNAME=null
56
+MAIL_PASSWORD=null
57
+MAIL_FROM_ADDRESS="hello@example.com"
58
+MAIL_FROM_NAME="${APP_NAME}"
59
+
60
+AWS_ACCESS_KEY_ID=
61
+AWS_SECRET_ACCESS_KEY=
62
+AWS_DEFAULT_REGION=us-east-1
63
+AWS_BUCKET=
64
+AWS_USE_PATH_STYLE_ENDPOINT=false
65
+
66
+VITE_APP_NAME="${APP_NAME}"
67
+
68
+STATAMIC_LICENSE_KEY=
69
+STATAMIC_PRO_ENABLED=false
70
+STATAMIC_STACHE_WATCHER=auto
71
+STATAMIC_STATIC_CACHING_STRATEGY=null
72
+STATAMIC_REVISIONS_ENABLED=false
73
+STATAMIC_GRAPHQL_ENABLED=false
74
+STATAMIC_API_ENABLED=false
75
+STATAMIC_GIT_ENABLED=false
76
+
77
+DEBUGBAR_ENABLED=false

+ 11
- 0
.gitattributes Dosyayı Görüntüle

@@ -0,0 +1,11 @@
1
+* text=auto eol=lf
2
+
3
+*.blade.php diff=html
4
+*.css diff=css
5
+*.html diff=html
6
+*.md diff=markdown
7
+*.php diff=php
8
+
9
+/.github export-ignore
10
+CHANGELOG.md export-ignore
11
+.styleci.yml export-ignore

+ 34
- 0
.gitignore Dosyayı Görüntüle

@@ -0,0 +1,34 @@
1
+# Laravel
2
+/vendor
3
+/.phpunit.cache
4
+/public/build
5
+/public/hot
6
+/public/storage
7
+/public/vendor/statamic
8
+/storage/*.key
9
+/storage/pail
10
+.env
11
+.env.backup
12
+.env.production
13
+.phpunit.result.cache
14
+Homestead.json
15
+Homestead.yaml
16
+auth.json
17
+
18
+# Node.js
19
+/node_modules
20
+npm-debug.log*
21
+yarn-error.log*
22
+.pnpm-debug.log*
23
+
24
+# OS and Editor Files
25
+.DS_Store
26
+.idea/
27
+.vscode/
28
+.fleet/
29
+/.nova/
30
+/.zed
31
+
32
+# Other
33
+*.swp
34
+*.swo

+ 43
- 0
README.md Dosyayı Görüntüle

@@ -0,0 +1,43 @@
1
+<p align="center"><img src="https://statamic.com/assets/branding/Statamic-Logo+Wordmark-Rad.svg" width="400" alt="Statamic Logo" /></p>
2
+
3
+## About Statamic
4
+
5
+Statamic is the flat-first, Laravel + Git powered CMS designed for building beautiful, easy to manage websites.
6
+
7
+> [!NOTE]
8
+> This repository contains the code for a fresh Statamic project that is installed via the Statamic CLI tool.
9
+>
10
+> The code for the Statamic Composer package itself can be found at the [Statamic core package repository][cms-repo].
11
+
12
+
13
+## Learning Statamic
14
+
15
+Statamic has extensive [documentation][docs]. We dedicate a significant amount of time and energy every day to improving them, so if something is unclear, feel free to open issues for anything you find confusing or incomplete. We are happy to consider anything you feel will make the docs and CMS better.
16
+
17
+## Support
18
+
19
+We provide official developer support on [Statamic Pro](https://statamic.com/pricing) projects. Community-driven support is available on the [forum](https://statamic.com/forum) and in [Discord][discord].
20
+
21
+
22
+## Contributing
23
+
24
+Thank you for considering contributing to Statamic! We simply ask that you review the [contribution guide][contribution] before you open issues or send pull requests.
25
+
26
+
27
+## Code of Conduct
28
+
29
+In order to ensure that the Statamic community is welcoming to all and generally a rad place to belong, please review and abide by the [Code of Conduct](https://github.com/statamic/cms/wiki/Code-of-Conduct).
30
+
31
+
32
+## Important Links
33
+
34
+- [Statamic Main Site](https://statamic.com)
35
+- [Statamic Documentation][docs]
36
+- [Statamic Core Package Repo][cms-repo]
37
+- [Statamic Migrator](https://github.com/statamic/migrator)
38
+- [Statamic Discord][discord]
39
+
40
+[docs]: https://statamic.dev/
41
+[discord]: https://statamic.com/discord
42
+[contribution]: https://github.com/statamic/cms/blob/master/CONTRIBUTING.md
43
+[cms-repo]: https://github.com/statamic/cms

+ 8
- 0
app/Http/Controllers/Controller.php Dosyayı Görüntüle

@@ -0,0 +1,8 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers;
4
+
5
+abstract class Controller
6
+{
7
+    //
8
+}

+ 48
- 0
app/Models/User.php Dosyayı Görüntüle

@@ -0,0 +1,48 @@
1
+<?php
2
+
3
+namespace App\Models;
4
+
5
+// use Illuminate\Contracts\Auth\MustVerifyEmail;
6
+use Illuminate\Database\Eloquent\Factories\HasFactory;
7
+use Illuminate\Foundation\Auth\User as Authenticatable;
8
+use Illuminate\Notifications\Notifiable;
9
+
10
+class User extends Authenticatable
11
+{
12
+    /** @use HasFactory<\Database\Factories\UserFactory> */
13
+    use HasFactory, Notifiable;
14
+
15
+    /**
16
+     * The attributes that are mass assignable.
17
+     *
18
+     * @var list<string>
19
+     */
20
+    protected $fillable = [
21
+        'name',
22
+        'email',
23
+        'password',
24
+    ];
25
+
26
+    /**
27
+     * The attributes that should be hidden for serialization.
28
+     *
29
+     * @var list<string>
30
+     */
31
+    protected $hidden = [
32
+        'password',
33
+        'remember_token',
34
+    ];
35
+
36
+    /**
37
+     * Get the attributes that should be cast.
38
+     *
39
+     * @return array<string, string>
40
+     */
41
+    protected function casts(): array
42
+    {
43
+        return [
44
+            'email_verified_at' => 'datetime',
45
+            'password' => 'hashed',
46
+        ];
47
+    }
48
+}

+ 28
- 0
app/Providers/AppServiceProvider.php Dosyayı Görüntüle

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\ServiceProvider;
6
+use Statamic\Statamic;
7
+
8
+class AppServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * Register any application services.
12
+     */
13
+    public function register(): void
14
+    {
15
+        //
16
+    }
17
+
18
+    /**
19
+     * Bootstrap any application services.
20
+     */
21
+    public function boot(): void
22
+    {
23
+        // Statamic::vite('app', [
24
+        //     'resources/js/cp.js',
25
+        //     'resources/css/cp.css',
26
+        // ]);
27
+    }
28
+}

+ 15
- 0
artisan Dosyayı Görüntüle

@@ -0,0 +1,15 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+use Symfony\Component\Console\Input\ArgvInput;
5
+
6
+define('LARAVEL_START', microtime(true));
7
+
8
+// Register the Composer autoloader...
9
+require __DIR__.'/vendor/autoload.php';
10
+
11
+// Bootstrap Laravel and handle the command...
12
+$status = (require_once __DIR__.'/bootstrap/app.php')
13
+    ->handleCommand(new ArgvInput);
14
+
15
+exit($status);

+ 18
- 0
bootstrap/app.php Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+use Illuminate\Foundation\Application;
4
+use Illuminate\Foundation\Configuration\Exceptions;
5
+use Illuminate\Foundation\Configuration\Middleware;
6
+
7
+return Application::configure(basePath: dirname(__DIR__))
8
+    ->withRouting(
9
+        web: __DIR__.'/../routes/web.php',
10
+        commands: __DIR__.'/../routes/console.php',
11
+        health: '/up',
12
+    )
13
+    ->withMiddleware(function (Middleware $middleware) {
14
+        //
15
+    })
16
+    ->withExceptions(function (Exceptions $exceptions) {
17
+        //
18
+    })->create();

+ 2
- 0
bootstrap/cache/.gitignore Dosyayı Görüntüle

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 5
- 0
bootstrap/providers.php Dosyayı Görüntüle

@@ -0,0 +1,5 @@
1
+<?php
2
+
3
+return [
4
+    App\Providers\AppServiceProvider::class,
5
+];

+ 83
- 0
composer.json Dosyayı Görüntüle

@@ -0,0 +1,83 @@
1
+{
2
+    "$schema": "https://getcomposer.org/schema.json",
3
+    "name": "statamic/statamic",
4
+    "type": "project",
5
+    "description": "Statamic",
6
+    "keywords": [
7
+        "statamic",
8
+        "cms",
9
+        "flat file",
10
+        "laravel"
11
+    ],
12
+    "require": {
13
+        "php": "^8.2",
14
+        "laravel/framework": "^11.31",
15
+        "laravel/tinker": "^2.9",
16
+        "statamic/cms": "^5.0",
17
+        "statamic/eloquent-driver": "^4.19"
18
+    },
19
+    "require-dev": {
20
+        "barryvdh/laravel-debugbar": "^3.8.1",
21
+        "fakerphp/faker": "^1.23",
22
+        "laravel/pail": "^1.1",
23
+        "laravel/pint": "^1.13",
24
+        "laravel/sail": "^1.26",
25
+        "mockery/mockery": "^1.6",
26
+        "nunomaduro/collision": "^8.1",
27
+        "phpunit/phpunit": "^11.0.1",
28
+        "spatie/laravel-ignition": "^2.4"
29
+    },
30
+    "autoload": {
31
+        "psr-4": {
32
+            "App\\": "app/",
33
+            "Database\\Factories\\": "database/factories/",
34
+            "Database\\Seeders\\": "database/seeders/"
35
+        }
36
+    },
37
+    "autoload-dev": {
38
+        "psr-4": {
39
+            "Tests\\": "tests/"
40
+        }
41
+    },
42
+    "scripts": {
43
+        "pre-update-cmd": [
44
+            "Statamic\\Console\\Composer\\Scripts::preUpdateCmd"
45
+        ],
46
+        "post-autoload-dump": [
47
+            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
48
+            "@php artisan package:discover --ansi",
49
+            "@php artisan statamic:install --ansi"
50
+        ],
51
+        "post-root-package-install": [
52
+            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
53
+        ],
54
+        "post-create-project-cmd": [
55
+            "@php artisan key:generate --ansi",
56
+            "@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\""
57
+        ],
58
+        "post-update-cmd": [
59
+            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
60
+        ],
61
+        "dev": [
62
+            "Composer\\Config::disableProcessTimeout",
63
+            "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
64
+        ]
65
+    },
66
+    "extra": {
67
+        "laravel": {
68
+            "dont-discover": []
69
+        }
70
+    },
71
+    "config": {
72
+        "optimize-autoloader": true,
73
+        "preferred-install": "dist",
74
+        "sort-packages": true,
75
+        "allow-plugins": {
76
+            "pestphp/pest-plugin": true,
77
+            "php-http/discovery": true,
78
+            "pixelfear/composer-dist-plugin": true
79
+        }
80
+    },
81
+    "minimum-stability": "dev",
82
+    "prefer-stable": true
83
+}

+ 10355
- 0
composer.lock
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 126
- 0
config/app.php Dosyayı Görüntüle

@@ -0,0 +1,126 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Application Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This value is the name of your application, which will be used when the
11
+    | framework needs to place the application's name in a notification or
12
+    | other UI elements where an application name needs to be displayed.
13
+    |
14
+    */
15
+
16
+    'name' => env('APP_NAME', 'Statamic'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Application Environment
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | This value determines the "environment" your application is currently
24
+    | running in. This may determine how you prefer to configure various
25
+    | services the application utilizes. Set this in your ".env" file.
26
+    |
27
+    */
28
+
29
+    'env' => env('APP_ENV', 'production'),
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Application Debug Mode
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | When your application is in debug mode, detailed error messages with
37
+    | stack traces will be shown on every error that occurs within your
38
+    | application. If disabled, a simple generic error page is shown.
39
+    |
40
+    */
41
+
42
+    'debug' => (bool) env('APP_DEBUG', false),
43
+
44
+    /*
45
+    |--------------------------------------------------------------------------
46
+    | Application URL
47
+    |--------------------------------------------------------------------------
48
+    |
49
+    | This URL is used by the console to properly generate URLs when using
50
+    | the Artisan command line tool. You should set this to the root of
51
+    | the application so that it's available within Artisan commands.
52
+    |
53
+    */
54
+
55
+    'url' => env('APP_URL', 'http://localhost'),
56
+
57
+    /*
58
+    |--------------------------------------------------------------------------
59
+    | Application Timezone
60
+    |--------------------------------------------------------------------------
61
+    |
62
+    | Here you may specify the default timezone for your application, which
63
+    | will be used by the PHP date and date-time functions. The timezone
64
+    | is set to "UTC" by default as it is suitable for most use cases.
65
+    |
66
+    */
67
+
68
+    'timezone' => env('APP_TIMEZONE', 'UTC'),
69
+
70
+    /*
71
+    |--------------------------------------------------------------------------
72
+    | Application Locale Configuration
73
+    |--------------------------------------------------------------------------
74
+    |
75
+    | The application locale determines the default locale that will be used
76
+    | by Laravel's translation / localization methods. This option can be
77
+    | set to any locale for which you plan to have translation strings.
78
+    |
79
+    */
80
+
81
+    'locale' => env('APP_LOCALE', 'en'),
82
+
83
+    'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
84
+
85
+    'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
86
+
87
+    /*
88
+    |--------------------------------------------------------------------------
89
+    | Encryption Key
90
+    |--------------------------------------------------------------------------
91
+    |
92
+    | This key is utilized by Laravel's encryption services and should be set
93
+    | to a random, 32 character string to ensure that all encrypted values
94
+    | are secure. You should do this prior to deploying the application.
95
+    |
96
+    */
97
+
98
+    'cipher' => 'AES-256-CBC',
99
+
100
+    'key' => env('APP_KEY'),
101
+
102
+    'previous_keys' => [
103
+        ...array_filter(
104
+            explode(',', env('APP_PREVIOUS_KEYS', ''))
105
+        ),
106
+    ],
107
+
108
+    /*
109
+    |--------------------------------------------------------------------------
110
+    | Maintenance Mode Driver
111
+    |--------------------------------------------------------------------------
112
+    |
113
+    | These configuration options determine the driver used to determine and
114
+    | manage Laravel's "maintenance mode" status. The "cache" driver will
115
+    | allow maintenance mode to be controlled across multiple machines.
116
+    |
117
+    | Supported drivers: "file", "cache"
118
+    |
119
+    */
120
+
121
+    'maintenance' => [
122
+        'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
123
+        'store' => env('APP_MAINTENANCE_STORE', 'file'),
124
+    ],
125
+
126
+];

+ 126
- 0
config/auth.php Dosyayı Görüntüle

@@ -0,0 +1,126 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Authentication Defaults
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option defines the default authentication "guard" and password
11
+    | reset "broker" for your application. You may change these values
12
+    | as required, but they're a perfect start for most applications.
13
+    |
14
+    */
15
+
16
+    'defaults' => [
17
+        'guard' => env('AUTH_GUARD', 'web'),
18
+        'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
19
+    ],
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Authentication Guards
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Next, you may define every authentication guard for your application.
27
+    | Of course, a great default configuration has been defined for you
28
+    | which utilizes session storage plus the Eloquent user provider.
29
+    |
30
+    | All authentication guards have a user provider, which defines how the
31
+    | users are actually retrieved out of your database or other storage
32
+    | system used by the application. Typically, Eloquent is utilized.
33
+    |
34
+    | Supported: "session"
35
+    |
36
+    */
37
+
38
+    'guards' => [
39
+        'web' => [
40
+            'driver' => 'session',
41
+            'provider' => 'users',
42
+        ],
43
+    ],
44
+
45
+    /*
46
+    |--------------------------------------------------------------------------
47
+    | User Providers
48
+    |--------------------------------------------------------------------------
49
+    |
50
+    | All authentication guards have a user provider, which defines how the
51
+    | users are actually retrieved out of your database or other storage
52
+    | system used by the application. Typically, Eloquent is utilized.
53
+    |
54
+    | If you have multiple user tables or models you may configure multiple
55
+    | providers to represent the model / table. These providers may then
56
+    | be assigned to any extra authentication guards you have defined.
57
+    |
58
+    | Supported: "statamic", "database", "eloquent"
59
+    |
60
+    */
61
+
62
+    'providers' => [
63
+        'users' => [
64
+            'driver' => 'statamic',
65
+        ],
66
+
67
+        // 'users' => [
68
+        //     'driver' => 'eloquent',
69
+        //     'model' => env('AUTH_MODEL', App\Models\User::class),
70
+        // ],
71
+
72
+        // 'users' => [
73
+        //     'driver' => 'database',
74
+        //     'table' => 'users',
75
+        // ],
76
+    ],
77
+
78
+    /*
79
+    |--------------------------------------------------------------------------
80
+    | Resetting Passwords
81
+    |--------------------------------------------------------------------------
82
+    |
83
+    | These configuration options specify the behavior of Laravel's password
84
+    | reset functionality, including the table utilized for token storage
85
+    | and the user provider that is invoked to actually retrieve users.
86
+    |
87
+    | The expiry time is the number of minutes that each reset token will be
88
+    | considered valid. This security feature keeps tokens short-lived so
89
+    | they have less time to be guessed. You may change this as needed.
90
+    |
91
+    | The throttle setting is the number of seconds a user must wait before
92
+    | generating more password reset tokens. This prevents the user from
93
+    | quickly generating a very large amount of password reset tokens.
94
+    |
95
+    */
96
+
97
+    'passwords' => [
98
+        'users' => [
99
+            'provider' => 'users',
100
+            'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
101
+            'expire' => 60,
102
+            'throttle' => 60,
103
+        ],
104
+
105
+        'activations' => [
106
+            'provider' => 'users',
107
+            'table' => env('AUTH_ACTIVATION_TOKEN_TABLE', 'password_activation_tokens'),
108
+            'expire' => 4320,
109
+            'throttle' => 60,
110
+        ],
111
+    ],
112
+
113
+    /*
114
+    |--------------------------------------------------------------------------
115
+    | Password Confirmation Timeout
116
+    |--------------------------------------------------------------------------
117
+    |
118
+    | Here you may define the amount of seconds before a password confirmation
119
+    | window expires and users are asked to re-enter their password via the
120
+    | confirmation screen. By default, the timeout lasts for three hours.
121
+    |
122
+    */
123
+
124
+    'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
125
+
126
+];

+ 113
- 0
config/cache.php Dosyayı Görüntüle

@@ -0,0 +1,113 @@
1
+<?php
2
+
3
+use Illuminate\Support\Str;
4
+
5
+return [
6
+
7
+    /*
8
+    |--------------------------------------------------------------------------
9
+    | Default Cache Store
10
+    |--------------------------------------------------------------------------
11
+    |
12
+    | This option controls the default cache store that will be used by the
13
+    | framework. This connection is utilized if another isn't explicitly
14
+    | specified when running a cache operation inside the application.
15
+    |
16
+    */
17
+
18
+    'default' => env('CACHE_STORE', 'file'),
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Cache Stores
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Here you may define all of the cache "stores" for your application as
26
+    | well as their drivers. You may even define multiple stores for the
27
+    | same cache driver to group types of items stored in your caches.
28
+    |
29
+    | Supported drivers: "array", "database", "file", "memcached",
30
+    |                    "redis", "dynamodb", "octane", "null"
31
+    |
32
+    */
33
+
34
+    'stores' => [
35
+
36
+        'array' => [
37
+            'driver' => 'array',
38
+            'serialize' => false,
39
+        ],
40
+
41
+        'database' => [
42
+            'driver' => 'database',
43
+            'connection' => env('DB_CACHE_CONNECTION', null),
44
+            'table' => env('DB_CACHE_TABLE', 'cache'),
45
+            'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
46
+            'lock_table' => env('DB_CACHE_LOCK_TABLE'),
47
+        ],
48
+
49
+        'file' => [
50
+            'driver' => 'file',
51
+            'path' => storage_path('framework/cache/data'),
52
+            'lock_path' => storage_path('framework/cache/data'),
53
+        ],
54
+
55
+        'memcached' => [
56
+            'driver' => 'memcached',
57
+            'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
58
+            'sasl' => [
59
+                env('MEMCACHED_USERNAME'),
60
+                env('MEMCACHED_PASSWORD'),
61
+            ],
62
+            'options' => [
63
+                // Memcached::OPT_CONNECT_TIMEOUT => 2000,
64
+            ],
65
+            'servers' => [
66
+                [
67
+                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
68
+                    'port' => env('MEMCACHED_PORT', 11211),
69
+                    'weight' => 100,
70
+                ],
71
+            ],
72
+        ],
73
+
74
+        'redis' => [
75
+            'driver' => 'redis',
76
+            'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
77
+            'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
78
+        ],
79
+
80
+        'dynamodb' => [
81
+            'driver' => 'dynamodb',
82
+            'key' => env('AWS_ACCESS_KEY_ID'),
83
+            'secret' => env('AWS_SECRET_ACCESS_KEY'),
84
+            'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
85
+            'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
86
+            'endpoint' => env('DYNAMODB_ENDPOINT'),
87
+        ],
88
+
89
+        'octane' => [
90
+            'driver' => 'octane',
91
+        ],
92
+
93
+        'static_cache' => [
94
+            'driver' => 'file',
95
+            'path' => storage_path('statamic/static-urls-cache'),
96
+        ],
97
+
98
+    ],
99
+
100
+    /*
101
+    |--------------------------------------------------------------------------
102
+    | Cache Key Prefix
103
+    |--------------------------------------------------------------------------
104
+    |
105
+    | When utilizing the APC, database, memcached, Redis, and DynamoDB cache
106
+    | stores, there might be other applications using the same cache. For
107
+    | that reason, you may prefix every cache key to avoid collisions.
108
+    |
109
+    */
110
+
111
+    'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
112
+
113
+];

+ 173
- 0
config/database.php Dosyayı Görüntüle

@@ -0,0 +1,173 @@
1
+<?php
2
+
3
+use Illuminate\Support\Str;
4
+
5
+return [
6
+
7
+    /*
8
+    |--------------------------------------------------------------------------
9
+    | Default Database Connection Name
10
+    |--------------------------------------------------------------------------
11
+    |
12
+    | Here you may specify which of the database connections below you wish
13
+    | to use as your default connection for database operations. This is
14
+    | the connection which will be utilized unless another connection
15
+    | is explicitly specified when you execute a query / statement.
16
+    |
17
+    */
18
+
19
+    'default' => env('DB_CONNECTION', 'sqlite'),
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Database Connections
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Below are all of the database connections defined for your application.
27
+    | An example configuration is provided for each database system which
28
+    | is supported by Laravel. You're free to add / remove connections.
29
+    |
30
+    */
31
+
32
+    'connections' => [
33
+
34
+        'sqlite' => [
35
+            'driver' => 'sqlite',
36
+            'url' => env('DB_URL'),
37
+            'database' => env('DB_DATABASE', database_path('database.sqlite')),
38
+            'prefix' => '',
39
+            'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
40
+            'busy_timeout' => null,
41
+            'journal_mode' => null,
42
+            'synchronous' => null,
43
+        ],
44
+
45
+        'mysql' => [
46
+            'driver' => 'mysql',
47
+            'url' => env('DB_URL'),
48
+            'host' => env('DB_HOST', '127.0.0.1'),
49
+            'port' => env('DB_PORT', '3306'),
50
+            'database' => env('DB_DATABASE', 'laravel'),
51
+            'username' => env('DB_USERNAME', 'root'),
52
+            'password' => env('DB_PASSWORD', ''),
53
+            'unix_socket' => env('DB_SOCKET', ''),
54
+            'charset' => env('DB_CHARSET', 'utf8mb4'),
55
+            'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
56
+            'prefix' => '',
57
+            'prefix_indexes' => true,
58
+            'strict' => true,
59
+            'engine' => null,
60
+            'options' => extension_loaded('pdo_mysql') ? array_filter([
61
+                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
62
+            ]) : [],
63
+        ],
64
+
65
+        'mariadb' => [
66
+            'driver' => 'mariadb',
67
+            'url' => env('DB_URL'),
68
+            'host' => env('DB_HOST', '127.0.0.1'),
69
+            'port' => env('DB_PORT', '3306'),
70
+            'database' => env('DB_DATABASE', 'laravel'),
71
+            'username' => env('DB_USERNAME', 'root'),
72
+            'password' => env('DB_PASSWORD', ''),
73
+            'unix_socket' => env('DB_SOCKET', ''),
74
+            'charset' => env('DB_CHARSET', 'utf8mb4'),
75
+            'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
76
+            'prefix' => '',
77
+            'prefix_indexes' => true,
78
+            'strict' => true,
79
+            'engine' => null,
80
+            'options' => extension_loaded('pdo_mysql') ? array_filter([
81
+                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
82
+            ]) : [],
83
+        ],
84
+
85
+        'pgsql' => [
86
+            'driver' => 'pgsql',
87
+            'url' => env('DB_URL'),
88
+            'host' => env('DB_HOST', '127.0.0.1'),
89
+            'port' => env('DB_PORT', '5432'),
90
+            'database' => env('DB_DATABASE', 'laravel'),
91
+            'username' => env('DB_USERNAME', 'root'),
92
+            'password' => env('DB_PASSWORD', ''),
93
+            'charset' => env('DB_CHARSET', 'utf8'),
94
+            'prefix' => '',
95
+            'prefix_indexes' => true,
96
+            'search_path' => 'public',
97
+            'sslmode' => 'prefer',
98
+        ],
99
+
100
+        'sqlsrv' => [
101
+            'driver' => 'sqlsrv',
102
+            'url' => env('DB_URL'),
103
+            'host' => env('DB_HOST', 'localhost'),
104
+            'port' => env('DB_PORT', '1433'),
105
+            'database' => env('DB_DATABASE', 'laravel'),
106
+            'username' => env('DB_USERNAME', 'root'),
107
+            'password' => env('DB_PASSWORD', ''),
108
+            'charset' => env('DB_CHARSET', 'utf8'),
109
+            'prefix' => '',
110
+            'prefix_indexes' => true,
111
+            // 'encrypt' => env('DB_ENCRYPT', 'yes'),
112
+            // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
113
+        ],
114
+
115
+    ],
116
+
117
+    /*
118
+    |--------------------------------------------------------------------------
119
+    | Migration Repository Table
120
+    |--------------------------------------------------------------------------
121
+    |
122
+    | This table keeps track of all the migrations that have already run for
123
+    | your application. Using this information, we can determine which of
124
+    | the migrations on disk haven't actually been run on the database.
125
+    |
126
+    */
127
+
128
+    'migrations' => [
129
+        'table' => 'migrations',
130
+        'update_date_on_publish' => true,
131
+    ],
132
+
133
+    /*
134
+    |--------------------------------------------------------------------------
135
+    | Redis Databases
136
+    |--------------------------------------------------------------------------
137
+    |
138
+    | Redis is an open source, fast, and advanced key-value store that also
139
+    | provides a richer body of commands than a typical key-value system
140
+    | such as Memcached. You may define your connection settings here.
141
+    |
142
+    */
143
+
144
+    'redis' => [
145
+
146
+        'client' => env('REDIS_CLIENT', 'phpredis'),
147
+
148
+        'options' => [
149
+            'cluster' => env('REDIS_CLUSTER', 'redis'),
150
+            'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
151
+        ],
152
+
153
+        'default' => [
154
+            'url' => env('REDIS_URL'),
155
+            'host' => env('REDIS_HOST', '127.0.0.1'),
156
+            'username' => env('REDIS_USERNAME'),
157
+            'password' => env('REDIS_PASSWORD'),
158
+            'port' => env('REDIS_PORT', '6379'),
159
+            'database' => env('REDIS_DB', '0'),
160
+        ],
161
+
162
+        'cache' => [
163
+            'url' => env('REDIS_URL'),
164
+            'host' => env('REDIS_HOST', '127.0.0.1'),
165
+            'username' => env('REDIS_USERNAME'),
166
+            'password' => env('REDIS_PASSWORD'),
167
+            'port' => env('REDIS_PORT', '6379'),
168
+            'database' => env('REDIS_CACHE_DB', '1'),
169
+        ],
170
+
171
+    ],
172
+
173
+];

+ 86
- 0
config/filesystems.php Dosyayı Görüntüle

@@ -0,0 +1,86 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Filesystem Disk
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify the default filesystem disk that should be used
11
+    | by the framework. The "local" disk, as well as a variety of cloud
12
+    | based disks are available to your application for file storage.
13
+    |
14
+    */
15
+
16
+    'default' => env('FILESYSTEM_DISK', 'local'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Filesystem Disks
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Below you may configure as many filesystem disks as necessary, and you
24
+    | may even configure multiple disks for the same driver. Examples for
25
+    | most supported storage drivers are configured here for reference.
26
+    |
27
+    | Supported drivers: "local", "ftp", "sftp", "s3"
28
+    |
29
+    */
30
+
31
+    'disks' => [
32
+
33
+        'local' => [
34
+            'driver' => 'local',
35
+            'root' => storage_path('app/private'),
36
+            'serve' => true,
37
+            'throw' => false,
38
+        ],
39
+
40
+        'public' => [
41
+            'driver' => 'local',
42
+            'root' => storage_path('app/public'),
43
+            'url' => env('APP_URL').'/storage',
44
+            'visibility' => 'public',
45
+            'throw' => false,
46
+        ],
47
+
48
+        's3' => [
49
+            'driver' => 's3',
50
+            'key' => env('AWS_ACCESS_KEY_ID'),
51
+            'secret' => env('AWS_SECRET_ACCESS_KEY'),
52
+            'region' => env('AWS_DEFAULT_REGION'),
53
+            'bucket' => env('AWS_BUCKET'),
54
+            'url' => env('AWS_URL'),
55
+            'endpoint' => env('AWS_ENDPOINT'),
56
+            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
57
+            'throw' => false,
58
+            // 'visibility' => 'public', // https://statamic.dev/assets#visibility
59
+        ],
60
+
61
+        'assets' => [
62
+            'driver' => 'local',
63
+            'root' => public_path('assets'),
64
+            'url' => '/assets',
65
+            'visibility' => 'public',
66
+            'throw' => false,
67
+        ],
68
+
69
+    ],
70
+
71
+    /*
72
+    |--------------------------------------------------------------------------
73
+    | Symbolic Links
74
+    |--------------------------------------------------------------------------
75
+    |
76
+    | Here you may configure the symbolic links that will be created when the
77
+    | `storage:link` Artisan command is executed. The array keys should be
78
+    | the locations of the links and the values should be their targets.
79
+    |
80
+    */
81
+
82
+    'links' => [
83
+        public_path('storage') => storage_path('app/public'),
84
+    ],
85
+
86
+];

+ 132
- 0
config/logging.php Dosyayı Görüntüle

@@ -0,0 +1,132 @@
1
+<?php
2
+
3
+use Monolog\Handler\NullHandler;
4
+use Monolog\Handler\StreamHandler;
5
+use Monolog\Handler\SyslogUdpHandler;
6
+use Monolog\Processor\PsrLogMessageProcessor;
7
+
8
+return [
9
+
10
+    /*
11
+    |--------------------------------------------------------------------------
12
+    | Default Log Channel
13
+    |--------------------------------------------------------------------------
14
+    |
15
+    | This option defines the default log channel that is utilized to write
16
+    | messages to your logs. The value provided here should match one of
17
+    | the channels present in the list of "channels" configured below.
18
+    |
19
+    */
20
+
21
+    'default' => env('LOG_CHANNEL', 'stack'),
22
+
23
+    /*
24
+    |--------------------------------------------------------------------------
25
+    | Deprecations Log Channel
26
+    |--------------------------------------------------------------------------
27
+    |
28
+    | This option controls the log channel that should be used to log warnings
29
+    | regarding deprecated PHP and library features. This allows you to get
30
+    | your application ready for upcoming major versions of dependencies.
31
+    |
32
+    */
33
+
34
+    'deprecations' => [
35
+        'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
36
+        'trace' => env('LOG_DEPRECATIONS_TRACE', false),
37
+    ],
38
+
39
+    /*
40
+    |--------------------------------------------------------------------------
41
+    | Log Channels
42
+    |--------------------------------------------------------------------------
43
+    |
44
+    | Here you may configure the log channels for your application. Laravel
45
+    | utilizes the Monolog PHP logging library, which includes a variety
46
+    | of powerful log handlers and formatters that you're free to use.
47
+    |
48
+    | Available drivers: "single", "daily", "slack", "syslog",
49
+    |                    "errorlog", "monolog", "custom", "stack"
50
+    |
51
+    */
52
+
53
+    'channels' => [
54
+
55
+        'stack' => [
56
+            'driver' => 'stack',
57
+            'channels' => explode(',', env('LOG_STACK', 'single')),
58
+            'ignore_exceptions' => false,
59
+        ],
60
+
61
+        'single' => [
62
+            'driver' => 'single',
63
+            'path' => storage_path('logs/laravel.log'),
64
+            'level' => env('LOG_LEVEL', 'debug'),
65
+            'replace_placeholders' => true,
66
+        ],
67
+
68
+        'daily' => [
69
+            'driver' => 'daily',
70
+            'path' => storage_path('logs/laravel.log'),
71
+            'level' => env('LOG_LEVEL', 'debug'),
72
+            'days' => env('LOG_DAILY_DAYS', 14),
73
+            'replace_placeholders' => true,
74
+        ],
75
+
76
+        'slack' => [
77
+            'driver' => 'slack',
78
+            'url' => env('LOG_SLACK_WEBHOOK_URL'),
79
+            'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
80
+            'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
81
+            'level' => env('LOG_LEVEL', 'critical'),
82
+            'replace_placeholders' => true,
83
+        ],
84
+
85
+        'papertrail' => [
86
+            'driver' => 'monolog',
87
+            'level' => env('LOG_LEVEL', 'debug'),
88
+            'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
89
+            'handler_with' => [
90
+                'host' => env('PAPERTRAIL_URL'),
91
+                'port' => env('PAPERTRAIL_PORT'),
92
+                'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
93
+            ],
94
+            'processors' => [PsrLogMessageProcessor::class],
95
+        ],
96
+
97
+        'stderr' => [
98
+            'driver' => 'monolog',
99
+            'level' => env('LOG_LEVEL', 'debug'),
100
+            'handler' => StreamHandler::class,
101
+            'formatter' => env('LOG_STDERR_FORMATTER'),
102
+            'with' => [
103
+                'stream' => 'php://stderr',
104
+            ],
105
+            'processors' => [PsrLogMessageProcessor::class],
106
+        ],
107
+
108
+        'syslog' => [
109
+            'driver' => 'syslog',
110
+            'level' => env('LOG_LEVEL', 'debug'),
111
+            'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
112
+            'replace_placeholders' => true,
113
+        ],
114
+
115
+        'errorlog' => [
116
+            'driver' => 'errorlog',
117
+            'level' => env('LOG_LEVEL', 'debug'),
118
+            'replace_placeholders' => true,
119
+        ],
120
+
121
+        'null' => [
122
+            'driver' => 'monolog',
123
+            'handler' => NullHandler::class,
124
+        ],
125
+
126
+        'emergency' => [
127
+            'path' => storage_path('logs/laravel.log'),
128
+        ],
129
+
130
+    ],
131
+
132
+];

+ 116
- 0
config/mail.php Dosyayı Görüntüle

@@ -0,0 +1,116 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Mailer
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default mailer that is used to send all email
11
+    | messages unless another mailer is explicitly specified when sending
12
+    | the message. All additional mailers can be configured within the
13
+    | "mailers" array. Examples of each type of mailer are provided.
14
+    |
15
+    */
16
+
17
+    'default' => env('MAIL_MAILER', 'log'),
18
+
19
+    /*
20
+    |--------------------------------------------------------------------------
21
+    | Mailer Configurations
22
+    |--------------------------------------------------------------------------
23
+    |
24
+    | Here you may configure all of the mailers used by your application plus
25
+    | their respective settings. Several examples have been configured for
26
+    | you and you are free to add your own as your application requires.
27
+    |
28
+    | Laravel supports a variety of mail "transport" drivers that can be used
29
+    | when delivering an email. You may specify which one you're using for
30
+    | your mailers below. You may also add additional mailers if needed.
31
+    |
32
+    | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
33
+    |            "postmark", "resend", "log", "array",
34
+    |            "failover", "roundrobin"
35
+    |
36
+    */
37
+
38
+    'mailers' => [
39
+
40
+        'smtp' => [
41
+            'transport' => 'smtp',
42
+            'scheme' => env('MAIL_SCHEME'),
43
+            'url' => env('MAIL_URL'),
44
+            'host' => env('MAIL_HOST', '127.0.0.1'),
45
+            'port' => env('MAIL_PORT', 2525),
46
+            'username' => env('MAIL_USERNAME'),
47
+            'password' => env('MAIL_PASSWORD'),
48
+            'timeout' => null,
49
+            'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
50
+        ],
51
+
52
+        'ses' => [
53
+            'transport' => 'ses',
54
+        ],
55
+
56
+        'postmark' => [
57
+            'transport' => 'postmark',
58
+            // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
59
+            // 'client' => [
60
+            //     'timeout' => 5,
61
+            // ],
62
+        ],
63
+
64
+        'resend' => [
65
+            'transport' => 'resend',
66
+        ],
67
+
68
+        'sendmail' => [
69
+            'transport' => 'sendmail',
70
+            'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
71
+        ],
72
+
73
+        'log' => [
74
+            'transport' => 'log',
75
+            'channel' => env('MAIL_LOG_CHANNEL'),
76
+        ],
77
+
78
+        'array' => [
79
+            'transport' => 'array',
80
+        ],
81
+
82
+        'failover' => [
83
+            'transport' => 'failover',
84
+            'mailers' => [
85
+                'smtp',
86
+                'log',
87
+            ],
88
+        ],
89
+
90
+        'roundrobin' => [
91
+            'transport' => 'roundrobin',
92
+            'mailers' => [
93
+                'ses',
94
+                'postmark',
95
+            ],
96
+        ],
97
+
98
+    ],
99
+
100
+    /*
101
+    |--------------------------------------------------------------------------
102
+    | Global "From" Address
103
+    |--------------------------------------------------------------------------
104
+    |
105
+    | You may wish for all emails sent by your application to be sent from
106
+    | the same address. Here you may specify a name and address that is
107
+    | used globally for all emails that are sent by your application.
108
+    |
109
+    */
110
+
111
+    'from' => [
112
+        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
113
+        'name' => env('MAIL_FROM_NAME', 'Example'),
114
+    ],
115
+
116
+];

+ 112
- 0
config/queue.php Dosyayı Görüntüle

@@ -0,0 +1,112 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Queue Connection Name
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Laravel's queue supports a variety of backends via a single, unified
11
+    | API, giving you convenient access to each backend using identical
12
+    | syntax for each. The default queue connection is defined below.
13
+    |
14
+    */
15
+
16
+    'default' => env('QUEUE_CONNECTION', 'sync'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Queue Connections
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may configure the connection options for every queue backend
24
+    | used by your application. An example configuration is provided for
25
+    | each backend supported by Laravel. You're also free to add more.
26
+    |
27
+    | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
28
+    |
29
+    */
30
+
31
+    'connections' => [
32
+
33
+        'sync' => [
34
+            'driver' => 'sync',
35
+        ],
36
+
37
+        'database' => [
38
+            'driver' => 'database',
39
+            'connection' => env('DB_QUEUE_CONNECTION'),
40
+            'table' => env('DB_QUEUE_TABLE', 'jobs'),
41
+            'queue' => env('DB_QUEUE', 'default'),
42
+            'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
43
+            'after_commit' => false,
44
+        ],
45
+
46
+        'beanstalkd' => [
47
+            'driver' => 'beanstalkd',
48
+            'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
49
+            'queue' => env('BEANSTALKD_QUEUE', 'default'),
50
+            'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
51
+            'block_for' => 0,
52
+            'after_commit' => false,
53
+        ],
54
+
55
+        'sqs' => [
56
+            'driver' => 'sqs',
57
+            'key' => env('AWS_ACCESS_KEY_ID'),
58
+            'secret' => env('AWS_SECRET_ACCESS_KEY'),
59
+            'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
60
+            'queue' => env('SQS_QUEUE', 'default'),
61
+            'suffix' => env('SQS_SUFFIX'),
62
+            'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
63
+            'after_commit' => false,
64
+        ],
65
+
66
+        'redis' => [
67
+            'driver' => 'redis',
68
+            'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
69
+            'queue' => env('REDIS_QUEUE', 'default'),
70
+            'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
71
+            'block_for' => null,
72
+            'after_commit' => false,
73
+        ],
74
+
75
+    ],
76
+
77
+    /*
78
+    |--------------------------------------------------------------------------
79
+    | Job Batching
80
+    |--------------------------------------------------------------------------
81
+    |
82
+    | The following options configure the database and table that store job
83
+    | batching information. These options can be updated to any database
84
+    | connection and table which has been defined by your application.
85
+    |
86
+    */
87
+
88
+    'batching' => [
89
+        'database' => env('DB_CONNECTION', 'sqlite'),
90
+        'table' => 'job_batches',
91
+    ],
92
+
93
+    /*
94
+    |--------------------------------------------------------------------------
95
+    | Failed Queue Jobs
96
+    |--------------------------------------------------------------------------
97
+    |
98
+    | These options configure the behavior of failed queue job logging so you
99
+    | can control how and where failed jobs are stored. Laravel ships with
100
+    | support for storing failed jobs in a simple file or in a database.
101
+    |
102
+    | Supported drivers: "database-uuids", "dynamodb", "file", "null"
103
+    |
104
+    */
105
+
106
+    'failed' => [
107
+        'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
108
+        'database' => env('DB_CONNECTION', 'sqlite'),
109
+        'table' => 'failed_jobs',
110
+    ],
111
+
112
+];

+ 38
- 0
config/services.php Dosyayı Görüntüle

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Third Party Services
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This file is for storing the credentials for third party services such
11
+    | as Mailgun, Postmark, AWS and more. This file provides the de facto
12
+    | location for this type of information, allowing packages to have
13
+    | a conventional file to locate the various service credentials.
14
+    |
15
+    */
16
+
17
+    'postmark' => [
18
+        'token' => env('POSTMARK_TOKEN'),
19
+    ],
20
+
21
+    'ses' => [
22
+        'key' => env('AWS_ACCESS_KEY_ID'),
23
+        'secret' => env('AWS_SECRET_ACCESS_KEY'),
24
+        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
25
+    ],
26
+
27
+    'resend' => [
28
+        'key' => env('RESEND_KEY'),
29
+    ],
30
+
31
+    'slack' => [
32
+        'notifications' => [
33
+            'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
34
+            'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
35
+        ],
36
+    ],
37
+
38
+];

+ 217
- 0
config/session.php Dosyayı Görüntüle

@@ -0,0 +1,217 @@
1
+<?php
2
+
3
+use Illuminate\Support\Str;
4
+
5
+return [
6
+
7
+    /*
8
+    |--------------------------------------------------------------------------
9
+    | Default Session Driver
10
+    |--------------------------------------------------------------------------
11
+    |
12
+    | This option determines the default session driver that is utilized for
13
+    | incoming requests. Laravel supports a variety of storage options to
14
+    | persist session data. Database storage is a great default choice.
15
+    |
16
+    | Supported: "file", "cookie", "database", "apc",
17
+    |            "memcached", "redis", "dynamodb", "array"
18
+    |
19
+    */
20
+
21
+    'driver' => env('SESSION_DRIVER', 'file'),
22
+
23
+    /*
24
+    |--------------------------------------------------------------------------
25
+    | Session Lifetime
26
+    |--------------------------------------------------------------------------
27
+    |
28
+    | Here you may specify the number of minutes that you wish the session
29
+    | to be allowed to remain idle before it expires. If you want them
30
+    | to expire immediately when the browser is closed then you may
31
+    | indicate that via the expire_on_close configuration option.
32
+    |
33
+    */
34
+
35
+    'lifetime' => env('SESSION_LIFETIME', 120),
36
+
37
+    'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
38
+
39
+    /*
40
+    |--------------------------------------------------------------------------
41
+    | Session Encryption
42
+    |--------------------------------------------------------------------------
43
+    |
44
+    | This option allows you to easily specify that all of your session data
45
+    | should be encrypted before it's stored. All encryption is performed
46
+    | automatically by Laravel and you may use the session like normal.
47
+    |
48
+    */
49
+
50
+    'encrypt' => env('SESSION_ENCRYPT', false),
51
+
52
+    /*
53
+    |--------------------------------------------------------------------------
54
+    | Session File Location
55
+    |--------------------------------------------------------------------------
56
+    |
57
+    | When utilizing the "file" session driver, the session files are placed
58
+    | on disk. The default storage location is defined here; however, you
59
+    | are free to provide another location where they should be stored.
60
+    |
61
+    */
62
+
63
+    'files' => storage_path('framework/sessions'),
64
+
65
+    /*
66
+    |--------------------------------------------------------------------------
67
+    | Session Database Connection
68
+    |--------------------------------------------------------------------------
69
+    |
70
+    | When using the "database" or "redis" session drivers, you may specify a
71
+    | connection that should be used to manage these sessions. This should
72
+    | correspond to a connection in your database configuration options.
73
+    |
74
+    */
75
+
76
+    'connection' => env('SESSION_CONNECTION'),
77
+
78
+    /*
79
+    |--------------------------------------------------------------------------
80
+    | Session Database Table
81
+    |--------------------------------------------------------------------------
82
+    |
83
+    | When using the "database" session driver, you may specify the table to
84
+    | be used to store sessions. Of course, a sensible default is defined
85
+    | for you; however, you're welcome to change this to another table.
86
+    |
87
+    */
88
+
89
+    'table' => env('SESSION_TABLE', 'sessions'),
90
+
91
+    /*
92
+    |--------------------------------------------------------------------------
93
+    | Session Cache Store
94
+    |--------------------------------------------------------------------------
95
+    |
96
+    | When using one of the framework's cache driven session backends, you may
97
+    | define the cache store which should be used to store the session data
98
+    | between requests. This must match one of your defined cache stores.
99
+    |
100
+    | Affects: "apc", "dynamodb", "memcached", "redis"
101
+    |
102
+    */
103
+
104
+    'store' => env('SESSION_STORE'),
105
+
106
+    /*
107
+    |--------------------------------------------------------------------------
108
+    | Session Sweeping Lottery
109
+    |--------------------------------------------------------------------------
110
+    |
111
+    | Some session drivers must manually sweep their storage location to get
112
+    | rid of old sessions from storage. Here are the chances that it will
113
+    | happen on a given request. By default, the odds are 2 out of 100.
114
+    |
115
+    */
116
+
117
+    'lottery' => [2, 100],
118
+
119
+    /*
120
+    |--------------------------------------------------------------------------
121
+    | Session Cookie Name
122
+    |--------------------------------------------------------------------------
123
+    |
124
+    | Here you may change the name of the session cookie that is created by
125
+    | the framework. Typically, you should not need to change this value
126
+    | since doing so does not grant a meaningful security improvement.
127
+    |
128
+    */
129
+
130
+    'cookie' => env(
131
+        'SESSION_COOKIE',
132
+        Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
133
+    ),
134
+
135
+    /*
136
+    |--------------------------------------------------------------------------
137
+    | Session Cookie Path
138
+    |--------------------------------------------------------------------------
139
+    |
140
+    | The session cookie path determines the path for which the cookie will
141
+    | be regarded as available. Typically, this will be the root path of
142
+    | your application, but you're free to change this when necessary.
143
+    |
144
+    */
145
+
146
+    'path' => env('SESSION_PATH', '/'),
147
+
148
+    /*
149
+    |--------------------------------------------------------------------------
150
+    | Session Cookie Domain
151
+    |--------------------------------------------------------------------------
152
+    |
153
+    | This value determines the domain and subdomains the session cookie is
154
+    | available to. By default, the cookie will be available to the root
155
+    | domain and all subdomains. Typically, this shouldn't be changed.
156
+    |
157
+    */
158
+
159
+    'domain' => env('SESSION_DOMAIN'),
160
+
161
+    /*
162
+    |--------------------------------------------------------------------------
163
+    | HTTPS Only Cookies
164
+    |--------------------------------------------------------------------------
165
+    |
166
+    | By setting this option to true, session cookies will only be sent back
167
+    | to the server if the browser has a HTTPS connection. This will keep
168
+    | the cookie from being sent to you when it can't be done securely.
169
+    |
170
+    */
171
+
172
+    'secure' => env('SESSION_SECURE_COOKIE'),
173
+
174
+    /*
175
+    |--------------------------------------------------------------------------
176
+    | HTTP Access Only
177
+    |--------------------------------------------------------------------------
178
+    |
179
+    | Setting this value to true will prevent JavaScript from accessing the
180
+    | value of the cookie and the cookie will only be accessible through
181
+    | the HTTP protocol. It's unlikely you should disable this option.
182
+    |
183
+    */
184
+
185
+    'http_only' => env('SESSION_HTTP_ONLY', true),
186
+
187
+    /*
188
+    |--------------------------------------------------------------------------
189
+    | Same-Site Cookies
190
+    |--------------------------------------------------------------------------
191
+    |
192
+    | This option determines how your cookies behave when cross-site requests
193
+    | take place, and can be used to mitigate CSRF attacks. By default, we
194
+    | will set this value to "lax" to permit secure cross-site requests.
195
+    |
196
+    | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
197
+    |
198
+    | Supported: "lax", "strict", "none", null
199
+    |
200
+    */
201
+
202
+    'same_site' => env('SESSION_SAME_SITE', 'lax'),
203
+
204
+    /*
205
+    |--------------------------------------------------------------------------
206
+    | Partitioned Cookies
207
+    |--------------------------------------------------------------------------
208
+    |
209
+    | Setting this value to true will tie the cookie to the top-level site for
210
+    | a cross-site context. Partitioned cookies are accepted by the browser
211
+    | when flagged "secure" and the Same-Site attribute is set to "none".
212
+    |
213
+    */
214
+
215
+    'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
216
+
217
+];

+ 60
- 0
config/statamic/antlers.php Dosyayı Görüntüle

@@ -0,0 +1,60 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Debugbar
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify whether the Antlers profiler should be added
11
+    | to the Laravel Debugbar. This is incredibly useful for finding
12
+    | performance impacts within any of your Antlers templates.
13
+    |
14
+    */
15
+
16
+    'debugbar' => env('STATAMIC_ANTLERS_DEBUGBAR', true),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Guarded Variables
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Any variable pattern that appears in this list will not be allowed
24
+    | in any Antlers template, including any user-supplied values.
25
+    |
26
+    */
27
+
28
+    'guardedVariables' => [
29
+        'config.app.key',
30
+    ],
31
+
32
+    /*
33
+    |--------------------------------------------------------------------------
34
+    | Guarded Tags
35
+    |--------------------------------------------------------------------------
36
+    |
37
+    | Any tag pattern that appears in this list will not be allowed
38
+    | in any Antlers template, including any user-supplied values.
39
+    |
40
+    */
41
+
42
+    'guardedTags' => [
43
+
44
+    ],
45
+
46
+    /*
47
+    |--------------------------------------------------------------------------
48
+    | Guarded Modifiers
49
+    |--------------------------------------------------------------------------
50
+    |
51
+    | Any modifier pattern that appears in this list will not be allowed
52
+    | in any Antlers template, including any user-supplied values.
53
+    |
54
+    */
55
+
56
+    'guardedModifiers' => [
57
+
58
+    ],
59
+
60
+];

+ 87
- 0
config/statamic/api.php Dosyayı Görüntüle

@@ -0,0 +1,87 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | API
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Whether the API should be enabled, and through what route. You
11
+    | can enable or disable the whole API, and expose individual
12
+    | resources per environment, depending on your site needs.
13
+    |
14
+    | https://statamic.dev/content-api#enable-the-api
15
+    |
16
+    */
17
+
18
+    'enabled' => env('STATAMIC_API_ENABLED', false),
19
+
20
+    'resources' => [
21
+        'collections' => false,
22
+        'navs' => false,
23
+        'taxonomies' => false,
24
+        'assets' => false,
25
+        'globals' => false,
26
+        'forms' => false,
27
+        'users' => false,
28
+    ],
29
+
30
+    'route' => env('STATAMIC_API_ROUTE', 'api'),
31
+
32
+    /*
33
+    |--------------------------------------------------------------------------
34
+    | Middleware & Authentication
35
+    |--------------------------------------------------------------------------
36
+    |
37
+    | Define the middleware / middleware group that will be applied to the
38
+    | API route group. If you want to externally expose this API, here
39
+    | you can configure a middleware based authentication layer.
40
+    |
41
+    */
42
+
43
+    'middleware' => env('STATAMIC_API_MIDDLEWARE', 'api'),
44
+
45
+    /*
46
+    |--------------------------------------------------------------------------
47
+    | Pagination
48
+    |--------------------------------------------------------------------------
49
+    |
50
+    | The numbers of items to show on each paginated page.
51
+    |
52
+    */
53
+
54
+    'pagination_size' => 50,
55
+
56
+    /*
57
+    |--------------------------------------------------------------------------
58
+    | Caching
59
+    |--------------------------------------------------------------------------
60
+    |
61
+    | By default, Statamic will cache each endpoint until the specified
62
+    | expiry, or until content is changed. See the documentation for
63
+    | more details on how to customize your cache implementation.
64
+    |
65
+    | https://statamic.dev/content-api#caching
66
+    |
67
+    */
68
+
69
+    'cache' => [
70
+        'expiry' => 60,
71
+    ],
72
+
73
+    /*
74
+    |--------------------------------------------------------------------------
75
+    | Exclude Keys
76
+    |--------------------------------------------------------------------------
77
+    |
78
+    | Here you may provide an array of keys to be excluded from API responses.
79
+    | For example, you may want to hide things like edit_url, api_url, etc.
80
+    |
81
+    */
82
+
83
+    'excluded_keys' => [
84
+        //
85
+    ],
86
+
87
+];

+ 226
- 0
config/statamic/assets.php Dosyayı Görüntüle

@@ -0,0 +1,226 @@
1
+<?php
2
+
3
+return [
4
+
5
+    'image_manipulation' => [
6
+
7
+        /*
8
+        |--------------------------------------------------------------------------
9
+        | Route Prefix
10
+        |--------------------------------------------------------------------------
11
+        |
12
+        | The route prefix for serving HTTP based manipulated images through Glide.
13
+        | If using the cached option, this should be the URL of the cached path.
14
+        |
15
+        */
16
+
17
+        'route' => 'img',
18
+
19
+        /*
20
+        |--------------------------------------------------------------------------
21
+        | Require Glide security token
22
+        |--------------------------------------------------------------------------
23
+        |
24
+        | With this option enabled, you are protecting your website from mass image
25
+        | resize attacks. You will need to generate tokens using the Glide tag
26
+        | but may want to disable this while in development to tinker.
27
+        |
28
+        */
29
+
30
+        'secure' => true,
31
+
32
+        /*
33
+        |--------------------------------------------------------------------------
34
+        | Image Manipulation Driver
35
+        |--------------------------------------------------------------------------
36
+        |
37
+        | The driver that will be used under the hood for image manipulation.
38
+        | Supported: "gd" or "imagick" (if installed on your server)
39
+        |
40
+        */
41
+
42
+        'driver' => 'gd',
43
+
44
+        /*
45
+        |--------------------------------------------------------------------------
46
+        | Additional Image Extensions
47
+        |--------------------------------------------------------------------------
48
+        |
49
+        | Define any additional image file extensions you would like Statamic to
50
+        | process. You should ensure that both your server and the selected
51
+        | image manipulation driver properly supports these extensions.
52
+        |
53
+        */
54
+
55
+        'additional_extensions' => [
56
+            // 'heic',
57
+        ],
58
+
59
+        /*
60
+        |--------------------------------------------------------------------------
61
+        | Save Cached Images
62
+        |--------------------------------------------------------------------------
63
+        |
64
+        | Enabling this will make Glide save publicly accessible images. It will
65
+        | increase performance at the cost of the dynamic nature of HTTP based
66
+        | image manipulation. You will need to invalidate images manually.
67
+        |
68
+        */
69
+
70
+        'cache' => false,
71
+        'cache_path' => public_path('img'),
72
+
73
+        /*
74
+        |--------------------------------------------------------------------------
75
+        | Image Manipulation Defaults
76
+        |--------------------------------------------------------------------------
77
+        |
78
+        | You may define global defaults for all manipulation parameters, such as
79
+        | quality, format, and sharpness. These can and will be be overwritten
80
+        | on the tag parameter level as well as the preset level.
81
+        |
82
+        */
83
+
84
+        'defaults' => [
85
+            // 'quality' => 50,
86
+        ],
87
+
88
+        /*
89
+        |--------------------------------------------------------------------------
90
+        | Image Manipulation Presets
91
+        |--------------------------------------------------------------------------
92
+        |
93
+        | Rather than specifying your manipulation params in your templates with
94
+        | the glide tag, you may define them here and reference their handles.
95
+        | They may also be automatically generated when you upload assets.
96
+        | Containers can be configured to warm these caches on upload.
97
+        |
98
+        */
99
+
100
+        'presets' => [
101
+            // 'small' => ['w' => 200, 'h' => 200, 'q' => 75, 'fit' => 'crop'],
102
+        ],
103
+
104
+        /*
105
+        |--------------------------------------------------------------------------
106
+        | Generate Image Manipulation Presets on Upload
107
+        |--------------------------------------------------------------------------
108
+        |
109
+        | By default, presets will be automatically generated on upload, ensuring
110
+        | the cached images are available when they are first used. You may opt
111
+        | out of this behavior here and have the presets generated on demand.
112
+        |
113
+        */
114
+
115
+        'generate_presets_on_upload' => true,
116
+
117
+    ],
118
+
119
+    /*
120
+    |--------------------------------------------------------------------------
121
+    | Auto-Crop Assets
122
+    |--------------------------------------------------------------------------
123
+    |
124
+    | Enabling this will make Glide automatically crop assets at their focal
125
+    | point (which is the center if no focal point is defined). Otherwise,
126
+    | you will need to manually add any crop related parameters.
127
+    |
128
+    */
129
+
130
+    'auto_crop' => true,
131
+
132
+    /*
133
+    |--------------------------------------------------------------------------
134
+    | Control Panel Thumbnail Restrictions
135
+    |--------------------------------------------------------------------------
136
+    |
137
+    | Thumbnails will not be generated for any assets any larger (in either
138
+    | axis) than the values listed below. This helps prevent memory usage
139
+    | issues out of the box. You may increase or decrease as necessary.
140
+    |
141
+    */
142
+
143
+    'thumbnails' => [
144
+        'max_width' => 10000,
145
+        'max_height' => 10000,
146
+    ],
147
+
148
+    /*
149
+    |--------------------------------------------------------------------------
150
+    | File Previews with Google Docs
151
+    |--------------------------------------------------------------------------
152
+    |
153
+    | Filetypes that cannot be rendered with HTML5 can opt into the Google Docs
154
+    | Viewer. Google will get temporary access to these files so keep that in
155
+    | mind for any privacy implications: https://policies.google.com/privacy
156
+    |
157
+    */
158
+
159
+    'google_docs_viewer' => false,
160
+
161
+    /*
162
+    |--------------------------------------------------------------------------
163
+    | Cache Metadata
164
+    |--------------------------------------------------------------------------
165
+    |
166
+    | Asset metadata (filesize, dimensions, custom data, etc) will get cached
167
+    | to optimize performance, so that it will not need to be constantly
168
+    | re-evaluated from disk. You may disable this option if you are
169
+    | planning to continually modify the same asset repeatedly.
170
+    |
171
+    */
172
+
173
+    'cache_meta' => true,
174
+
175
+    /*
176
+    |--------------------------------------------------------------------------
177
+    | Focal Point Editor
178
+    |--------------------------------------------------------------------------
179
+    |
180
+    | When editing images in the Control Panel, there is an option to choose
181
+    | a focal point. When working with third-party image providers such as
182
+    | Cloudinary it can be useful to disable Statamic's built-in editor.
183
+    |
184
+    */
185
+
186
+    'focal_point_editor' => true,
187
+
188
+    /*
189
+    |--------------------------------------------------------------------------
190
+    | Enforce Lowercase Filenames
191
+    |--------------------------------------------------------------------------
192
+    |
193
+    | Control whether asset filenames will be converted to lowercase when
194
+    | uploading and renaming. This can help you avoid file conflicts
195
+    | when working in case-insensitive filesystem environments.
196
+    |
197
+    */
198
+
199
+    'lowercase' => true,
200
+
201
+    /*
202
+    |--------------------------------------------------------------------------
203
+    | Additional Uploadable Extensions
204
+    |--------------------------------------------------------------------------
205
+    |
206
+    | Statamic will only allow uploads of certain approved file extensions.
207
+    | If you need to allow more file extensions, you may add them here.
208
+    |
209
+    */
210
+
211
+    'additional_uploadable_extensions' => [],
212
+
213
+    /*
214
+    |--------------------------------------------------------------------------
215
+    | SVG Sanitization
216
+    |--------------------------------------------------------------------------
217
+    |
218
+    | Statamic will automatically sanitize SVG files when uploaded to avoid
219
+    | potential security issues. However, if you have a valid reason for
220
+    | disabling this, and you trust your users, you may do so here.
221
+    |
222
+    */
223
+
224
+    'svg_sanitization_on_upload' => true,
225
+
226
+];

+ 36
- 0
config/statamic/autosave.php Dosyayı Görüntüle

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Enable autosave
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | THIS IS A EXPERIMENTAL FEATURE. Things may go wrong.
11
+    |
12
+    | Set to true to enable autosave. You must also enable autosave
13
+    | manually in every collection in order for it to work.
14
+    |
15
+    | For example, inside `content/collections/pages.yaml`, add
16
+    | `autosave: 5000` for a 5s interval or `autosave: true`
17
+    | to use the default interval as defined below.
18
+    |
19
+    */
20
+
21
+    'enabled' => false,
22
+
23
+    /*
24
+    |--------------------------------------------------------------------------
25
+    | Default autosave interval
26
+    |--------------------------------------------------------------------------
27
+    |
28
+    | The default value may be set here and will apply to all collections.
29
+    | However, it is also possible to manually adjust the value in the
30
+    | each collection's config file. By default, this is set to 5s.
31
+    |
32
+    */
33
+
34
+    'interval' => 5000,
35
+
36
+];

+ 160
- 0
config/statamic/cp.php Dosyayı Görüntüle

@@ -0,0 +1,160 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Control Panel
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Whether the Control Panel should be enabled, and through what route.
11
+    |
12
+    */
13
+
14
+    'enabled' => env('CP_ENABLED', true),
15
+
16
+    'route' => env('CP_ROUTE', 'cp'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Authentication
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Whether the Control Panel's authentication pages should be enabled,
24
+    | and where users should be redirected in order to authenticate.
25
+    |
26
+    */
27
+
28
+    'auth' => [
29
+        'enabled' => true,
30
+        'redirect_to' => null,
31
+    ],
32
+
33
+    /*
34
+    |--------------------------------------------------------------------------
35
+    | Start Page
36
+    |--------------------------------------------------------------------------
37
+    |
38
+    | When a user logs into the Control Panel, they will be taken here.
39
+    | For example: "dashboard", "collections/pages", etc.
40
+    |
41
+    */
42
+
43
+    'start_page' => 'dashboard',
44
+
45
+    /*
46
+    |--------------------------------------------------------------------------
47
+    | Dashboard Widgets
48
+    |--------------------------------------------------------------------------
49
+    |
50
+    | Here you may define any number of dashboard widgets. You're free to
51
+    | use the same widget multiple times in different configurations.
52
+    |
53
+    */
54
+
55
+    'widgets' => [
56
+        'getting_started',
57
+    ],
58
+
59
+    /*
60
+    |--------------------------------------------------------------------------
61
+    | Date Format
62
+    |--------------------------------------------------------------------------
63
+    |
64
+    | When a date is encountered throughout the Control Panel, it will be
65
+    | rendered in the following format unless overridden in specific
66
+    | fields, and so on. Any PHP date variables are permitted.
67
+    |
68
+    | This takes precedence over the date_format in system.php.
69
+    |
70
+    | https://www.php.net/manual/en/function.date.php
71
+    |
72
+    */
73
+
74
+    'date_format' => 'Y-m-d',
75
+
76
+    /*
77
+    |--------------------------------------------------------------------------
78
+    | Pagination
79
+    |--------------------------------------------------------------------------
80
+    |
81
+    | Here you may define the default pagination size as well as the options
82
+    | the user can select on any paginated listing in the Control Panel.
83
+    |
84
+    */
85
+
86
+    'pagination_size' => 50,
87
+
88
+    'pagination_size_options' => [10, 25, 50, 100, 500],
89
+
90
+    /*
91
+    |--------------------------------------------------------------------------
92
+    | Links to Documentation
93
+    |--------------------------------------------------------------------------
94
+    |
95
+    | Show contextual links to documentation throughout the Control Panel.
96
+    |
97
+    */
98
+
99
+    'link_to_docs' => env('STATAMIC_LINK_TO_DOCS', true),
100
+
101
+    /*
102
+    |--------------------------------------------------------------------------
103
+    | Support Link
104
+    |--------------------------------------------------------------------------
105
+    |
106
+    | Set the location of the support link in the "Useful Links" header
107
+    | dropdown. Use 'false' to remove it entirely.
108
+    |
109
+    */
110
+
111
+    'support_url' => env('STATAMIC_SUPPORT_URL', 'https://statamic.com/support'),
112
+
113
+    /*
114
+    |--------------------------------------------------------------------------
115
+    | Theme
116
+    |--------------------------------------------------------------------------
117
+    |
118
+    | Optionally spice up the login and other outside-the-control-panel
119
+    | screens. You may choose between "rad" or "business" themes.
120
+    |
121
+    */
122
+
123
+    'theme' => env('STATAMIC_THEME', 'rad'),
124
+
125
+    /*
126
+    |--------------------------------------------------------------------------
127
+    | White Labeling
128
+    |--------------------------------------------------------------------------
129
+    |
130
+    | When in Pro Mode you may replace the Statamic name, logo, favicon,
131
+    | and add your own CSS to the control panel to match your
132
+    | company or client's brand.
133
+    |
134
+    */
135
+
136
+    'custom_cms_name' => env('STATAMIC_CUSTOM_CMS_NAME', 'Statamic'),
137
+
138
+    'custom_logo_url' => env('STATAMIC_CUSTOM_LOGO_URL', null),
139
+
140
+    'custom_dark_logo_url' => env('STATAMIC_CUSTOM_DARK_LOGO_URL', null),
141
+
142
+    'custom_logo_text' => env('STATAMIC_CUSTOM_LOGO_TEXT', null),
143
+
144
+    'custom_favicon_url' => env('STATAMIC_CUSTOM_FAVICON_URL', null),
145
+
146
+    'custom_css_url' => env('STATAMIC_CUSTOM_CSS_URL', null),
147
+
148
+    /*
149
+    |--------------------------------------------------------------------------
150
+    | Thumbnails
151
+    |--------------------------------------------------------------------------
152
+    |
153
+    | Here you may define additional CP asset thumbnail presets.
154
+    |
155
+    */
156
+
157
+    'thumbnail_presets' => [
158
+        // 'medium' => 800,
159
+    ],
160
+];

+ 11
- 0
config/statamic/editions.php Dosyayı Görüntüle

@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+return [
4
+
5
+    'pro' => env('STATAMIC_PRO_ENABLED', false),
6
+
7
+    'addons' => [
8
+        //
9
+    ],
10
+
11
+];

+ 105
- 0
config/statamic/eloquent-driver.php Dosyayı Görüntüle

@@ -0,0 +1,105 @@
1
+<?php
2
+
3
+return [
4
+
5
+    'connection' => env('STATAMIC_ELOQUENT_CONNECTION', ''),
6
+    'table_prefix' => env('STATAMIC_ELOQUENT_PREFIX', ''),
7
+
8
+    'asset_containers' => [
9
+        'driver' => 'eloquent',
10
+        'model' => \Statamic\Eloquent\Assets\AssetContainerModel::class,
11
+    ],
12
+
13
+    'assets' => [
14
+        'driver' => 'eloquent',
15
+        'model' => \Statamic\Eloquent\Assets\AssetModel::class,
16
+        'asset' => \Statamic\Eloquent\Assets\Asset::class,
17
+    ],
18
+
19
+    'blueprints' => [
20
+        'driver' => 'eloquent',
21
+        'model' => \Statamic\Eloquent\Fields\BlueprintModel::class,
22
+        'namespaces' => 'all',
23
+    ],
24
+
25
+    'collections' => [
26
+        'driver' => 'eloquent',
27
+        'model' => \Statamic\Eloquent\Collections\CollectionModel::class,
28
+        'update_entry_order_queue' => 'default',
29
+        'update_entry_order_connection' => 'default',
30
+    ],
31
+
32
+    'collection_trees' => [
33
+        'driver' => 'eloquent',
34
+        'model' => \Statamic\Eloquent\Structures\TreeModel::class,
35
+        'tree' => \Statamic\Eloquent\Structures\CollectionTree::class,
36
+    ],
37
+
38
+    'entries' => [
39
+        'driver' => 'eloquent',
40
+        'model' => \Statamic\Eloquent\Entries\UuidEntryModel::class,
41
+        'entry' => \Statamic\Eloquent\Entries\Entry::class,
42
+        'map_data_to_columns' => false,
43
+    ],
44
+
45
+    'fieldsets' => [
46
+        'driver' => 'eloquent',
47
+        'model' => \Statamic\Eloquent\Fields\FieldsetModel::class,
48
+    ],
49
+
50
+    'forms' => [
51
+        'driver' => 'eloquent',
52
+        'model'  => \Statamic\Eloquent\Forms\FormModel::class,
53
+    ],
54
+
55
+    'form_submissions' => [
56
+        'driver' => 'eloquent',
57
+        'model'  => \Statamic\Eloquent\Forms\SubmissionModel::class,
58
+    ],
59
+
60
+    'global_sets' => [
61
+        'driver' => 'eloquent',
62
+        'model' => \Statamic\Eloquent\Globals\GlobalSetModel::class,
63
+    ],
64
+
65
+    'global_set_variables' => [
66
+        'driver' => 'eloquent',
67
+        'model' => \Statamic\Eloquent\Globals\VariablesModel::class,
68
+    ],
69
+
70
+    'navigations' => [
71
+        'driver' => 'eloquent',
72
+        'model' => \Statamic\Eloquent\Structures\NavModel::class,
73
+    ],
74
+
75
+    'navigation_trees' => [
76
+        'driver' => 'eloquent',
77
+        'model' => \Statamic\Eloquent\Structures\TreeModel::class,
78
+        'tree' => \Statamic\Eloquent\Structures\NavTree::class,
79
+    ],
80
+
81
+    'revisions' => [
82
+        'driver' => 'file',
83
+        'model' => \Statamic\Eloquent\Revisions\RevisionModel::class,
84
+    ],
85
+
86
+    'taxonomies' => [
87
+        'driver' => 'eloquent',
88
+        'model' => \Statamic\Eloquent\Taxonomies\TaxonomyModel::class,
89
+    ],
90
+
91
+    'terms' => [
92
+        'driver' => 'eloquent',
93
+        'model' => \Statamic\Eloquent\Taxonomies\TermModel::class,
94
+    ],
95
+
96
+    'tokens' => [
97
+        'driver' => 'eloquent',
98
+        'model' => \Statamic\Eloquent\Tokens\TokenModel::class,
99
+    ],
100
+
101
+    'sites' => [
102
+        'driver' => 'eloquent',
103
+        'model' => \Statamic\Eloquent\Sites\SiteModel::class,
104
+    ],
105
+];

+ 57
- 0
config/statamic/forms.php Dosyayı Görüntüle

@@ -0,0 +1,57 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Forms Path
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Where your form YAML files are stored.
11
+    |
12
+    */
13
+
14
+    'forms' => resource_path('forms'),
15
+
16
+    /*
17
+    |--------------------------------------------------------------------------
18
+    | Email View Folder
19
+    |--------------------------------------------------------------------------
20
+    |
21
+    | The folder under resources/views where your email templates are found.
22
+    |
23
+    */
24
+
25
+    'email_view_folder' => null,
26
+
27
+    /*
28
+    |--------------------------------------------------------------------------
29
+    | Send Email Job
30
+    |--------------------------------------------------------------------------
31
+    |
32
+    | The class name of the job that will be used to send an email.
33
+    |
34
+    */
35
+
36
+    'send_email_job' => \Statamic\Forms\SendEmail::class,
37
+
38
+    /*
39
+    |--------------------------------------------------------------------------
40
+    | Exporters
41
+    |--------------------------------------------------------------------------
42
+    |
43
+    | Here you may define all the available form submission exporters.
44
+    | You may customize the options within each exporter's array.
45
+    |
46
+    */
47
+
48
+    'exporters' => [
49
+        'csv' => [
50
+            'class' => Statamic\Forms\Exporters\CsvExporter::class,
51
+        ],
52
+        'json' => [
53
+            'class' => Statamic\Forms\Exporters\JsonExporter::class,
54
+        ],
55
+    ],
56
+
57
+];

+ 184
- 0
config/statamic/git.php Dosyayı Görüntüle

@@ -0,0 +1,184 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Git Integration
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Whether Statamic's git integration should be enabled. This feature
11
+    | assumes that git is already installed and accessible by your
12
+    | PHP process' server user. For more info, see the docs at:
13
+    |
14
+    | https://statamic.dev/git-automation
15
+    |
16
+    */
17
+
18
+    'enabled' => env('STATAMIC_GIT_ENABLED', false),
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Automatically Run
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | By default, commits are automatically queued when `Saved` or `Deleted`
26
+    | events are fired. If you prefer users to manually trigger commits
27
+    | using the `Git` utility interface, you may set this to `false`.
28
+    |
29
+    | https://statamic.dev/git-automation#committing-changes
30
+    |
31
+    */
32
+
33
+    'automatic' => env('STATAMIC_GIT_AUTOMATIC', true),
34
+
35
+    /*
36
+    |--------------------------------------------------------------------------
37
+    | Queue Connection
38
+    |--------------------------------------------------------------------------
39
+    |
40
+    | You may choose which queue connection should be used when dispatching
41
+    | commit jobs. Unless specified, the default connection will be used.
42
+    |
43
+    | https://statamic.dev/git-automation#queueing-commits
44
+    |
45
+    */
46
+
47
+    'queue_connection' => env('STATAMIC_GIT_QUEUE_CONNECTION'),
48
+
49
+    /*
50
+    |--------------------------------------------------------------------------
51
+    | Dispatch Delay
52
+    |--------------------------------------------------------------------------
53
+    |
54
+    | When `Saved` and `Deleted` events queue up commits, you may wish to
55
+    | set a delay time in minutes for each queued job. This can allow
56
+    | for more consolidated commits when you have multiple users
57
+    | making simultaneous content changes to your repository.
58
+    |
59
+    | Note: Not supported by default `sync` queue driver.
60
+    |
61
+    */
62
+
63
+    'dispatch_delay' => env('STATAMIC_GIT_DISPATCH_DELAY', 0),
64
+
65
+    /*
66
+    |--------------------------------------------------------------------------
67
+    | Git User
68
+    |--------------------------------------------------------------------------
69
+    |
70
+    | The git user that will be used when committing changes. By default, it
71
+    | will attempt to commit with the authenticated user's name and email
72
+    | when possible, falling back to the below user when not available.
73
+    |
74
+    | https://statamic.dev/git-automation#git-user
75
+    |
76
+    */
77
+
78
+    'use_authenticated' => true,
79
+
80
+    'user' => [
81
+        'name' => env('STATAMIC_GIT_USER_NAME', 'Spock'),
82
+        'email' => env('STATAMIC_GIT_USER_EMAIL', 'spock@example.com'),
83
+    ],
84
+
85
+    /*
86
+    |--------------------------------------------------------------------------
87
+    | Tracked Paths
88
+    |--------------------------------------------------------------------------
89
+    |
90
+    | Define the tracked paths to be considered when staging changes. Default
91
+    | stache and file locations are already set up for you, but feel free
92
+    | to modify these paths to suit your storage config. Referencing
93
+    | absolute paths to external repos is also completely valid.
94
+    |
95
+    */
96
+
97
+    'paths' => [
98
+        base_path('content'),
99
+        base_path('users'),
100
+        resource_path('blueprints'),
101
+        resource_path('fieldsets'),
102
+        resource_path('forms'),
103
+        resource_path('users'),
104
+        resource_path('preferences.yaml'),
105
+        resource_path('sites.yaml'),
106
+        storage_path('forms'),
107
+        public_path('assets'),
108
+    ],
109
+
110
+    /*
111
+    |--------------------------------------------------------------------------
112
+    | Git Binary
113
+    |--------------------------------------------------------------------------
114
+    |
115
+    | By default, Statamic will try to use the "git" command, but you can set
116
+    | an absolute path to the git binary if necessary for your environment.
117
+    |
118
+    */
119
+
120
+    'binary' => env('STATAMIC_GIT_BINARY', 'git'),
121
+
122
+    /*
123
+    |--------------------------------------------------------------------------
124
+    | Commands
125
+    |--------------------------------------------------------------------------
126
+    |
127
+    | Define a list commands to be run when Statamic is ready to `git add`
128
+    | and `git commit` your changes. These commands will be run once
129
+    | per repo, attempting to consolidate commits where possible.
130
+    |
131
+    | https://statamic.dev/git-automation#customizing-commits
132
+    |
133
+    */
134
+
135
+    'commands' => [
136
+        '{{ git }} add {{ paths }}',
137
+        '{{ git }} -c "user.name={{ name }}" -c "user.email={{ email }}" commit -m "{{ message }}"',
138
+    ],
139
+
140
+    /*
141
+    |--------------------------------------------------------------------------
142
+    | Push
143
+    |--------------------------------------------------------------------------
144
+    |
145
+    | Determine whether `git push` should be run after the commands above
146
+    | have finished. This is disabled by default, but can be enabled
147
+    | globally, or per environment using the provided variable.
148
+    |
149
+    | https://statamic.dev/git-automation#pushing-changes
150
+    |
151
+    */
152
+
153
+    'push' => env('STATAMIC_GIT_PUSH', false),
154
+
155
+    /*
156
+    |--------------------------------------------------------------------------
157
+    | Ignored Events
158
+    |--------------------------------------------------------------------------
159
+    |
160
+    | Statamic will listen on all `Saved` and `Deleted` events, as well
161
+    | as any events registered by installed addons. If you wish to
162
+    | ignore any specific events, you may reference them here.
163
+    |
164
+    */
165
+
166
+    'ignored_events' => [
167
+        // \Statamic\Events\UserSaved::class,
168
+        // \Statamic\Events\UserDeleted::class,
169
+    ],
170
+
171
+    /*
172
+    |--------------------------------------------------------------------------
173
+    | Locale
174
+    |--------------------------------------------------------------------------
175
+    |
176
+    | The locale to be used when translating commit messages, etc. By
177
+    | default, the authenticated user's locale will be used, but
178
+    | feel free to override this using the provided variable.
179
+    |
180
+    */
181
+
182
+    'locale' => env('STATAMIC_GIT_LOCALE', null),
183
+
184
+];

+ 77
- 0
config/statamic/graphql.php Dosyayı Görüntüle

@@ -0,0 +1,77 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | GraphQL
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may enable the GraphQL API, and select which resources
11
+    | are available to be queried, depending on your site's needs.
12
+    |
13
+    | https://statamic.dev/graphql
14
+    |
15
+    */
16
+
17
+    'enabled' => env('STATAMIC_GRAPHQL_ENABLED', false),
18
+
19
+    'resources' => [
20
+        'collections' => false,
21
+        'navs' => false,
22
+        'taxonomies' => false,
23
+        'assets' => false,
24
+        'globals' => false,
25
+        'forms' => false,
26
+        'sites' => false,
27
+        'users' => false,
28
+    ],
29
+
30
+    /*
31
+    |--------------------------------------------------------------------------
32
+    | Queries
33
+    |--------------------------------------------------------------------------
34
+    |
35
+    | Here you may list queries to be added to the Statamic schema.
36
+    |
37
+    | https://statamic.dev/graphql#custom-queries
38
+    |
39
+    */
40
+
41
+    'queries' => [
42
+        //
43
+    ],
44
+
45
+    /*
46
+    |--------------------------------------------------------------------------
47
+    | Middleware
48
+    |--------------------------------------------------------------------------
49
+    |
50
+    | Here you may list middleware to be added to the Statamic schema.
51
+    |
52
+    | https://statamic.dev/graphql#custom-middleware
53
+    |
54
+    */
55
+
56
+    'middleware' => [
57
+        //
58
+    ],
59
+
60
+    /*
61
+    |--------------------------------------------------------------------------
62
+    | Caching
63
+    |--------------------------------------------------------------------------
64
+    |
65
+    | By default, Statamic will cache each request until the specified
66
+    | expiry, or until content is changed. See the documentation for
67
+    | more details on how to customize your cache implementation.
68
+    |
69
+    | https://statamic.dev/graphql#caching
70
+    |
71
+    */
72
+
73
+    'cache' => [
74
+        'expiry' => 60,
75
+    ],
76
+
77
+];

+ 36
- 0
config/statamic/live_preview.php Dosyayı Görüntüle

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Devices
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Live Preview displays a device selector for you to preview the page
11
+    | in predefined sizes. You are free to add or edit these presets.
12
+    |
13
+    */
14
+
15
+    'devices' => [
16
+        'Laptop' => ['width' => 1440, 'height' => 900],
17
+        'Tablet' => ['width' => 1024, 'height' => 786],
18
+        'Mobile' => ['width' => 375, 'height' => 812],
19
+    ],
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Additional Inputs
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Additional fields may be added to the Live Preview header bar. You
27
+    | may define a list of Vue components to be injected. Their values
28
+    | will be added to the cascade on the front-end for you to use.
29
+    |
30
+    */
31
+
32
+    'inputs' => [
33
+        //
34
+    ],
35
+
36
+];

+ 28
- 0
config/statamic/markdown.php Dosyayı Görüntüle

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Markdown Parser Configurations
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may define the configuration arrays for each markdown parser.
11
+    | You may use the base CommonMark options as well as any extensions'
12
+    | options here. The available options are in the CommonMark docs.
13
+    |
14
+    | https://statamic.dev/extending/markdown#configuration
15
+    |
16
+    */
17
+
18
+    'configs' => [
19
+
20
+        'default' => [
21
+            // 'heading_permalink' => [
22
+            //     'symbol' => '#',
23
+            // ],
24
+        ],
25
+
26
+    ],
27
+
28
+];

+ 69
- 0
config/statamic/oauth.php Dosyayı Görüntüle

@@ -0,0 +1,69 @@
1
+<?php
2
+
3
+return [
4
+
5
+    'enabled' => env('STATAMIC_OAUTH_ENABLED', false),
6
+
7
+    'email_login_enabled' => true,
8
+
9
+    'providers' => [
10
+        // 'github',
11
+    ],
12
+
13
+    'routes' => [
14
+        'login' => 'oauth/{provider}',
15
+        'callback' => 'oauth/{provider}/callback',
16
+    ],
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Create User
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Whether or not a user account should be created upon authentication
24
+    | with an OAuth provider. If disabled, a user account will be need
25
+    | to be explicitly created ahead of time.
26
+    |
27
+    */
28
+
29
+    'create_user' => true,
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Merge User Data
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | When authenticating with an OAuth provider, the user data returned
37
+    | such as their name will be merged with the existing user account.
38
+    |
39
+    */
40
+
41
+    'merge_user_data' => true,
42
+
43
+    /*
44
+    |--------------------------------------------------------------------------
45
+    | Unauthorized Redirect
46
+    |--------------------------------------------------------------------------
47
+    |
48
+    | This controls where the user is taken after authenticating with
49
+    | an OAuth provider but their account is unauthorized. This may
50
+    | happen when the create_user option has been set to false.
51
+    |
52
+    */
53
+
54
+    'unauthorized_redirect' => null,
55
+
56
+    /*
57
+    |--------------------------------------------------------------------------
58
+    | Remember Me
59
+    |--------------------------------------------------------------------------
60
+    |
61
+    | Whether or not the "remember me" functionality should be used when
62
+    | authenticating using OAuth. When enabled, the user will remain
63
+    | logged in indefinitely, or until they manually log out.
64
+    |
65
+    */
66
+
67
+    'remember_me' => true,
68
+
69
+];

+ 53
- 0
config/statamic/protect.php Dosyayı Görüntüle

@@ -0,0 +1,53 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default (or site-wide) Scheme
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | The default scheme will be applied to every page of the site.
11
+    | By default, you probably won't want to protect anything
12
+    | at all, but you are free to select one if necessary.
13
+    |
14
+    */
15
+
16
+    'default' => null,
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Protection Schemes
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may define all of the protection schemes for your application
24
+    | as well as their drivers. You may even define multiple schemes for
25
+    | the same driver to easily protect different types of pages.
26
+    |
27
+    | Supported drivers: "ip_address", "auth", "password"
28
+    |
29
+    */
30
+
31
+    'schemes' => [
32
+
33
+        'ip_address' => [
34
+            'driver' => 'ip_address',
35
+            'allowed' => ['127.0.0.1'],
36
+        ],
37
+
38
+        'logged_in' => [
39
+            'driver' => 'auth',
40
+            'login_url' => '/login',
41
+            'append_redirect' => true,
42
+        ],
43
+
44
+        'password' => [
45
+            'driver' => 'password',
46
+            'allowed' => ['secret'],
47
+            'field' => null,
48
+            'form_url' => null,
49
+        ],
50
+
51
+    ],
52
+
53
+];

+ 30
- 0
config/statamic/revisions.php Dosyayı Görüntüle

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Revisions
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Revisions must be enabled per-collection by adding `revisions: true` to
11
+    | the collection's yaml file. Here you may disable revisions completely
12
+    | in one go. This is useful for disabling revisions per environment.
13
+    |
14
+    */
15
+
16
+    'enabled' => env('STATAMIC_REVISIONS_ENABLED', false),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Storage Path
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | This is the directory where your revision files will be located. Within
24
+    | here, they will be further organized into collection, site, ID, etc.
25
+    |
26
+    */
27
+
28
+    'path' => storage_path('statamic/revisions'),
29
+
30
+];

+ 56
- 0
config/statamic/routes.php Dosyayı Görüntüle

@@ -0,0 +1,56 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Enable Routes
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Statamic adds its own routes to the front-end of your site. You are
11
+    | free to disable this behavior.
12
+    |
13
+    | More info: https://statamic.dev/routing
14
+    |
15
+    */
16
+
17
+    'enabled' => true,
18
+
19
+    /*
20
+    |--------------------------------------------------------------------------
21
+    | Enable Route Bindings
22
+    |--------------------------------------------------------------------------
23
+    |
24
+    | Whether route bindings for Statamic repositories (entry, taxonomy,
25
+    | collections, etc) are enabled for front end routes. This may be
26
+    | useful if you want to make your own custom routes with them.
27
+    |
28
+    */
29
+
30
+    'bindings' => false,
31
+
32
+    /*
33
+    |--------------------------------------------------------------------------
34
+    | Action Route Prefix
35
+    |--------------------------------------------------------------------------
36
+    |
37
+    | Some extensions may provide routes that go through the frontend of your
38
+    | website. These URLs begin with the following prefix. We've chosen an
39
+    | unobtrusive default but you are free to select whatever you want.
40
+    |
41
+    */
42
+
43
+    'action' => '!',
44
+
45
+    /*
46
+    |--------------------------------------------------------------------------
47
+    | Middleware
48
+    |--------------------------------------------------------------------------
49
+    |
50
+    | Define the middleware that will be applied to the web route group.
51
+    |
52
+    */
53
+
54
+    'middleware' => 'web',
55
+
56
+];

+ 82
- 0
config/statamic/search.php Dosyayı Görüntüle

@@ -0,0 +1,82 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default search index
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the search index that gets queried when performing
11
+    | search functions without explicitly selecting another index.
12
+    |
13
+    */
14
+
15
+    'default' => env('STATAMIC_DEFAULT_SEARCH_INDEX', 'default'),
16
+
17
+    /*
18
+    |--------------------------------------------------------------------------
19
+    | Search Indexes
20
+    |--------------------------------------------------------------------------
21
+    |
22
+    | Here you can define all of the available search indexes.
23
+    |
24
+    */
25
+
26
+    'indexes' => [
27
+
28
+        'default' => [
29
+            'driver' => 'local',
30
+            'searchables' => 'all',
31
+            'fields' => ['title'],
32
+        ],
33
+
34
+        // 'blog' => [
35
+        //     'driver' => 'local',
36
+        //     'searchables' => 'collection:blog',
37
+        // ],
38
+
39
+    ],
40
+
41
+    /*
42
+    |--------------------------------------------------------------------------
43
+    | Driver Defaults
44
+    |--------------------------------------------------------------------------
45
+    |
46
+    | Here you can specify default configuration to be applied to all indexes
47
+    | that use the corresponding driver. For instance, if you have two
48
+    | indexes that use the "local" driver, both of them can have the
49
+    | same base configuration. You may override for each index.
50
+    |
51
+    */
52
+
53
+    'drivers' => [
54
+
55
+        'local' => [
56
+            'path' => storage_path('statamic/search'),
57
+        ],
58
+
59
+        'algolia' => [
60
+            'credentials' => [
61
+                'id' => env('ALGOLIA_APP_ID', ''),
62
+                'secret' => env('ALGOLIA_SECRET', ''),
63
+            ],
64
+        ],
65
+
66
+    ],
67
+
68
+    /*
69
+    |--------------------------------------------------------------------------
70
+    | Search Defaults
71
+    |--------------------------------------------------------------------------
72
+    |
73
+    | Here you can specify default configuration to be applied to all indexes
74
+    | regardless of the driver. You can override these per driver or per index.
75
+    |
76
+    */
77
+
78
+    'defaults' => [
79
+        'fields' => ['title'],
80
+    ],
81
+
82
+];

+ 77
- 0
config/statamic/stache.php Dosyayı Görüntüle

@@ -0,0 +1,77 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | File Watcher
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | File changes will be noticed and data will be updated accordingly.
11
+    | This can be disabled to reduce overhead, but you will need to
12
+    | either update the cache manually or use the Control Panel.
13
+    |
14
+    */
15
+
16
+    'watcher' => env('STATAMIC_STACHE_WATCHER', 'auto'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Cache Store
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may configure which Cache Store the Stache uses.
24
+    |
25
+    */
26
+
27
+    'cache_store' => null,
28
+
29
+    /*
30
+    |--------------------------------------------------------------------------
31
+    | Stores
32
+    |--------------------------------------------------------------------------
33
+    |
34
+    | Here you may configure the stores that are used inside the Stache.
35
+    |
36
+    | https://statamic.dev/stache#stores
37
+    |
38
+    */
39
+
40
+    'stores' => [
41
+        //
42
+    ],
43
+
44
+    /*
45
+    |--------------------------------------------------------------------------
46
+    | Indexes
47
+    |--------------------------------------------------------------------------
48
+    |
49
+    | Here you may define any additional indexes that will be inherited
50
+    | by each store in the Stache. You may also define indexes on a
51
+    | per-store level by adding an "indexes" key to its config.
52
+    |
53
+    */
54
+
55
+    'indexes' => [
56
+        //
57
+    ],
58
+
59
+    /*
60
+    |--------------------------------------------------------------------------
61
+    | Locking
62
+    |--------------------------------------------------------------------------
63
+    |
64
+    | In order to prevent concurrent requests from updating the Stache at the
65
+    | same time and wasting resources, it will be locked so that subsequent
66
+    | requests will have to wait until the first one has been completed.
67
+    |
68
+    | https://statamic.dev/stache#locks
69
+    |
70
+    */
71
+
72
+    'lock' => [
73
+        'enabled' => true,
74
+        'timeout' => 30,
75
+    ],
76
+
77
+];

+ 174
- 0
config/statamic/static_caching.php Dosyayı Görüntüle

@@ -0,0 +1,174 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Active Static Caching Strategy
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | To enable Static Caching, you should choose a strategy from the ones
11
+    | you have defined below. Leave this null to disable static caching.
12
+    |
13
+    */
14
+
15
+    'strategy' => env('STATAMIC_STATIC_CACHING_STRATEGY', null),
16
+
17
+    /*
18
+    |--------------------------------------------------------------------------
19
+    | Caching Strategies
20
+    |--------------------------------------------------------------------------
21
+    |
22
+    | Here you may define all of the static caching strategies for your
23
+    | application as well as their drivers.
24
+    |
25
+    | Supported drivers: "application", "file"
26
+    |
27
+    */
28
+
29
+    'strategies' => [
30
+
31
+        'half' => [
32
+            'driver' => 'application',
33
+            'expiry' => null,
34
+        ],
35
+
36
+        'full' => [
37
+            'driver' => 'file',
38
+            'path' => public_path('static'),
39
+            'lock_hold_length' => 0,
40
+            'permissions' => [
41
+                'directory' => 0755,
42
+                'file' => 0644,
43
+            ],
44
+        ],
45
+
46
+    ],
47
+
48
+    /*
49
+    |--------------------------------------------------------------------------
50
+    | Exclusions
51
+    |--------------------------------------------------------------------------
52
+    |
53
+    | Here you may define a list of URLs to be excluded from static
54
+    | caching. You may want to exclude URLs containing dynamic
55
+    | elements like contact forms, or shopping carts.
56
+    |
57
+    */
58
+
59
+    'exclude' => [
60
+
61
+        'class' => null,
62
+
63
+        'urls' => [
64
+            //
65
+        ],
66
+
67
+    ],
68
+
69
+    /*
70
+    |--------------------------------------------------------------------------
71
+    | Invalidation Rules
72
+    |--------------------------------------------------------------------------
73
+    |
74
+    | Here you may define the rules that trigger when and how content would be
75
+    | flushed from the static cache. See the documentation for more details.
76
+    | If a custom class is not defined, the default invalidator is used.
77
+    |
78
+    | https://statamic.dev/static-caching
79
+    |
80
+    */
81
+
82
+    'invalidation' => [
83
+
84
+        'class' => null,
85
+
86
+        'rules' => [
87
+            //
88
+        ],
89
+
90
+    ],
91
+
92
+    /*
93
+    |--------------------------------------------------------------------------
94
+    | Ignoring Query Strings
95
+    |--------------------------------------------------------------------------
96
+    |
97
+    | Statamic will cache pages of the same URL but with different query
98
+    | parameters separately. This is useful for pages with pagination.
99
+    | If you'd like to ignore the query strings, you may do so.
100
+    |
101
+    */
102
+
103
+    'ignore_query_strings' => false,
104
+
105
+    'allowed_query_strings' => [
106
+        //
107
+    ],
108
+
109
+    'disallowed_query_strings' => [
110
+        //
111
+    ],
112
+
113
+    /*
114
+    |--------------------------------------------------------------------------
115
+    | Nocache
116
+    |--------------------------------------------------------------------------
117
+    |
118
+    | Here you may define where the nocache data is stored.
119
+    |
120
+    | https://statamic.dev/tags/nocache#database
121
+    |
122
+    | Supported drivers: "cache", "database"
123
+    |
124
+    */
125
+
126
+    'nocache' => 'cache',
127
+
128
+    'nocache_js_position' => 'body',
129
+
130
+    /*
131
+    |--------------------------------------------------------------------------
132
+    | Replacers
133
+    |--------------------------------------------------------------------------
134
+    |
135
+    | Here you may define replacers that dynamically replace content within
136
+    | the response. Each replacer must implement the Replacer interface.
137
+    |
138
+    */
139
+
140
+    'replacers' => [
141
+        \Statamic\StaticCaching\Replacers\CsrfTokenReplacer::class,
142
+        \Statamic\StaticCaching\Replacers\NoCacheReplacer::class,
143
+    ],
144
+
145
+    /*
146
+    |--------------------------------------------------------------------------
147
+    | Warm Queue
148
+    |--------------------------------------------------------------------------
149
+    |
150
+    | Here you may define the queue name and connection
151
+    | that will be used when warming the static cache.
152
+    |
153
+    */
154
+
155
+    'warm_queue' => env('STATAMIC_STATIC_WARM_QUEUE'),
156
+
157
+    'warm_queue_connection' => env('STATAMIC_STATIC_WARM_QUEUE_CONNECTION'),
158
+
159
+    /*
160
+    |--------------------------------------------------------------------------
161
+    | Shared Error Pages
162
+    |--------------------------------------------------------------------------
163
+    |
164
+    | You may choose to share the same statically generated error page across
165
+    | all errors. For example, the first time a 404 is encountered it will
166
+    | be generated and cached, and then served for all subsequent 404s.
167
+    |
168
+    | This is only supported for half measure.
169
+    |
170
+    */
171
+
172
+    'share_errors' => false,
173
+
174
+];

+ 221
- 0
config/statamic/system.php Dosyayı Görüntüle

@@ -0,0 +1,221 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | License Key
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | The license key for the corresponding domain from your Statamic account.
11
+    | Without a key entered, your app will be considered to be in Trial Mode.
12
+    |
13
+    | https://statamic.dev/licensing#trial-mode
14
+    |
15
+    */
16
+
17
+    'license_key' => env('STATAMIC_LICENSE_KEY'),
18
+
19
+    /*
20
+    |--------------------------------------------------------------------------
21
+    | Enable Multi-site
22
+    |--------------------------------------------------------------------------
23
+    |
24
+    | Whether Statamic's multi-site functionality should be enabled. It is
25
+    | assumed Statamic Pro is also enabled. To get started, you can run
26
+    | the `php please multisite` command to update your content file
27
+    | structure, after which you can manage your sites in the CP.
28
+    |
29
+    | https://statamic.dev/multi-site
30
+    |
31
+    */
32
+
33
+    'multisite' => false,
34
+
35
+    /*
36
+    |--------------------------------------------------------------------------
37
+    | Default Addons Paths
38
+    |--------------------------------------------------------------------------
39
+    |
40
+    | When generating addons via `php please make:addon`, this path will be
41
+    | used by default. You can still specify custom repository paths in
42
+    | your composer.json, but this is the path used by the generator.
43
+    |
44
+    */
45
+
46
+    'addons_path' => base_path('addons'),
47
+
48
+    /*
49
+    |--------------------------------------------------------------------------
50
+    | Send the Powered-By Header
51
+    |--------------------------------------------------------------------------
52
+    |
53
+    | Websites like builtwith.com use the X-Powered-By header to determine
54
+    | what technologies are used on a particular site. By default, we'll
55
+    | send this header, but you are absolutely allowed to disable it.
56
+    |
57
+    */
58
+
59
+    'send_powered_by_header' => true,
60
+
61
+    /*
62
+    |--------------------------------------------------------------------------
63
+    | Date Format
64
+    |--------------------------------------------------------------------------
65
+    |
66
+    | Whenever a Carbon date is cast to a string on front-end routes, it will
67
+    | use this format. On CP routes, the format defined in cp.php is used.
68
+    | You can customize this format using PHP's date string constants.
69
+    | Setting this value to null will use Carbon's default format.
70
+    |
71
+    | https://www.php.net/manual/en/function.date.php
72
+    |
73
+    */
74
+
75
+    'date_format' => 'F jS, Y',
76
+
77
+    /*
78
+    |--------------------------------------------------------------------------
79
+    | Default Character Set
80
+    |--------------------------------------------------------------------------
81
+    |
82
+    | Statamic will use this character set when performing specific string
83
+    | encoding and decoding operations; This does not apply everywhere.
84
+    |
85
+    */
86
+
87
+    'charset' => 'UTF-8',
88
+
89
+    /*
90
+    |--------------------------------------------------------------------------
91
+    | Track Last Update
92
+    |--------------------------------------------------------------------------
93
+    |
94
+    | Statamic will automatically set an `updated_at` timestamp (along with
95
+    | `updated_by`, where applicable) when specific content is updated.
96
+    | In some situations, you may wish disable this functionality.
97
+    |
98
+    */
99
+
100
+    'track_last_update' => true,
101
+
102
+    /*
103
+    |--------------------------------------------------------------------------
104
+    | Enable Cache Tags
105
+    |--------------------------------------------------------------------------
106
+    |
107
+    | Sometimes you'll want to be able to disable the {{ cache }} tags in
108
+    | Antlers, so here is where you can do that. Otherwise, it will be
109
+    | enabled all the time.
110
+    |
111
+    */
112
+
113
+    'cache_tags_enabled' => env('STATAMIC_CACHE_TAGS_ENABLED', true),
114
+
115
+    /*
116
+    |--------------------------------------------------------------------------
117
+    | Intensive Operations
118
+    |--------------------------------------------------------------------------
119
+    |
120
+    | Sometimes Statamic requires extra resources to complete intensive
121
+    | operations. Here you may configure system resource limits for
122
+    | those rare times when we need to turn things up to eleven!
123
+    |
124
+    */
125
+
126
+    'php_memory_limit' => '-1',
127
+    'php_max_execution_time' => '0',
128
+    'ajax_timeout' => '600000',
129
+    'pcre_backtrack_limit' => '-1',
130
+
131
+    /*
132
+    |--------------------------------------------------------------------------
133
+    | Debugbar Integration
134
+    |--------------------------------------------------------------------------
135
+    |
136
+    | Statamic integrates with Laravel Debugbar to bring more detail to your
137
+    | debugging experience. Here you may adjust various default options.
138
+    |
139
+    */
140
+
141
+    'debugbar' => [
142
+        'pretty_print_variables' => true,
143
+    ],
144
+
145
+    /*
146
+    |--------------------------------------------------------------------------
147
+    | ASCII
148
+    |--------------------------------------------------------------------------
149
+    |
150
+    | During various string manipulations (e.g. slugification), Statamic will
151
+    | need to make ASCII character conversions. Here you may define whether
152
+    | or not extra characters get converted. e.g. "%" becomes "percent".
153
+    |
154
+    */
155
+
156
+    'ascii_replace_extra_symbols' => false,
157
+
158
+    /*
159
+    |--------------------------------------------------------------------------
160
+    | Update References on Change
161
+    |--------------------------------------------------------------------------
162
+    |
163
+    | With this enabled, Statamic will attempt to update references to assets
164
+    | and terms when moving, renaming, replacing, deleting, etc. This will
165
+    | be queued, but it can disabled as needed for performance reasons.
166
+    |
167
+    */
168
+
169
+    'update_references' => true,
170
+
171
+    /*
172
+    |--------------------------------------------------------------------------
173
+    | Always Augment to Query
174
+    |--------------------------------------------------------------------------
175
+    |
176
+    | By default, Statamic will augment relationship fields with max_items: 1
177
+    | to the result of a query, for example an Entry instance. Setting this
178
+    | to true will augment to the query builder instead of the result.
179
+    |
180
+    */
181
+
182
+    'always_augment_to_query' => false,
183
+
184
+    /*
185
+    |--------------------------------------------------------------------------
186
+    | Row ID handle
187
+    |--------------------------------------------------------------------------
188
+    |
189
+    | Rows in Grid, Replicator, and Bard fields will be given a unique ID using
190
+    | the "id" field. You may need your own field named "id", in which case
191
+    | you may customize the handle of the field that Statamic will use.
192
+    |
193
+    */
194
+
195
+    'row_id_handle' => 'id',
196
+
197
+    /*
198
+    |--------------------------------------------------------------------------
199
+    | Fake SQL Queries
200
+    |--------------------------------------------------------------------------
201
+    |
202
+    | Enable while using the flat-file Stache driver to show fake "SQL" query
203
+    | approximations in your database debugging tools — including Debugbar,
204
+    | Laravel Telescope, and Ray with the ray()->showQueries() helper.
205
+    |
206
+    */
207
+
208
+    'fake_sql_queries' => config('app.debug'),
209
+
210
+    /*
211
+    |--------------------------------------------------------------------------
212
+    | Layout
213
+    |--------------------------------------------------------------------------
214
+    |
215
+    | Define the default layout that will be used by views.
216
+    |
217
+    */
218
+
219
+    'layout' => env('STATAMIC_LAYOUT', 'layout'),
220
+
221
+];

+ 182
- 0
config/statamic/users.php Dosyayı Görüntüle

@@ -0,0 +1,182 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | User Repository
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Statamic uses a repository to get users, roles, groups, and their
11
+    | relationships from specified storage locations. The file driver
12
+    | gets it from disk, while the eloquent driver gets from a DB.
13
+    |
14
+    | Supported: "file", "eloquent"
15
+    |
16
+    */
17
+
18
+    'repository' => 'file',
19
+
20
+    'repositories' => [
21
+
22
+        'file' => [
23
+            'driver' => 'file',
24
+            'paths' => [
25
+                'roles' => resource_path('users/roles.yaml'),
26
+                'groups' => resource_path('users/groups.yaml'),
27
+            ],
28
+        ],
29
+
30
+        'eloquent' => [
31
+            'driver' => 'eloquent',
32
+        ],
33
+
34
+    ],
35
+
36
+    /*
37
+    |--------------------------------------------------------------------------
38
+    | Avatars
39
+    |--------------------------------------------------------------------------
40
+    |
41
+    | User avatars are initials by default, with custom options for services
42
+    | like Gravatar.com.
43
+    |
44
+    | Supported: "initials", "gravatar", or a custom class name.
45
+    |
46
+    */
47
+
48
+    'avatars' => 'initials',
49
+
50
+    /*
51
+    |--------------------------------------------------------------------------
52
+    | New User Roles
53
+    |--------------------------------------------------------------------------
54
+    |
55
+    | When registering new users through the user:register_form tag, these
56
+    | roles will automatically be applied to your newly created users.
57
+    |
58
+    */
59
+
60
+    'new_user_roles' => [
61
+        //
62
+    ],
63
+
64
+    /*
65
+    |--------------------------------------------------------------------------
66
+    | New User Groups
67
+    |--------------------------------------------------------------------------
68
+    |
69
+    | When registering new users through the user:register_form tag, these
70
+    | groups will automatically be applied to your newly created users.
71
+    |
72
+    */
73
+
74
+    'new_user_groups' => [
75
+        //
76
+    ],
77
+
78
+    /*
79
+    |--------------------------------------------------------------------------
80
+    | Registration form honeypot field
81
+    |--------------------------------------------------------------------------
82
+    |
83
+    | When registering new users through the user:register_form tag,
84
+    | specify the field to act as a honeypot for bots
85
+    |
86
+    */
87
+
88
+    'registration_form_honeypot_field' => null,
89
+
90
+    /*
91
+    |--------------------------------------------------------------------------
92
+    | User Wizard Invitation Email
93
+    |--------------------------------------------------------------------------
94
+    |
95
+    | When creating new users through the wizard in the control panel,
96
+    | you may choose whether to be able to send an invitation email.
97
+    | Setting to true will give the user the option. But setting
98
+    | it to false will disable the invitation option entirely.
99
+    |
100
+    */
101
+
102
+    'wizard_invitation' => true,
103
+
104
+    /*
105
+    |--------------------------------------------------------------------------
106
+    | Password Brokers
107
+    |--------------------------------------------------------------------------
108
+    |
109
+    | When resetting passwords, Statamic uses an appropriate password broker.
110
+    | Here you may define which broker should be used for each situation.
111
+    | You may want a longer expiry for user activations, for example.
112
+    |
113
+    */
114
+
115
+    'passwords' => [
116
+        'resets' => 'users',
117
+        'activations' => 'activations',
118
+    ],
119
+
120
+    /*
121
+    |--------------------------------------------------------------------------
122
+    | Database
123
+    |--------------------------------------------------------------------------
124
+    |
125
+    | Here you may configure the database connection and its table names.
126
+    |
127
+    */
128
+
129
+    'database' => config('database.default'),
130
+
131
+    'tables' => [
132
+        'users' => 'users',
133
+        'role_user' => 'role_user',
134
+        'roles' => false,
135
+        'group_user' => 'group_user',
136
+        'groups' => false,
137
+    ],
138
+
139
+    /*
140
+    |--------------------------------------------------------------------------
141
+    | Authentication Guards
142
+    |--------------------------------------------------------------------------
143
+    |
144
+    | By default, Statamic will use the `web` authentication guard. However,
145
+    | if you want to run Statamic alongside the default Laravel auth
146
+    | guard, you can configure that for your cp and/or frontend.
147
+    |
148
+    */
149
+
150
+    'guards' => [
151
+        'cp' => 'web',
152
+        'web' => 'web',
153
+    ],
154
+
155
+    /*
156
+    |--------------------------------------------------------------------------
157
+    | Impersonation
158
+    |--------------------------------------------------------------------------
159
+    |
160
+    | Here you can configure if impersonation is available, and what URL to
161
+    | redirect to after impersonation begins.
162
+    |
163
+    */
164
+
165
+    'impersonate' => [
166
+        'enabled' => env('STATAMIC_IMPERSONATE_ENABLED', true),
167
+        'redirect' => env('STATAMIC_IMPERSONATE_REDIRECT', null),
168
+    ],
169
+
170
+    /*
171
+    |--------------------------------------------------------------------------
172
+    | Default Sorting
173
+    |--------------------------------------------------------------------------
174
+    |
175
+    | Here you may configure the default sort behavior for user listings.
176
+    |
177
+    */
178
+
179
+    'sort_field' => 'email',
180
+    'sort_direction' => 'asc',
181
+
182
+];

+ 0
- 0
content/assets/.gitkeep Dosyayı Görüntüle


+ 2
- 0
content/assets/assets.yaml Dosyayı Görüntüle

@@ -0,0 +1,2 @@
1
+title: Assets
2
+disk: assets

+ 0
- 0
content/collections/.gitkeep Dosyayı Görüntüle


+ 5
- 0
content/collections/pages.yaml Dosyayı Görüntüle

@@ -0,0 +1,5 @@
1
+title: Pages
2
+structure:
3
+  root: true
4
+route: '{parent_uri}/{slug}'
5
+propagate: true

+ 16
- 0
content/collections/pages/home.md Dosyayı Görüntüle

@@ -0,0 +1,16 @@
1
+---
2
+title: Home
3
+id: home
4
+template: home
5
+blueprint: pages
6
+---
7
+## Welcome to your brand new Statamic site!
8
+
9
+Not sure what to do next? Here are a few ideas, but feel free to explore in your own way, in your own time.
10
+
11
+- [Jump into the Control Panel](/cp) and edit this page or begin setting up your own collections and blueprints.
12
+- [Head to the docs](https://statamic.dev) and learn how Statamic works.
13
+- [Watch some Statamic videos](https://youtube.com/statamic) on YouTube.
14
+- [Join our Discord chat](https://statamic.com/discord) and meet thousands of other Statamic developers.
15
+- [Start a discussion](https://github.com/statamic/cms/discussions) and get answers to your questions.
16
+- [Star Statamic on Github](https://github.com/statamic/cms) if you enjoy using it!

+ 0
- 0
content/globals/.gitkeep Dosyayı Görüntüle


+ 0
- 0
content/navigation/.gitkeep Dosyayı Görüntüle


+ 0
- 0
content/taxonomies/.gitkeep Dosyayı Görüntüle


+ 3
- 0
content/trees/collections/pages.yaml Dosyayı Görüntüle

@@ -0,0 +1,3 @@
1
+tree:
2
+  -
3
+    entry: home

+ 1
- 0
database/.gitignore Dosyayı Görüntüle

@@ -0,0 +1 @@
1
+*.sqlite*

+ 44
- 0
database/factories/UserFactory.php Dosyayı Görüntüle

@@ -0,0 +1,44 @@
1
+<?php
2
+
3
+namespace Database\Factories;
4
+
5
+use Illuminate\Database\Eloquent\Factories\Factory;
6
+use Illuminate\Support\Facades\Hash;
7
+use Illuminate\Support\Str;
8
+
9
+/**
10
+ * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
11
+ */
12
+class UserFactory extends Factory
13
+{
14
+    /**
15
+     * The current password being used by the factory.
16
+     */
17
+    protected static ?string $password;
18
+
19
+    /**
20
+     * Define the model's default state.
21
+     *
22
+     * @return array<string, mixed>
23
+     */
24
+    public function definition(): array
25
+    {
26
+        return [
27
+            'name' => fake()->name(),
28
+            'email' => fake()->unique()->safeEmail(),
29
+            'email_verified_at' => now(),
30
+            'password' => static::$password ??= Hash::make('password'),
31
+            'remember_token' => Str::random(10),
32
+        ];
33
+    }
34
+
35
+    /**
36
+     * Indicate that the model's email address should be unverified.
37
+     */
38
+    public function unverified(): static
39
+    {
40
+        return $this->state(fn (array $attributes) => [
41
+            'email_verified_at' => null,
42
+        ]);
43
+    }
44
+}

+ 49
- 0
database/migrations/0001_01_01_000000_create_users_table.php Dosyayı Görüntüle

@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     */
12
+    public function up(): void
13
+    {
14
+        Schema::create('users', function (Blueprint $table) {
15
+            $table->id();
16
+            $table->string('name');
17
+            $table->string('email')->unique();
18
+            $table->timestamp('email_verified_at')->nullable();
19
+            $table->string('password');
20
+            $table->rememberToken();
21
+            $table->timestamps();
22
+        });
23
+
24
+        Schema::create('password_reset_tokens', function (Blueprint $table) {
25
+            $table->string('email')->primary();
26
+            $table->string('token');
27
+            $table->timestamp('created_at')->nullable();
28
+        });
29
+
30
+        Schema::create('sessions', function (Blueprint $table) {
31
+            $table->string('id')->primary();
32
+            $table->foreignId('user_id')->nullable()->index();
33
+            $table->string('ip_address', 45)->nullable();
34
+            $table->text('user_agent')->nullable();
35
+            $table->longText('payload');
36
+            $table->integer('last_activity')->index();
37
+        });
38
+    }
39
+
40
+    /**
41
+     * Reverse the migrations.
42
+     */
43
+    public function down(): void
44
+    {
45
+        Schema::dropIfExists('users');
46
+        Schema::dropIfExists('password_reset_tokens');
47
+        Schema::dropIfExists('sessions');
48
+    }
49
+};

+ 35
- 0
database/migrations/0001_01_01_000001_create_cache_table.php Dosyayı Görüntüle

@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     */
12
+    public function up(): void
13
+    {
14
+        Schema::create('cache', function (Blueprint $table) {
15
+            $table->string('key')->primary();
16
+            $table->mediumText('value');
17
+            $table->integer('expiration');
18
+        });
19
+
20
+        Schema::create('cache_locks', function (Blueprint $table) {
21
+            $table->string('key')->primary();
22
+            $table->string('owner');
23
+            $table->integer('expiration');
24
+        });
25
+    }
26
+
27
+    /**
28
+     * Reverse the migrations.
29
+     */
30
+    public function down(): void
31
+    {
32
+        Schema::dropIfExists('cache');
33
+        Schema::dropIfExists('cache_locks');
34
+    }
35
+};

+ 57
- 0
database/migrations/0001_01_01_000002_create_jobs_table.php Dosyayı Görüntüle

@@ -0,0 +1,57 @@
1
+<?php
2
+
3
+use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5
+use Illuminate\Support\Facades\Schema;
6
+
7
+return new class extends Migration
8
+{
9
+    /**
10
+     * Run the migrations.
11
+     */
12
+    public function up(): void
13
+    {
14
+        Schema::create('jobs', function (Blueprint $table) {
15
+            $table->id();
16
+            $table->string('queue')->index();
17
+            $table->longText('payload');
18
+            $table->unsignedTinyInteger('attempts');
19
+            $table->unsignedInteger('reserved_at')->nullable();
20
+            $table->unsignedInteger('available_at');
21
+            $table->unsignedInteger('created_at');
22
+        });
23
+
24
+        Schema::create('job_batches', function (Blueprint $table) {
25
+            $table->string('id')->primary();
26
+            $table->string('name');
27
+            $table->integer('total_jobs');
28
+            $table->integer('pending_jobs');
29
+            $table->integer('failed_jobs');
30
+            $table->longText('failed_job_ids');
31
+            $table->mediumText('options')->nullable();
32
+            $table->integer('cancelled_at')->nullable();
33
+            $table->integer('created_at');
34
+            $table->integer('finished_at')->nullable();
35
+        });
36
+
37
+        Schema::create('failed_jobs', function (Blueprint $table) {
38
+            $table->id();
39
+            $table->string('uuid')->unique();
40
+            $table->text('connection');
41
+            $table->text('queue');
42
+            $table->longText('payload');
43
+            $table->longText('exception');
44
+            $table->timestamp('failed_at')->useCurrent();
45
+        });
46
+    }
47
+
48
+    /**
49
+     * Reverse the migrations.
50
+     */
51
+    public function down(): void
52
+    {
53
+        Schema::dropIfExists('jobs');
54
+        Schema::dropIfExists('job_batches');
55
+        Schema::dropIfExists('failed_jobs');
56
+    }
57
+};

+ 25
- 0
database/migrations/2024_03_07_100000_create_asset_containers_table.php Dosyayı Görüntüle

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('asset_containers'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->string('disk');
16
+            $table->jsonb('settings')->nullable();
17
+            $table->timestamps();
18
+        });
19
+    }
20
+
21
+    public function down()
22
+    {
23
+        Schema::dropIfExists($this->prefix('asset_containers'));
24
+    }
25
+};

+ 30
- 0
database/migrations/2024_03_07_100000_create_asset_table.php Dosyayı Görüntüle

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('assets_meta'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('container')->index();
14
+            $table->string('folder')->index();
15
+            $table->string('basename')->index();
16
+            $table->string('filename')->index();
17
+            $table->char('extension', 10)->index();
18
+            $table->string('path')->index();
19
+            $table->jsonb('meta')->nullable();
20
+            $table->timestamps();
21
+
22
+            $table->unique(['container', 'folder', 'basename']);
23
+        });
24
+    }
25
+
26
+    public function down()
27
+    {
28
+        Schema::dropIfExists($this->prefix('assets_meta'));
29
+    }
30
+};

+ 56
- 0
database/migrations/2024_03_07_100000_create_blueprints_table.php Dosyayı Görüntüle

@@ -0,0 +1,56 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Carbon;
5
+use Illuminate\Support\Facades\Schema;
6
+use Statamic\Eloquent\Database\BaseMigration as Migration;
7
+
8
+return new class extends Migration
9
+{
10
+    public function up()
11
+    {
12
+        Schema::create($this->prefix('blueprints'), function (Blueprint $table) {
13
+            $table->id();
14
+            $table->string('namespace')->nullable()->default(null)->index();
15
+            $table->string('handle');
16
+            $table->jsonb('data');
17
+            $table->timestamps();
18
+
19
+            $table->unique(['handle', 'namespace']);
20
+        });
21
+
22
+        $this->seedDefaultBlueprint();
23
+    }
24
+
25
+    public function down()
26
+    {
27
+        Schema::dropIfExists($this->prefix('blueprints'));
28
+    }
29
+
30
+    public function seedDefaultBlueprint()
31
+    {
32
+        try {
33
+            $config = json_encode([
34
+                'fields' => [
35
+                    [
36
+                        'field' => [
37
+                            'type' => 'markdown',
38
+                            'display' => 'Content',
39
+                            'localizable' => true,
40
+                        ],
41
+                        'handle' => 'content',
42
+                    ],
43
+                ],
44
+            ]);
45
+        } catch (\JsonException $e) {
46
+            $config = '[]';
47
+        }
48
+
49
+        DB::table($this->prefix('blueprints'))->insert([
50
+            'namespace' => null,
51
+            'handle' => 'default',
52
+            'data' => $config,
53
+            'created_at' => Carbon::now(),
54
+        ]);
55
+    }
56
+};

+ 24
- 0
database/migrations/2024_03_07_100000_create_collections_table.php Dosyayı Görüntüle

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('collections'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->jsonb('settings')->nullable();
16
+            $table->timestamps();
17
+        });
18
+    }
19
+
20
+    public function down()
21
+    {
22
+        Schema::dropIfExists($this->prefix('collections'));
23
+    }
24
+};

+ 33
- 0
database/migrations/2024_03_07_100000_create_entries_table_with_string_ids.php Dosyayı Görüntüle

@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('entries'), function (Blueprint $table) {
12
+            $table->uuid('id');
13
+            $table->string('site')->index();
14
+            $table->uuid('origin_id')->nullable()->index();
15
+            $table->boolean('published')->default(true);
16
+            $table->string('slug')->nullable();
17
+            $table->string('uri')->nullable()->index();
18
+            $table->string('date')->nullable();
19
+            $table->integer('order')->nullable()->index();
20
+            $table->string('collection')->index();
21
+            $table->string('blueprint', 30)->nullable()->index();
22
+            $table->jsonb('data');
23
+            $table->timestamps();
24
+
25
+            $table->primary('id');
26
+        });
27
+    }
28
+
29
+    public function down()
30
+    {
31
+        Schema::dropIfExists($this->prefix('entries'));
32
+    }
33
+};

+ 23
- 0
database/migrations/2024_03_07_100000_create_fieldsets_table.php Dosyayı Görüntüle

@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('fieldsets'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->jsonb('data');
15
+            $table->timestamps();
16
+        });
17
+    }
18
+
19
+    public function down()
20
+    {
21
+        Schema::dropIfExists($this->prefix('fieldsets'));
22
+    }
23
+};

+ 25
- 0
database/migrations/2024_03_07_100000_create_form_submissions_table.php Dosyayı Görüntüle

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('form_submissions'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('form', 30)->nullable()->index();
14
+            $table->jsonb('data')->nullable();
15
+            $table->timestamps(6);
16
+
17
+            $table->unique(['form', 'created_at']);
18
+        });
19
+    }
20
+
21
+    public function down()
22
+    {
23
+        Schema::dropIfExists($this->prefix('form_submissions'));
24
+    }
25
+};

+ 24
- 0
database/migrations/2024_03_07_100000_create_forms_table.php Dosyayı Görüntüle

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('forms'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->jsonb('settings')->nullable();
16
+            $table->timestamps();
17
+        });
18
+    }
19
+
20
+    public function down()
21
+    {
22
+        Schema::dropIfExists($this->prefix('forms'));
23
+    }
24
+};

+ 25
- 0
database/migrations/2024_03_07_100000_create_global_variables_table.php Dosyayı Görüntüle

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('global_set_variables'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->index();
14
+            $table->string('locale')->nullable();
15
+            $table->string('origin')->nullable();
16
+            $table->jsonb('data');
17
+            $table->timestamps();
18
+        });
19
+    }
20
+
21
+    public function down()
22
+    {
23
+        Schema::dropIfExists($this->prefix('global_set_variables'));
24
+    }
25
+};

+ 24
- 0
database/migrations/2024_03_07_100000_create_globals_table.php Dosyayı Görüntüle

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('global_sets'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->jsonb('settings');
16
+            $table->timestamps();
17
+        });
18
+    }
19
+
20
+    public function down()
21
+    {
22
+        Schema::dropIfExists($this->prefix('global_sets'));
23
+    }
24
+};

+ 28
- 0
database/migrations/2024_03_07_100000_create_navigation_trees_table.php Dosyayı Görüntüle

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('trees'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle');
14
+            $table->string('type')->index();
15
+            $table->string('locale')->nullable()->index();
16
+            $table->jsonb('tree')->nullable();
17
+            $table->jsonb('settings')->nullable();
18
+            $table->timestamps();
19
+
20
+            $table->unique(['handle', 'type', 'locale']);
21
+        });
22
+    }
23
+
24
+    public function down()
25
+    {
26
+        Schema::dropIfExists($this->prefix('trees'));
27
+    }
28
+};

+ 24
- 0
database/migrations/2024_03_07_100000_create_navigations_table.php Dosyayı Görüntüle

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('navigations'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->jsonb('settings')->nullable();
16
+            $table->timestamps();
17
+        });
18
+    }
19
+
20
+    public function down()
21
+    {
22
+        Schema::dropIfExists($this->prefix('navigations'));
23
+    }
24
+};

+ 30
- 0
database/migrations/2024_03_07_100000_create_taxonomies_table.php Dosyayı Görüntüle

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('taxonomies'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('title');
15
+            $table->jsonb('sites')->nullable();
16
+            $table->jsonb('settings')->nullable();
17
+            $table->timestamps();
18
+        });
19
+    }
20
+
21
+    /**
22
+     * Reverse the migrations.
23
+     *
24
+     * @return void
25
+     */
26
+    public function down()
27
+    {
28
+        Schema::dropIfExists($this->prefix('taxonomies'));
29
+    }
30
+};

+ 28
- 0
database/migrations/2024_03_07_100000_create_terms_table.php Dosyayı Görüntüle

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('taxonomy_terms'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('site')->index();
14
+            $table->string('slug');
15
+            $table->string('uri')->nullable()->index();
16
+            $table->string('taxonomy')->index();
17
+            $table->jsonb('data');
18
+            $table->timestamps();
19
+
20
+            $table->unique(['slug', 'taxonomy', 'site']);
21
+        });
22
+    }
23
+
24
+    public function down()
25
+    {
26
+        Schema::dropIfExists($this->prefix('taxonomy_terms'));
27
+    }
28
+};

+ 25
- 0
database/migrations/2024_03_07_100000_create_tokens_table.php Dosyayı Görüntüle

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('tokens'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('token')->unique();
14
+            $table->string('handler');
15
+            $table->jsonb('data');
16
+            $table->timestamp('expire_at');
17
+            $table->timestamps();
18
+        });
19
+    }
20
+
21
+    public function down()
22
+    {
23
+        Schema::dropIfExists($this->prefix('tokens'));
24
+    }
25
+};

+ 23
- 0
database/migrations/2024_05_15_100000_modify_form_submissions_id.php Dosyayı Görüntüle

@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::table($this->prefix('form_submissions'), function (Blueprint $table) {
12
+            $table->decimal('id', 14, 4)->index()->unique()->change();
13
+        });
14
+    }
15
+
16
+    public function down()
17
+    {
18
+        Schema::table($this->prefix('form_submissions'), function (Blueprint $table) {
19
+            $table->dropUnique('form_submissions_id_unique');
20
+            $table->string('id')->unique()->change();
21
+        });
22
+    }
23
+};

+ 27
- 0
database/migrations/2024_07_16_100000_create_sites_table.php Dosyayı Görüntüle

@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Support\Facades\Schema;
5
+use Statamic\Eloquent\Database\BaseMigration as Migration;
6
+
7
+return new class extends Migration
8
+{
9
+    public function up()
10
+    {
11
+        Schema::create($this->prefix('sites'), function (Blueprint $table) {
12
+            $table->id();
13
+            $table->string('handle')->unique();
14
+            $table->string('name');
15
+            $table->string('url');
16
+            $table->string('locale');
17
+            $table->string('lang');
18
+            $table->jsonb('attributes');
19
+            $table->timestamps();
20
+        });
21
+    }
22
+
23
+    public function down()
24
+    {
25
+        Schema::dropIfExists($this->prefix('sites'));
26
+    }
27
+};

+ 23
- 0
database/seeders/DatabaseSeeder.php Dosyayı Görüntüle

@@ -0,0 +1,23 @@
1
+<?php
2
+
3
+namespace Database\Seeders;
4
+
5
+use App\Models\User;
6
+// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
7
+use Illuminate\Database\Seeder;
8
+
9
+class DatabaseSeeder extends Seeder
10
+{
11
+    /**
12
+     * Seed the application's database.
13
+     */
14
+    public function run(): void
15
+    {
16
+        // User::factory(10)->create();
17
+
18
+        User::factory()->create([
19
+            'name' => 'Test User',
20
+            'email' => 'test@example.com',
21
+        ]);
22
+    }
23
+}

+ 8
- 0
lang/en/validation.php Dosyayı Görüntüle

@@ -0,0 +1,8 @@
1
+<?php
2
+
3
+return [
4
+
5
+    'unique_entry_value' => 'The :attribute has already been taken.',
6
+    'unique_user_value' => 'The :attribute has already been taken.',
7
+
8
+];

+ 2927
- 0
package-lock.json
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 17
- 0
package.json Dosyayı Görüntüle

@@ -0,0 +1,17 @@
1
+{
2
+    "private": true,
3
+    "type": "module",
4
+    "scripts": {
5
+        "build": "vite build",
6
+        "dev": "vite"
7
+    },
8
+    "devDependencies": {
9
+        "@tailwindcss/typography": "^0.5.12",
10
+        "autoprefixer": "^10.4.19",
11
+        "laravel-vite-plugin": "^1.0.2",
12
+        "postcss": "^8.4.38",
13
+        "tailwindcss": "^3.4.3",
14
+        "vite": "^6.0",
15
+        "concurrently": "^9.0.1"
16
+    }
17
+}

+ 31
- 0
phpunit.xml Dosyayı Görüntüle

@@ -0,0 +1,31 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
4
+         bootstrap="vendor/autoload.php"
5
+         colors="true"
6
+>
7
+    <testsuites>
8
+        <testsuite name="Unit">
9
+            <directory suffix="Test.php">./tests/Unit</directory>
10
+        </testsuite>
11
+        <testsuite name="Feature">
12
+            <directory suffix="Test.php">./tests/Feature</directory>
13
+        </testsuite>
14
+    </testsuites>
15
+    <source>
16
+        <include>
17
+            <directory suffix=".php">./app</directory>
18
+        </include>
19
+    </source>
20
+    <php>
21
+        <env name="APP_ENV" value="testing"/>
22
+        <env name="BCRYPT_ROUNDS" value="4"/>
23
+        <env name="CACHE_DRIVER" value="array"/>
24
+        <!-- <env name="DB_CONNECTION" value="sqlite"/> -->
25
+        <!-- <env name="DB_DATABASE" value=":memory:"/> -->
26
+        <env name="MAIL_MAILER" value="array"/>
27
+        <env name="QUEUE_CONNECTION" value="sync"/>
28
+        <env name="SESSION_DRIVER" value="array"/>
29
+        <env name="TELESCOPE_ENABLED" value="false"/>
30
+    </php>
31
+</phpunit>

+ 20
- 0
please Dosyayı Görüntüle

@@ -0,0 +1,20 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+use Symfony\Component\Console\Input\ArgvInput;
5
+
6
+define('LARAVEL_START', microtime(true));
7
+
8
+// Register the Composer autoloader...
9
+require __DIR__.'/vendor/autoload.php';
10
+
11
+// Bootstrap Laravel...
12
+$app = require_once __DIR__.'/bootstrap/app.php';
13
+
14
+// Rebind the kernel...
15
+Statamic\Console\Please\Application::rebindKernel();
16
+
17
+// Handle the command...
18
+$status = $app->handleCommand(new ArgvInput);
19
+
20
+exit($status);

+ 6
- 0
postcss.config.js Dosyayı Görüntüle

@@ -0,0 +1,6 @@
1
+export default {
2
+    plugins: {
3
+        tailwindcss: {},
4
+        autoprefixer: {},
5
+    },
6
+}

+ 21
- 0
public/.htaccess Dosyayı Görüntüle

@@ -0,0 +1,21 @@
1
+<IfModule mod_rewrite.c>
2
+    <IfModule mod_negotiation.c>
3
+        Options -MultiViews -Indexes
4
+    </IfModule>
5
+
6
+    RewriteEngine On
7
+
8
+    # Handle Authorization Header
9
+    RewriteCond %{HTTP:Authorization} .
10
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11
+
12
+    # Redirect Trailing Slashes If Not A Folder...
13
+    RewriteCond %{REQUEST_FILENAME} !-d
14
+    RewriteCond %{REQUEST_URI} (.+)/$
15
+    RewriteRule ^ %1 [L,R=301]
16
+
17
+    # Send Requests To Front Controller...
18
+    RewriteCond %{REQUEST_FILENAME} !-d
19
+    RewriteCond %{REQUEST_FILENAME} !-f
20
+    RewriteRule ^ index.php [L]
21
+</IfModule>

+ 0
- 0
public/assets/.gitkeep Dosyayı Görüntüle


+ 0
- 0
public/favicon.ico Dosyayı Görüntüle


+ 17
- 0
public/index.php Dosyayı Görüntüle

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+use Illuminate\Http\Request;
4
+
5
+define('LARAVEL_START', microtime(true));
6
+
7
+// Determine if the application is in maintenance mode...
8
+if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
9
+    require $maintenance;
10
+}
11
+
12
+// Register the Composer autoloader...
13
+require __DIR__.'/../vendor/autoload.php';
14
+
15
+// Bootstrap Laravel and handle the request...
16
+(require_once __DIR__.'/../bootstrap/app.php')
17
+    ->handleRequest(Request::capture());

+ 2
- 0
public/robots.txt Dosyayı Görüntüle

@@ -0,0 +1,2 @@
1
+User-agent: *
2
+Disallow:

+ 8
- 0
resources/blueprints/assets/assets.yaml Dosyayı Görüntüle

@@ -0,0 +1,8 @@
1
+title: Asset
2
+fields:
3
+  -
4
+    handle: alt
5
+    field:
6
+      display: 'Alt Text'
7
+      type: text
8
+      instructions: 'Description of the image'

+ 22
- 0
resources/blueprints/default.yaml Dosyayı Görüntüle

@@ -0,0 +1,22 @@
1
+title: Default
2
+fields:
3
+  -
4
+    handle: content
5
+    field:
6
+      type: markdown
7
+      display: Content
8
+      localizable: true
9
+  -
10
+    handle: author
11
+    field:
12
+      type: users
13
+      display: Author
14
+      default: current
15
+      localizable: true
16
+      max_items: 1
17
+  -
18
+    handle: template
19
+    field:
20
+      type: template
21
+      display: Template
22
+      localizable: true

+ 29
- 0
resources/blueprints/user.yaml Dosyayı Görüntüle

@@ -0,0 +1,29 @@
1
+title: User
2
+fields:
3
+  -
4
+    handle: name
5
+    field:
6
+      type: text
7
+      display: Name
8
+  -
9
+    handle: email
10
+    field:
11
+      type: text
12
+      input: email
13
+      display: Email Address
14
+  -
15
+    handle: roles
16
+    field:
17
+      type: user_roles
18
+      width: 50
19
+  -
20
+    handle: groups
21
+    field:
22
+      type: user_groups
23
+      width: 50
24
+  -
25
+    handle: avatar
26
+    field:
27
+      type: assets
28
+      max_files: 1
29
+      container: assets

+ 1
- 0
resources/css/cp.css Dosyayı Görüntüle

@@ -0,0 +1 @@
1
+/* This is all you. */

+ 5
- 0
resources/css/site.css Dosyayı Görüntüle

@@ -0,0 +1,5 @@
1
+@import "tailwindcss/base";
2
+@import "tailwindcss/components";
3
+@import "tailwindcss/utilities";
4
+
5
+/* This is all you. */

+ 15
- 0
resources/js/components/fieldtypes/ExampleFieldtype.vue Dosyayı Görüntüle

@@ -0,0 +1,15 @@
1
+<template>
2
+    <div class="example-fieldtype-container">
3
+        <text-input :value="value" @input="update" />
4
+    </div>
5
+</template>
6
+
7
+<script>
8
+// Learn more at https://statamic.dev/extending/fieldtypes/
9
+export default {
10
+    mixins: [Fieldtype],
11
+    data() {
12
+        return {}
13
+    }
14
+};
15
+</script>

+ 14
- 0
resources/js/cp.js Dosyayı Görüntüle

@@ -0,0 +1,14 @@
1
+/**
2
+ * When extending the control panel, be sure to uncomment the necessary code for your build process:
3
+ * https://statamic.dev/extending/control-panel
4
+ */
5
+
6
+/** Example Fieldtype
7
+
8
+import ExampleFieldtype from './components/fieldtypes/ExampleFieldtype.vue';
9
+
10
+Statamic.booting(() => {
11
+    Statamic.$components.register('example-fieldtype', ExampleFieldtype);
12
+});
13
+
14
+*/

+ 1
- 0
resources/js/site.js Dosyayı Görüntüle

@@ -0,0 +1 @@
1
+// This is all you.

+ 4
- 0
resources/users/groups.yaml Dosyayı Görüntüle

@@ -0,0 +1,4 @@
1
+# admin:
2
+#   title: Administrators
3
+#   roles:
4
+#     - admin

+ 4
- 0
resources/users/roles.yaml Dosyayı Görüntüle

@@ -0,0 +1,4 @@
1
+# admin:
2
+#   title: Administrator
3
+#   permissions:
4
+#     - super

+ 1
- 0
resources/views/default.antlers.html Dosyayı Görüntüle

@@ -0,0 +1 @@
1
+{{ content }}

+ 0
- 0
resources/views/errors/404.antlers.html Dosyayı Görüntüle


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor

Loading…
İptal
Kaydet