2

I'm working on a php project and need to use the Collection namespace from Illuminate. I have Laravel installed on my computer. However, when I try and create a new collection with:

use Illuminate\Support\Collection;


$collection = new Collection();

It gives me the error that it cannot find the class Illuminate\Support\Collection. I tried moving my Laravel folder into the same directory as the project and that didn't work either. I also tried looking through my laravel folders and couldn't find the Illuminate files anywhere. Do I have to do a separate installation to get the Illuminate libraries? Any help is appreciated.

MichalOravec
  • 1,560
  • 3
  • 5
  • 20
Evan Rohde
  • 29
  • 3

0 Answers0