Fixing the laravel resource snippet.