Add a root namespace (e.g. App) to a Laravel project that doesn't have one.
([\s])([\\']{0,1})(Console|Events|Exceptions|Handlers|Helpers|Http|Models|Providers|Services)([\\;])
->
$1$2App\\$3$4
=====
([\s])"(Console|Events|Exceptions|Handlers|Helpers|Http|Models|Providers|Services)\\
->
$1"App\\\\$2\\
=====
\("(List|All|Models|Here)"\)
->
("$1")
=====
([\s])([\\']{0,1})(List|All|Models|Here);
->
$1$2App\\Models\\$3;
=====
Afterwards, set the namespace (in this case, App) in composer.json and phpspec.yml, e.g.
suites:
main:
namespace: App
psr4_prefix: App
src_path: app