Wednesday, 1 March 2017

Topic 6 - Bootstrap a Larave Framework

Laravel Constant variable configuration can be done through creating a php file in config/YourConstant.php.

<?php

return [
    'display' => 25,
];
In example above, a php file contain a constant integer number which can be use anywhere in project folder. Thus to invoke the calling method, we can write like this :

@section('page-content')

     Config::get('columns.display');

@endsection

No comments:

Post a Comment