How to edit Laravel 5 Inspiring Quotes

laravel5-inspiring

Sharing is caring!

Every time we created an application in Laravel 5, there will be a welcome page created with dynamically changing Inspiring quotes. If you want to edit the quotes here is the solution to do that.

The Welcome Page Looks like this : (Illuminate\Foundation\Inspiring )

laravel5-inspiring

Edit Laravel 5 Inspiring Quotes

 

We just go the the following path:

application-folder\ vendor\laravel\framework\src\Illuminate\Foundation

Then edit the Inspiring.php file -> Quote() Function -> Collection::make Content

{code type=php}

<?php namespace Illuminate\Foundation;

use Illuminate\Support\Collection;

class Inspiring {

/**
* Get an inspiring quote.
*
* Taylor & Dayle made this commit from Jungfraujoch. (11,333 ft.)
*
* @return string
*/
public static function quote()
{
return Collection::make([

‘When there is no desire, all things are at peace. – Laozi’,
‘Simplicity is the ultimate sophistication. – Leonardo da Vinci’,
‘Simplicity is the essence of happiness. – Cedric Bledsoe’,
‘Smile, breathe, and go slowly. – Thich Nhat Hanh’,
‘Simplicity is an acquired taste. – Katharine Gerould’,
‘Well begun is half done. – Aristotle’,

])->random();
}

}

{/code}

 

Sharing is caring!

Related posts:

Category: Product #: Regular price:$ (Sale ends ) Available from: Condition: Good ! Order now!
  • Or not. Never edit files in your vendor directory. As soon as you run composer update, any changes will be replaced.