first commit
This commit is contained in:
23
app/Http/ViewComposers/Index.php
Normal file
23
app/Http/ViewComposers/Index.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\ViewComposers;
|
||||
|
||||
use Illuminate\View\View;
|
||||
|
||||
class Index
|
||||
{
|
||||
/**
|
||||
* Bind data to the view.
|
||||
*
|
||||
* @param View $view
|
||||
* @return void
|
||||
*/
|
||||
public function compose(View $view)
|
||||
{
|
||||
$limits = ['10' => '10', '25' => '25', '50' => '50', '100' => '100'];
|
||||
|
||||
$years = ['2017' => '2017', '2016' => '2016', '2015' => '2015', '2014' => '2014'];
|
||||
|
||||
$view->with(['limits' => $limits, 'years' => $years]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user