app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $portfolio = [
            [
                'link'=>'//naver.com',
                'title'=>'에어엔비',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'app'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'성미니',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'web'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'현규',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'app'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'동욱이',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'web'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'web'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니재미니재미니재미니재미니재미니',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
            [
                'link'=>'//naver.com',
                'title'=>'재미니2',
                'main_image'=>'//placehold.it/224x224',
                'category'=>'response'
            ],
        ];
        return view('main.index',compact('portfolio'));
    }
public function index ( ) { $ portfolio = [ [ 'link' => '//naver.com' , 'title' => '에어엔비', 'main_image' => '//placehold.it/224x224' , 'category' => 'app' ] , [ 'link' => '//naver.com' , 'title' => '성미니', 'main_image' => '//placehold.it/224x224' , 'category' => 'web' ] , [ 'link' => '//naver.com' , 'title' => '현규', 'main_image' => '//placehold.it/224x224' , 'category' => 'app' ] , [ 'link' => '//naver.com' , 'title' => '동욱이', 'main_image' => '//placehold.it/224x224' , 'category' => 'web' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'web' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , [ 'link' => '//naver.com' , 'title' => '재미니재미니재미니재미니재미니재미니', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , [ 'link' => '//naver.com' , 'title' => '재미니2', 'main_image' => '//placehold.it/224x224' , 'category' => 'response' ] , ] ; return view ( 'main.index' , compact ( 'portfolio' ) ) ; }
Show the application dashboard.
Show the application dashboard .
// b:foreach ($portfolio as $item) { //     {{ $item->name }} //     {{ $item['name'] }} // }