SaeedPrez's avatar

Following convention ☺

When you try to follow the Laravel comment convention ☺

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Results Per Page
    |--------------------------------------------------------------------------
    |
    | This custom created value defines the number of results or object rows
    | that is displayed on every page & is required when using pagination.
    */

    'results_per_page' => env('APP_RESULTS_PER_PAGE', 20),

    /*
    |--------------------------------------------------------------------------
    | Application Name
    |--------------------------------------------------------------------------
    |
    | This value is the name of your application. This value is used when the
    | framework needs to place the application's name in a notification or
    | any other location as required by the application or its packages.
    */

    'name' => 'App Name',
0 likes
2 replies
jlrdw's avatar

Some comments can be over done like

   /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */


this part isn't really needed as a developer should know what aliases mean

    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.

and the ones to use as needed.

1 like
SaeedPrez's avatar

Indeed, I think Taylor's done it just to add some kind of personal touch.. I did just for laughs ☺

1 like

Please or to participate in this conversation.