app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $companys=Mmcompany::get();
        $slides=Slide::get();
        $services=Service::get();
        $abouts=About::get();
        $projects=Project::get();
        $teams=Team::get();
        $packages=Package::get();
        return view('welcome')
                    ->with('companys',$companys)
                    ->with('slides',$slides)
                    ->with('services',$services)
                    ->with('abouts',$abouts)
                    ->with('projects',$projects)
                    ->with('teams',$teams)
                    ->with('packages',$packages);
    }
public function index ( ) { $ companys = Mmcompany :: get ( ) ; $ slides = Slide :: get ( ) ; $ services = Service :: get ( ) ; $ abouts = About :: get ( ) ; $ projects = Project :: get ( ) ; $ teams = Team :: get ( ) ; $ packages = Package :: get ( ) ; return view ( 'welcome' ) -> with ( 'companys' , $ companys ) -> with ( 'slides' , $ slides ) -> with ( 'services' , $ services ) -> with ( 'abouts' , $ abouts ) -> with ( 'projects' , $ projects ) -> with ( 'teams' , $ teams ) -> with ( 'packages' , $ packages ) ; }
Show the application dashboard.
Show the application dashboard .
// dd($companys); // return view('home');