Wednesday, 15 June 2011

php - laravel-authentication-acl package not loading css and js (assets) -



php - laravel-authentication-acl package not loading css and js (assets) -

i utilize laravel framework in project

i downloaded bundle laravel-authentication-acl

1-add composer.json require field next lines:

"require": { ... "jacopo/laravel-authentication-acl": "1.1.*" },

2- run composer update command. 3- opend file app/config/app.php , added 'providers' alternative next line:

'jacopo\authentication\authenticationserviceprovider',

4-then run command publish configuration files: php artisan authentication:prepare

5- run command:

php artisan authentication:install.

6- copy

d:\xamp\htdocs\halls\vendor\jacopo\laravel-authentication-acl\public d:\xamp\htdocs\halls\public\packages\jacopo

7- run command publish configuration files:

php artisan authentication:prepare

8- run command:

php artisan authentication:install

when examin source of files in browser

for illustration http://halls.me/packages/jacopo/laravel-authentication-acl/css/style.css

and click of it shows whoops, looks went wrong. means browser not read assets files help ?

well, if copied:

d:\xamp\htdocs\halls\vendor\jacopo\laravel-authentication-acl\public d:\xamp\htdocs\halls\public\packages\jacopo

you should access files not using:

http://halls.me/packages/jacopo/laravel-authentication-acl/css/style.css

but

http://halls.me/packages/jacopo/css/style.css

php css laravel laravel-4

No comments:

Post a Comment