publishable/database/seeds/LaratrustSeeder.php
public function truncateLaratrustTables()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS = 0');
        DB::table('permission_role')->truncate();
        DB::table('permission_user')->truncate();
        DB::table('role_user')->truncate();
        \App\User::truncate();
        \Simoja\Laramin\Models\Role::truncate();
        \Simoja\Laramin\Models\Permission::truncate();
        DB::statement('SET FOREIGN_KEY_CHECKS = 1');
    }
public function truncateLaratrustTables()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS = 0');
        DB::table('permission_role')->truncate();
        DB::table('permission_user')->truncate();
        DB::table('role_user')->truncate();
        \App\User::truncate();
        \Simoja\Laramin\Models\Role::truncate();
        \Simoja\Laramin\Models\Permission::truncate();
        DB::statement('SET FOREIGN_KEY_CHECKS = 1');
    }
public function truncateLaratrustTables ( ) { DB :: statement ( 'SET FOREIGN_KEY_CHECKS = 0' ) ; DB :: table ( 'permission_role' ) -> truncate ( ) ; DB :: table ( 'permission_user' ) -> truncate ( ) ; DB :: table ( 'role_user' ) -> truncate ( ) ; \ App \ User :: truncate ( ) ; \ Simoja \ Laramin \ Models \ Role :: truncate ( ) ; \ Simoja \ Laramin \ Models \ Permission :: truncate ( ) ; DB :: statement ( 'SET FOREIGN_KEY_CHECKS = 1' ) ; }
Truncates all the laratrust tables and the users table
@return    void
Truncates all the laratrust tables and the users table