Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
app
/
Providers
:
AppServiceProvider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // this Code is Cracked by dharunMods-YouTube-Channel namespace App\Providers; use League\Flysystem\Filesystem; use League\Flysystem\Sftp\SftpAdapter; use Illuminate\Support\Facades\View; use App\Models\Settings; use App\Models\SettingsCont; use App\Models\TermsPrivacy; use Illuminate\Pagination\Paginator; use Illuminate\Validation\Rules\Password; use Illuminate\Support\Facades\Storage as FacadesStorage; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bootstrap any application services. * * @return void */ public function boot() { FacadesStorage::extend('sftp', function ($app, $config) { return new Filesystem(new SftpAdapter($config)); }); Password::defaults(function () { $rule = Password::min(8); return $this->app->isProduction() ? $rule->mixedCase()->numbers()->symbols()->uncompromised() : $rule; }); Paginator::useBootstrap(); // Sharing settings with all view $settings = Settings::where('id', '1')->first(); $terms = TermsPrivacy::find(1); $moreset = SettingsCont::find(1); View::share('settings', $settings); View::share('terms', $terms); View::share('moresettings', $moreset); View::share('mod', $settings->modules); } }