Anons79 Mini Shell

Directory : /home/proudlyafrican/www/app/Providers/
Upload File :
Current File : //home/proudlyafrican/www/app/Providers/AppServiceProvider.php

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use DB;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //

        view()->composer('*', function ($view)
        {
            $categories=DB::Table('categories')->get();
            $view->with('shared_categories', $categories);

            $shared_socials=DB::Table('socials')->get();
            $view->with('shared_socials', $shared_socials);



            $addresses=DB::Table('address_and_number')->get();
            $view->with('shared_address', $addresses);

        });
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]