Added "shares" method to view instance.

This commit is contained in:
Taylor Otwell
2012-03-22 13:38:22 -05:00
parent e96f75e8cc
commit 090bf9b3f8
3 changed files with 22 additions and 0 deletions

View File

@@ -35,6 +35,9 @@
Route::get('/', function()
{
$content = file_get_contents(path('app').'views/home/index.php');
$matches = preg_match('/(\s*)@forelse(\s*\(.*\))(.+)@endforelse/m', $content);
die(var_dump($matches));
return View::make('home.index');
});