Change carbon laravel

  laravel, php

I have changed the language to swedish

 public function boot()
    { 
        Carbon::setLocale('sv');

    } 

but it now displays for a day ago(in swedish). I basically want to remove the ‘for’ so it just displays a day ago, how can this be done?

Source: Laravel

Leave a Reply