app/Http/Controllers/PortofolioController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        return view('portofolio', [
            'portofolio' => Portofolio::first()->where('status', '=', 'active')
            ->paginate(6)->withQueryString()
        ]);
    }
public function index ( ) { return view ( 'portofolio' , [ 'portofolio' => Portofolio :: first ( ) -> where ( 'status' , '=' , 'active' ) -> paginate ( 6 ) -> withQueryString ( ) ] ) ; }
Display a listing of the resource.
Display a listing of the resource .