Search
 
SCRIPT & CODE EXAMPLE
 

PHP

carbon set locale laravel

/** how to localize carbon date time in laravel
go to app/Providers/AppServiceProvider.php

add this code
**/
//do not forget to use CarbonCarbon;
public function boot(){
  Carbon::setLocale('es');
}
Comment

PREVIOUS NEXT
Code Example
Php :: php get client ip 
Php :: Command "route:scan" is not defined. 
Php :: docx file validation laravel 8 
Php :: how to add property to the request object 
Php :: Making visible or hidden attributes from Eloquent temporarily 
Php :: get current page slug 
Php :: php check if string email 
Php :: php pdo rowcount 
Php :: yii2 htpp client form data 
Php :: php add days to date 
Php :: wordpress disable xmlrpc 
Php :: How to use php to set title 
Php :: laravel update single field 
Php :: current date in carbon 
Php :: the requested url was not found on this server. laravel 
Php :: save error cakephp 2 
Php :: php curl ssl verify 
Php :: remove html from string php 
Php :: form_dropdown codeigniter from database is assocative array 
Php :: loop variable in laravel 
Php :: php detect mobile 
Php :: wp override home url with php 
Php :: php file get content replacing & with & 
Php :: How to display data from MySQL database into HTML table using PHP 
Php :: terug tellende for loop php 
Php :: laravel form submit page expired 
Php :: stream_set_blocking 
Php :: php str_replace multiple 
Php :: wordpress wp_head 
Php :: laravel ide-helper 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =