culttt / cribbb

http://cribbb.com
449 stars 99 forks source link

¿How do you load your package inside Laravel? #4

Closed asmerkin closed 10 years ago

asmerkin commented 10 years ago

I've been searching for a class loader here in your package but i haven't found it.

How do you load your packages inside Laravel?

Thanks!

philipbrown commented 10 years ago

Laravel uses Composer's autoload here https://github.com/cribbb/cribbb/blob/master/public/index.php#L21

asmerkin commented 10 years ago

Oh, yes, i realized about that minutes ago. Now i'm loading things with dump-autoload and PSR-4.

Do you have an example of a store mehod in a repository? I'm trying to figure out how to save stuff without loosing the model reference.

Thanks !

philipbrown commented 10 years ago

Yeah I have a lot of Laravel tutorials over on Culttt http://culttt.com/tag/cribbb/