Removing laravel specific code