Member Since 3 Years Ago
1,270 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Replied to How To Get Current Time With Carbon Now And Also Display In 12 Hours Format?
To convert to a AM PM string just don't call toTimeString()..
$time = Carbon::now();
$time->format('Y/m/d g:i:s A');
echo gettype($time); //Return string
Replied to Mcamara Localization Unset Supported Locales On Condition
Ok i solved with a dedicated Middleware that check if user has activated a specific language, anyway thanks for your reply.
Replied to Mcamara Localization Unset Supported Locales On Condition
Hi thank for the reply.
I forgot to say that the application need also to be translated in all those language for the frontend and dashboard utilities. That's why I need some sort of redirection to a main language or a 404 page to avoid that a page been showed if user doesn't compile some languages. I didn't write the full application but I'm adding some functionality, and I saw that the other programmer didn't take care of this aspect. So I'll do it, but I really don't want to rewrite all the application.
Started a new Conversation Mcamara Localization Unset Supported Locales On Condition
Hi is there a way to unset supported locales for one or more routes with a condition?
For Example the application has EN,FR,DE,ES,IT as supported locales, user can write some text in all those language, but who doesn't speak Spanish or Italian doesn't need to compile text fields of those language so he can turn those 2 language off.
I know how to unset from the language selector list in the page, but if i type url in address bar, those 2 urls still exists and of course are empty because the fields in database are NULL.
So how can i redirect from an unsupported locales page to an available supported locales one?
I'm sorry, but i'm little rusty with Laravel, I think I have to create a dedicated middleware to do that and unset those language from there, but i'm not sure. Any tips?