Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'EntrustSetupTables' not found #127

Closed
mauroartizzu opened this issue Jun 4, 2014 · 15 comments
Closed

Class 'EntrustSetupTables' not found #127

mauroartizzu opened this issue Jun 4, 2014 · 15 comments

Comments

@mauroartizzu
Copy link

I'm getting

PHP Fatal error:  Class 'EntrustSetupTables' not found in /var/www/rudolf-ordini/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 297
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'EntrustSetupTables' not found","file":"\/var\/www\/rudolf-ordini\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Migrations\/Migrator.php","line":297}}

Base confide and entrust setup. Following readmes

This is my composer.json require section

"require": {
    "laravel/framework": "4.2.*",
    "zizaco/confide": "3.2.x",
    "laravelbook/ardent": "dev-master",
    "zizaco/entrust": "dev-master"
},

Any clues?

@mauroartizzu
Copy link
Author

I discovered why. The migrations creates with {{ '<?php' }}
on top. Removing the {{''}} solves the problem

@tr33m4n
Copy link

tr33m4n commented Jun 5, 2014

Removing the {{''}} does not fully solve the problem... I found rolling back to Laravel 4.1.* fixed everything. Remember to clear the cached views in storage

@lagbox
Copy link

lagbox commented Jun 12, 2014

Anything going on with this issue. Had another person in #laravel with fresh 4.2.3 have this issue.

@axd
Copy link

axd commented Jun 23, 2014

Same here, when runing migrate.

PHP Fatal error:  Class 'EntrustSetupTables' not found in /www/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php on line 297

@punishments
Copy link

Removing the {{ }} around the <?php helped me too +1

@pywebdesign
Copy link

it work for migration, but the roll back is still broken and give the same error

@drfarruk
Copy link

do a php artisan:cache clear after you remove the {{}} from the migrations file, that worked for me

@mauroartizzu
Copy link
Author

I think 1f82aad should solve it.

Edit vendor/zizaco/entrust/src/views/generators/migration.blade.php and fix that.

@Plummat
Copy link

Plummat commented Nov 12, 2014

Issue is still occurring for me on rollback

@elsodev
Copy link

elsodev commented Dec 30, 2014

If anyone still facing this problem, just do a composer dump-autoload

composer dump-autoload

@QuentinBontemps
Copy link

composer dump-autoload solve it for me.

@jago86
Copy link

jago86 commented Oct 19, 2015

composer dump-autoload solve it for me too

@hungtienvu
Copy link

composer dump-autoload does the magic, thank guys

@atanl
Copy link

atanl commented Apr 12, 2016

composer dump-autoload does the magic, thank guys.

@fanjavaid
Copy link

composer dump-autoload work for me, thank guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests