loic-sharma / Anvil

A PHP 5.3 CMS built on top of Laravel 4 and other composer components.
BSD 2-Clause "Simplified" License
17 stars 8 forks source link

Some Question #4

Open luki922 opened 11 years ago

luki922 commented 11 years ago

Hey :) Your project bassed on what modules? Entrust for auth or sentry or maybe you doing all? ;p

loic-sharma commented 11 years ago

So far, I am mainly using packages that come with Laravel. I am also using my Profiler and Menu packages. I would like to add some sort of nested set package for the menu system.

I did consider adding Sentry back in the days when Sentry 2 was still very young. It is very likely that I will remove the current authentication system in favor of a third-party one. I haven't looked at Entrust, but I'll give it a shot.

I'm completely fine with removing entire modules out of Anvil if there is a better alternative. So feel free to shoot suggestions! :P

loic-sharma commented 11 years ago

Oh, also, I was thinking about adding Basset for assets.

luki922 commented 11 years ago

Basset for assets its very good idea. For modules in my opinion this http://forums.laravel.io/viewtopic.php?id=9360 is very helpful.

Bruno use Sentry 2 in the project: https://github.com/brunogaspar/laravel4-starter-kit Also Andrew use Zizaco Entrust: https://github.com/andrew13/Laravel-4-Bootstrap-Starter-Site In my opinion better is Sentry 2. You can check theirs projects :)

loic-sharma commented 11 years ago

That module example is interesting. I like the way they set up the JSON file. The one flaw is that they don't use a database system, which makes operations like installation a little trickier. I do want to heavily refactor Anvil's current module system though, so I'll make sure to properly look over it.

I'll check out both of those packages for sure!

One thing I need to start thinking about is the permissions with menu systems. As in, how will I make a guest see the login link and a registered user see the logout link? I don't want to set a permission for each link - that would be a hassle to manage on the admin panel. I guess that'll be a criterion to judge Entrust/Sentry with.

luki922 commented 11 years ago

Also I like JSON file. I think that each file contains configuration and is included in the admin panel and there by the migration in to the database. I don't looking about you module system and I don't understand it I need some doc for it :/

In bruno project in this file http://wklej.org/id/1066769/ (https://github.com/brunogaspar/laravel4-starter-kit/blob/master/app/views/frontend/layouts/default.blade.php) starts at: