Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in
Logo1

hfpp2012 / laravel-blog

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • laravel-blog
  • app
  • Http
  • ViewComposers
  • ProfileComposer.php
  • hfpp2012 yinsigan's avatar
    view composer · e0368457
    hfpp2012 yinsigan committed Aug 17, 2017
    e0368457 Browse Files
ProfileComposer.php 238 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

namespace App\Http\ViewComposers;

use Illuminate\View\View;

class ProfileComposer
{
    public function compose(View $view)
    {
        $view->with('married', random_int(0, 1));
        $view->with('test', 'say test');
    }
}