diff --git a/app/Helpers/SettingsHelper.php b/app/Helpers/SettingsHelper.php new file mode 100644 index 00000000..b2c1f4be --- /dev/null +++ b/app/Helpers/SettingsHelper.php @@ -0,0 +1,78 @@ +first(); + if($m) + { + return $m; + } + else + { + return NULL; + } + } + + static public function getValueByName($name) + { + $m = SettingsHelper::getModelByName($name); + if($m) + { + switch($m->type) + { + case 'boolean': + return boolval($m->value); + break; + + case 'integer': + return intval($m->value); + break; + + case 'float': + return float($m->value); + break; + + default: + return $m->value; + } + } + else + { + return NULL; + } + } + + static public function setValueByName($name, $value) + { + $m = SettingsHelper::getModelByName($name); + + if($m) + { + $value = strval($value); + $m->value = $value; + $m->save(); + } + + return; + } + + static public function hasMourningPile() + { + $value = SettingsHelper::getValueByName('mourning_pile'); + + return $value; + } +} \ No newline at end of file diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index dff661da..3067863e 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -12,6 +12,7 @@ use App\Helpers\StringHelper; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Helpers\AccessHelper as Access; +use App\Helpers\SettingsHelper as SettingsHelper; use Response; @@ -27,6 +28,7 @@ class SettingsController extends ExtendedController parent::__construct(); } + public function index(Request $request) { $model = Settings::all(); @@ -56,36 +58,12 @@ class SettingsController extends ExtendedController return $view->render(); } + public function save(Request $request) { - $model = Settings::all(); foreach($request->request as $key=>$value) { - for($i = 0; $i < count($model); $i++) - { - if($model[$i]->name == $key) - { - switch($model[$i]->type) - { - case 'boolean': - switch($value) - { - case 'true': - $model[$i]->value = 'true'; - break; - - case 'false': - default: - $model[$i]->value = 'false'; - break; - } - - default: - $model[$i]->value = $value; - } - $model[$i]->save(); - } - } + SettingsHelper::setValueByName($key, $value); } return redirect()->route('settings-mainpage'); diff --git a/bootstrap/cache/config.php b/bootstrap/cache/config.php deleted file mode 100644 index b33e7c10..00000000 --- a/bootstrap/cache/config.php +++ /dev/null @@ -1,761 +0,0 @@ - - array ( - 'name' => 'Freiwillige Feuerwehr Eppingen', - 'env' => 'debug', - 'debug' => true, - 'url' => 'http://ffw', - 'timezone' => 'Europe/Berlin', - 'locale' => 'de', - 'fallback_locale' => 'de', - 'key' => 'base64:eTnmUyo9rkgRsXdoXWk7weXbwYd7ixi2e1GQGT+VosI=', - 'cipher' => 'AES-256-CBC', - 'log' => 'single', - 'log_level' => true, - 'providers' => - array ( - 0 => 'Illuminate\\Auth\\AuthServiceProvider', - 1 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider', - 2 => 'Illuminate\\Bus\\BusServiceProvider', - 3 => 'Illuminate\\Cache\\CacheServiceProvider', - 4 => 'Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider', - 5 => 'Illuminate\\Cookie\\CookieServiceProvider', - 6 => 'Illuminate\\Database\\DatabaseServiceProvider', - 7 => 'Illuminate\\Encryption\\EncryptionServiceProvider', - 8 => 'Illuminate\\Filesystem\\FilesystemServiceProvider', - 9 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', - 10 => 'Illuminate\\Hashing\\HashServiceProvider', - 11 => 'Illuminate\\Mail\\MailServiceProvider', - 12 => 'Illuminate\\Notifications\\NotificationServiceProvider', - 13 => 'Illuminate\\Pagination\\PaginationServiceProvider', - 14 => 'Illuminate\\Pipeline\\PipelineServiceProvider', - 15 => 'Illuminate\\Queue\\QueueServiceProvider', - 16 => 'Illuminate\\Redis\\RedisServiceProvider', - 17 => 'Illuminate\\Auth\\Passwords\\PasswordResetServiceProvider', - 18 => 'Illuminate\\Session\\SessionServiceProvider', - 19 => 'Illuminate\\Translation\\TranslationServiceProvider', - 20 => 'Illuminate\\Validation\\ValidationServiceProvider', - 21 => 'Illuminate\\View\\ViewServiceProvider', - 22 => 'Spatie\\Permission\\PermissionServiceProvider', - 23 => 'App\\Providers\\AppServiceProvider', - 24 => 'App\\Providers\\AuthServiceProvider', - 25 => 'App\\Providers\\EventServiceProvider', - 26 => 'App\\Providers\\RouteServiceProvider', - 27 => 'Collective\\Html\\HtmlServiceProvider', - 28 => 'Intervention\\Image\\ImageServiceProvider', - 29 => 'OwenIt\\Auditing\\AuditingServiceProvider', - 30 => 'App\\Providers\\ValidatorServiceProvider', - 31 => 'App\\Providers\\HelperServiceProvider', - 32 => 'Barryvdh\\Debugbar\\ServiceProvider', - 33 => 'SimpleSoftwareIO\\QrCode\\QrCodeServiceProvider', - ), - 'aliases' => - array ( - 'App' => 'Illuminate\\Support\\Facades\\App', - 'Artisan' => 'Illuminate\\Support\\Facades\\Artisan', - 'Auth' => 'Illuminate\\Support\\Facades\\Auth', - 'Blade' => 'Illuminate\\Support\\Facades\\Blade', - 'Broadcast' => 'Illuminate\\Support\\Facades\\Broadcast', - 'Bus' => 'Illuminate\\Support\\Facades\\Bus', - 'Cache' => 'Illuminate\\Support\\Facades\\Cache', - 'Config' => 'Illuminate\\Support\\Facades\\Config', - 'Cookie' => 'Illuminate\\Support\\Facades\\Cookie', - 'Crypt' => 'Illuminate\\Support\\Facades\\Crypt', - 'DB' => 'Illuminate\\Support\\Facades\\DB', - 'Eloquent' => 'Illuminate\\Database\\Eloquent\\Model', - 'Event' => 'Illuminate\\Support\\Facades\\Event', - 'Document' => 'Intervention\\Image\\Facades\\Image', - 'Gate' => 'Illuminate\\Support\\Facades\\Gate', - 'Hash' => 'Illuminate\\Support\\Facades\\Hash', - 'Lang' => 'Illuminate\\Support\\Facades\\Lang', - 'Log' => 'Illuminate\\Support\\Facades\\Log', - 'Mail' => 'Illuminate\\Support\\Facades\\Mail', - 'Notification' => 'Illuminate\\Support\\Facades\\Notification', - 'Password' => 'Illuminate\\Support\\Facades\\Password', - 'Queue' => 'Illuminate\\Support\\Facades\\Queue', - 'Redirect' => 'Illuminate\\Support\\Facades\\Redirect', - 'Redis' => 'Illuminate\\Support\\Facades\\Redis', - 'Request' => 'Illuminate\\Support\\Facades\\Request', - 'Response' => 'Illuminate\\Support\\Facades\\Response', - 'Route' => 'Illuminate\\Support\\Facades\\Route', - 'Schema' => 'Illuminate\\Support\\Facades\\Schema', - 'Session' => 'Illuminate\\Support\\Facades\\Session', - 'Storage' => 'Illuminate\\Support\\Facades\\Storage', - 'URL' => 'App\\Helpers\\URLHelper', - 'Validator' => 'Illuminate\\Support\\Facades\\Validator', - 'View' => 'Illuminate\\Support\\Facades\\View', - 'Form' => 'Collective\\Html\\FormFacade', - 'HTML' => 'Collective\\Html\\HtmlFacade', - 'Access' => 'App\\Helpers\\AccessHelper', - 'Menu' => 'App\\Helpers\\MenuHelper', - 'Post' => 'App\\Helpers\\PostHelper', - 'Debugbar' => 'Barryvdh\\Debugbar\\Facade', - 'Tag' => 'App\\Helpers\\TagHelper', - 'Breadcrumb' => 'App\\Helpers\\BreadcrumbHelper', - 'QuickLogin' => 'App\\Helpers\\QuickLoginHelper', - 'Date' => 'App\\Helpers\\DateHelper', - 'Carbon' => 'Carbon\\Carbon', - 'QrCode' => 'SimpleSoftwareIO\\QrCode\\Facades\\QrCode', - 'Wizard' => 'App\\Helpers\\WizardHelper', - 'String' => 'App\\Helpers\\StringHelper', - 'StringHelper' => 'App\\Helpers\\StringHelper', - 'BreakingNews' => 'App\\Helpers\\BreakingNewsHelper', - 'Design' => 'App\\Helpers\\DesignHelper', - ), - ), - 'audit' => - array ( - 'implementation' => 'OwenIt\\Auditing\\Models\\Audit', - 'user' => - array ( - 'primary_key' => 'id', - 'foreign_key' => 'user_id', - 'model' => 'App\\Models\\User', - 'resolver' => 'App\\Models\\User', - ), - 'resolver' => - array ( - 'user' => 'OwenIt\\Auditing\\Resolvers\\UserResolver', - 'ip_address' => 'OwenIt\\Auditing\\Resolvers\\IpAddressResolver', - 'user_agent' => 'OwenIt\\Auditing\\Resolvers\\UserAgentResolver', - 'url' => 'OwenIt\\Auditing\\Resolvers\\UrlResolver', - ), - 'events' => - array ( - 0 => 'created', - 1 => 'updated', - 2 => 'deleted', - 3 => 'restored', - ), - 'strict' => false, - 'timestamps' => false, - 'threshold' => 0, - 'redact' => false, - 'driver' => 'database', - 'drivers' => - array ( - 'database' => - array ( - 'table' => 'revisions', - 'connection' => NULL, - ), - ), - 'console' => true, - ), - 'auth' => - array ( - 'defaults' => - array ( - 'guard' => 'web', - 'passwords' => 'user', - ), - 'guards' => - array ( - 'web' => - array ( - 'driver' => 'session', - 'provider' => 'user', - ), - 'api' => - array ( - 'driver' => 'token', - 'provider' => 'user', - ), - ), - 'providers' => - array ( - 'user' => - array ( - 'driver' => 'eloquent', - 'model' => 'App\\Models\\User', - 'table' => 'user', - ), - ), - 'passwords' => - array ( - 'user' => - array ( - 'provider' => 'user', - 'table' => 'password_resets', - 'expire' => 60, - ), - ), - ), - 'broadcasting' => - array ( - 'default' => 'log', - 'connections' => - array ( - 'pusher' => - array ( - 'driver' => 'pusher', - 'key' => '', - 'secret' => '', - 'app_id' => '', - 'options' => - array ( - ), - ), - 'redis' => - array ( - 'driver' => 'redis', - 'connection' => 'default', - ), - 'log' => - array ( - 'driver' => 'log', - ), - 'null' => - array ( - 'driver' => 'null', - ), - ), - ), - 'cache' => - array ( - 'default' => 'file', - 'stores' => - array ( - 'apc' => - array ( - 'driver' => 'apc', - ), - 'array' => - array ( - 'driver' => 'array', - ), - 'database' => - array ( - 'driver' => 'database', - 'table' => 'cache', - 'connection' => NULL, - ), - 'file' => - array ( - 'driver' => 'file', - 'path' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\framework/cache/data', - ), - 'memcached' => - array ( - 'driver' => 'memcached', - 'persistent_id' => NULL, - 'sasl' => - array ( - 0 => NULL, - 1 => NULL, - ), - 'options' => - array ( - ), - 'servers' => - array ( - 0 => - array ( - 'host' => '127.0.0.1', - 'port' => 11211, - 'weight' => 100, - ), - ), - ), - 'redis' => - array ( - 'driver' => 'redis', - 'connection' => 'default', - ), - ), - 'prefix' => 'laravel', - ), - 'database' => - array ( - 'default' => 'mysql', - 'connections' => - array ( - 'sqlite' => - array ( - 'driver' => 'sqlite', - 'database' => 'ffw_laravel', - 'prefix' => '', - ), - 'mysql' => - array ( - 'driver' => 'mysql', - 'host' => 'localhost', - 'port' => '3306', - 'database' => 'ffw_laravel', - 'username' => 'ffw', - 'password' => 'ffw', - 'unix_socket' => '', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - 'strict' => false, - 'engine' => 'InnoDB', - ), - 'mysql_alt' => - array ( - 'driver' => 'mysql', - 'host' => 'localhost', - 'port' => '3306', - 'database' => 'ffw_laravel', - 'username' => 'ffw', - 'password' => 'ffw', - 'unix_socket' => '', - 'charset' => 'utf8', - 'collation' => 'utf8_unicode_ci', - 'prefix' => '', - 'strict' => false, - 'engine' => 'InnoDB', - ), - 'pgsql' => - array ( - 'driver' => 'pgsql', - 'host' => 'localhost', - 'port' => '3306', - 'database' => 'ffw_laravel', - 'username' => 'ffw', - 'password' => 'ffw', - 'charset' => 'utf8', - 'prefix' => '', - 'schema' => 'public', - 'sslmode' => 'prefer', - ), - 'sqlsrv' => - array ( - 'driver' => 'sqlsrv', - 'host' => 'localhost', - 'port' => '3306', - 'database' => 'ffw_laravel', - 'username' => 'ffw', - 'password' => 'ffw', - 'charset' => 'utf8', - 'prefix' => '', - ), - ), - 'migrations' => 'migrations', - 'redis' => - array ( - 'client' => 'predis', - 'default' => - array ( - 'host' => '127.0.0.1', - 'password' => NULL, - 'port' => '6379', - 'database' => 0, - ), - ), - ), - 'debugbar' => - array ( - 'enabled' => true, - 'except' => - array ( - ), - 'storage' => - array ( - 'enabled' => true, - 'driver' => 'file', - 'path' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\debugbar', - 'connection' => NULL, - 'provider' => '', - ), - 'include_vendors' => true, - 'capture_ajax' => true, - 'add_ajax_timing' => false, - 'error_handler' => false, - 'clockwork' => false, - 'collectors' => - array ( - 'phpinfo' => true, - 'messages' => true, - 'time' => true, - 'memory' => true, - 'exceptions' => true, - 'log' => true, - 'db' => true, - 'views' => true, - 'route' => true, - 'auth' => true, - 'gate' => true, - 'session' => true, - 'symfony_request' => true, - 'mail' => true, - 'laravel' => false, - 'events' => false, - 'default_request' => false, - 'logs' => false, - 'files' => false, - 'config' => false, - 'cache' => false, - ), - 'options' => - array ( - 'auth' => - array ( - 'show_name' => true, - ), - 'db' => - array ( - 'with_params' => true, - 'backtrace' => true, - 'timeline' => false, - 'explain' => - array ( - 'enabled' => false, - 'types' => - array ( - 0 => 'SELECT', - ), - ), - 'hints' => true, - ), - 'mail' => - array ( - 'full_log' => false, - ), - 'views' => - array ( - 'data' => false, - ), - 'route' => - array ( - 'label' => true, - ), - 'logs' => - array ( - 'file' => NULL, - ), - 'cache' => - array ( - 'values' => true, - ), - ), - 'inject' => true, - 'route_prefix' => '_debugbar', - 'route_domain' => NULL, - 'theme' => 'auto', - ), - 'filesystems' => - array ( - 'default' => 'local', - 'cloud' => 's3', - 'disks' => - array ( - 'local' => - array ( - 'driver' => 'local', - 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', - ), - 'public' => - array ( - 'driver' => 'local', - 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app/public', - 'url' => 'http://ffw/storage', - 'visibility' => 'public', - ), - 'upload' => - array ( - 'driver' => 'local', - 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', - 'url' => 'http://ffw/uploads', - 'visibility' => 'public', - ), - 'import' => - array ( - 'driver' => 'local', - 'root' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\app', - 'url' => 'http://ffw/import', - 'visibility' => 'public', - ), - 's3' => - array ( - 'driver' => 's3', - 'key' => NULL, - 'secret' => NULL, - 'region' => NULL, - 'bucket' => NULL, - ), - ), - ), - 'formats' => - array ( - 'datetime' => - array ( - 'database' => 'Y-m-d H:i:s', - ), - ), - 'images' => - array ( - 'full_size_dir' => 'C:\\xampp\\htdocs\\ffw_laravel\\public\\images/full_size/', - 'icon_size_dir' => 'C:\\xampp\\htdocs\\ffw_laravel\\public\\images/icon_size/', - 'full_size_width' => 1200, - 'full_size_height' => 1200, - 'icon_size_width' => 300, - 'icon_size_height' => 300, - ), - 'larasap' => - array ( - 'telegram' => - array ( - 'api_token' => '', - 'bot_username' => '', - 'channel_username' => '', - 'channel_signature' => '', - ), - 'twitter' => - array ( - 'consurmer_key' => 'wuW1fupwwXGt9DHQLNqzqa2K6', - 'consurmer_secret' => 'LHwebXZMn7P3n7Cctazd0ZqxlBCCm2VwgfEXsOx601e5DSi46P', - 'access_token' => '1012802726433050624-AXI5Su8tLLKWkgkFjFJRHl5LIWyreW', - 'access_token_secret' => '5tmxYjSnYLx7t80OFuslyK6vrq3cC4XCC4sTeRG10FVvs', - ), - 'facebook' => - array ( - 'app_id' => '409085882937136', - 'app_secret' => '8ce7c47cc9ad691ceb1df2d84cc44155', - 'default_graph_version' => 'v3.0', - 'page_access_token' => 'EAAF0D7q8LzABAESosJDjXwbZBpI2lMOO5JWZAaa9mZCFUpcx8I0r7Q1QZBPHJWrC5y1PcDg0WY9GOSVOreuDPhWH7iQkwmhJFK6nQGlqxrScQMjZBgSLjgbjltVCgP2BfkKXcP6XoCZAwEGbqBItkZBkkMStZCDKxtZCjLQKykDZB1zgZDZD', - ), - 'proxy' => - array ( - 'type' => '', - 'hostname' => '', - 'port' => '', - 'username' => '', - 'password' => '', - ), - ), - 'mail' => - array ( - 'driver' => 'smtp', - 'host' => 'smtp.office365.com', - 'port' => '587', - 'from' => - array ( - 'address' => 'info@feuerwehr-eppingen.de', - 'name' => 'Feuerwehr Eppingen', - ), - 'encryption' => 'tls', - 'username' => 'info@feuerwehr-eppingen.de', - 'password' => 'e564tb1542t!hFD235!%!', - 'sendmail' => 'C:\\xampp\\sendmail\\sendmailexe -bs', - 'markdown' => - array ( - 'theme' => 'default', - 'paths' => - array ( - 0 => 'C:\\xampp\\htdocs\\ffw_laravel\\resources\\views/vendor/mail', - ), - ), - 'stream' => - array ( - 'ssl' => - array ( - 'allow_self_signed' => true, - 'verify_peer' => false, - 'verify_peer_name' => false, - ), - ), - ), - 'permission' => - array ( - 'models' => - array ( - 'permission' => 'Spatie\\Permission\\Models\\Permission', - 'role' => 'Spatie\\Permission\\Models\\Role', - ), - 'table_names' => - array ( - 'role' => 'role', - 'roles' => 'roles', - 'permission' => 'permission', - 'permissions' => 'permissions', - 'model_has_permissions' => 'model_has_permissions', - 'model_has_roles' => 'model_has_roles', - 'role_has_permissions' => 'role_has_permissions', - ), - 'column_names' => - array ( - 'model_morph_key' => 'model_id', - ), - 'display_permission_in_exception' => false, - 'cache' => - array ( - 'expiration_time' => - DateInterval::__set_state(array( - 'y' => 0, - 'm' => 0, - 'd' => 0, - 'h' => 24, - 'i' => 0, - 's' => 0, - 'f' => 0.0, - 'weekday' => 0, - 'weekday_behavior' => 0, - 'first_last_day_of' => 0, - 'invert' => 0, - 'days' => false, - 'special_type' => 0, - 'special_amount' => 0, - 'have_weekday_relative' => 0, - 'have_special_relative' => 0, - )), - 'key' => 'spatie.permission.cache', - 'model_key' => 'name', - 'store' => 'default', - ), - 'cache_expiration_time' => 1440, - ), - 'queue' => - array ( - 'default' => 'database', - 'connections' => - array ( - 'sync' => - array ( - 'driver' => 'sync', - ), - 'database' => - array ( - 'driver' => 'database', - 'table' => 'jobs', - 'queue' => 'default', - 'retry_after' => 90, - ), - 'beanstalkd' => - array ( - 'driver' => 'beanstalkd', - 'host' => 'localhost', - 'queue' => 'default', - 'retry_after' => 90, - ), - 'sqs' => - array ( - 'driver' => 'sqs', - 'key' => 'your-public-key', - 'secret' => 'your-secret-key', - 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', - 'queue' => 'your-queue-name', - 'region' => 'us-east-1', - ), - 'redis' => - array ( - 'driver' => 'redis', - 'connection' => 'default', - 'queue' => 'default', - 'retry_after' => 90, - ), - ), - 'failed' => - array ( - 'database' => 'mysql', - 'table' => 'failed_jobs', - ), - ), - 'quicklogin' => - array ( - 'timeout' => 15, - ), - 'services' => - array ( - 'mailgun' => - array ( - 'domain' => NULL, - 'secret' => NULL, - ), - 'ses' => - array ( - 'key' => NULL, - 'secret' => NULL, - 'region' => 'us-east-1', - ), - 'sparkpost' => - array ( - 'secret' => NULL, - ), - 'stripe' => - array ( - 'model' => 'App\\Models\\User', - 'key' => NULL, - 'secret' => NULL, - ), - ), - 'session' => - array ( - 'driver' => 'file', - 'lifetime' => 600, - 'expire_on_close' => false, - 'encrypt' => false, - 'files' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\framework/sessions', - 'connection' => NULL, - 'table' => 'sessions', - 'store' => NULL, - 'lottery' => - array ( - 0 => 2, - 1 => 100, - ), - 'cookie' => 'freiwillige_feuerwehr_eppingen_session', - 'path' => '/', - 'domain' => NULL, - 'secure' => false, - 'http_only' => true, - 'same_site' => NULL, - ), - 'social-media-manager' => - array ( - 'twitter' => - array ( - 'consurmer_key' => 'wuW1fupwwXGt9DHQLNqzqa2K6', - 'consurmer_secret' => 'LHwebXZMn7P3n7Cctazd0ZqxlBCCm2VwgfEXsOx601e5DSi46P', - 'access_token' => '1012802726433050624-AXI5Su8tLLKWkgkFjFJRHl5LIWyreW', - 'access_token_secret' => '5tmxYjSnYLx7t80OFuslyK6vrq3cC4XCC4sTeRG10FVvs', - ), - 'facebook' => - array ( - 'app_id' => '409085882937136', - 'app_secret' => '8ce7c47cc9ad691ceb1df2d84cc44155', - 'default_graph_version' => 'v3.0', - 'page_access_token' => 'EAAF0D7q8LzABAESosJDjXwbZBpI2lMOO5JWZAaa9mZCFUpcx8I0r7Q1QZBPHJWrC5y1PcDg0WY9GOSVOreuDPhWH7iQkwmhJFK6nQGlqxrScQMjZBgSLjgbjltVCgP2BfkKXcP6XoCZAwEGbqBItkZBkkMStZCDKxtZCjLQKykDZB1zgZDZD', - ), - ), - 'view' => - array ( - 'paths' => - array ( - 0 => 'C:\\xampp\\htdocs\\ffw_laravel\\resources\\views', - ), - 'compiled' => 'C:\\xampp\\htdocs\\ffw_laravel\\storage\\framework\\views', - ), - 'image' => - array ( - 'driver' => 'gd', - ), - 'sluggable' => - array ( - 'source' => NULL, - 'maxLength' => NULL, - 'maxLengthKeepWords' => true, - 'method' => NULL, - 'separator' => '-', - 'unique' => true, - 'uniqueSuffix' => NULL, - 'includeTrashed' => false, - 'reserved' => NULL, - 'onUpdate' => false, - ), - 'trustedproxy' => - array ( - 'proxies' => NULL, - 'headers' => 30, - ), - 'tinker' => - array ( - 'commands' => - array ( - ), - 'dont_alias' => - array ( - 0 => 'App\\Nova', - ), - ), -); diff --git a/composer.lock b/composer.lock index 4855a390..01330076 100644 --- a/composer.lock +++ b/composer.lock @@ -1936,20 +1936,20 @@ }, { "name": "psr/container", - "version": "1.1.2", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", - "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", "shasum": "" }, "require": { - "php": ">=7.4.0" + "php": ">=7.2.0" }, "type": "library", "autoload": { @@ -1978,9 +1978,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.2" + "source": "https://github.com/php-fig/container/tree/1.1.1" }, - "time": "2021-11-05T16:50:12+00:00" + "time": "2021-03-05T17:36:06+00:00" }, { "name": "psr/http-factory", @@ -5624,30 +5624,25 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.2", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d" + "reference": "77a32518733312af16a44300404e945338981de3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/48f445a408c131e38cab1c235aa6d2bb7a0bb20d", - "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0", + "php": "^7.2 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { "ext-tokenizer": "*", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-phpunit": "^1.1", - "phpunit/phpunit": "^9.5", - "rector/rector": "^0.13.9", - "vimeo/psalm": "^4.25" + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -5673,9 +5668,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" }, - "time": "2022-10-14T12:47:21+00:00" + "time": "2022-03-15T21:29:03+00:00" }, { "name": "phpspec/prophecy", diff --git a/config/app.php b/config/app.php index 59c6258f..cf57635c 100755 --- a/config/app.php +++ b/config/app.php @@ -250,6 +250,7 @@ return [ 'StringHelper' => App\Helpers\StringHelper::class, 'BreakingNews' => App\Helpers\BreakingNewsHelper::class, 'Design' => App\Helpers\DesignHelper::class, + 'Setting' => App\Helpters\SettingsHelper::class, ], ]; diff --git a/deploy.rexpfd b/deploy.rexpfd index f04412de..62750f56 100644 --- a/deploy.rexpfd +++ b/deploy.rexpfd @@ -1,8 +1,8 @@ - + - + diff --git "a/public/C:\\xampp\\htdocs\\ffw_laravel\\storage\\debugbar/.gitignore" "b/public/C:\\xampp\\htdocs\\ffw_laravel\\storage\\debugbar/.gitignore" new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ "b/public/C:\\xampp\\htdocs\\ffw_laravel\\storage\\debugbar/.gitignore" @@ -0,0 +1,2 @@ +* +!.gitignore