app/Http/Controllers/Basique/PubsController.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()
    {
        $packs = Pack::get();
        $achatpacks = AcheterPack::where('user_id', Auth::id())->get();
        return view('basique.packs.index', compact('packs', 'achatpacks'));
    }
public function index ( ) { $ packs = Pack :: get ( ) ; $ achatpacks = AcheterPack :: where ( 'user_id' , Auth :: id ( ) ) -> get ( ) ; return view ( 'basique.packs.index' , compact ( 'packs' , 'achatpacks' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .