Skip to content

Commit

Permalink
feat: create app constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 16, 2024
1 parent ea547bd commit f400bcc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
*/

'links' => [
public_path('storage') => env('APP_ENV') === 'production'
public_path('storage') => env('APP_ENV') === \CSlant\Blog\Core\Constants\AppConstant::APP_ENV_PROD
? env('FILESYSTEM_FILE_ROOT', storage_path('app/public'))
: storage_path('app/public'),
],
Expand Down
13 changes: 13 additions & 0 deletions src/Constants/AppConstant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace CSlant\Blog\Core\Constants;

class AppConstant
{
public const APP_NAME = 'CSlant Blog';

public const APP_AUTHOR = 'CSlant';

// App Environment: local, staging, production
public const APP_ENV_PROD = 'production';
}

0 comments on commit f400bcc

Please sign in to comment.