Skip to content

How to edit Laravel 5 Inspiring Quotes

Reading Time: < 1 minute

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}

 

See also  Beginner’s Guide to Deploying PHP Laravel on the Google Cloud Platform

Share your thoughts

Leave a Reply