How to remove route prefix from route actions in Laravel

I am creating localization in Laravel 5.3 application. It must follow such requirements: If route path contains locale prefix, locale should be set according to this prefix If there’s no route prefix,…

Search for country

I have built a web application where you can search for a set of locations. Its a free text field where the visitor can input name, street, city, country, etc. I’m using php and Elasticsearch. The …

Laravel : App::setLocale doesn’t work

I’m using laravel 5.1, I’m trying to update locale in app file like this : In Locale Middleware file : … public function handle($request, Closure $next) { if(Session::has(‘locale’…

Date and time in Greek

I’m currently using a website to get the time in Athens: $d = new DateTime(“now”, new DateTimeZone(“Europe/Athens”)); echo $d->format(“l, d M Y”); But I would like the date to be displayed in …