Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shto ne HomeController.php
- public function showAbout()
- {
- $personArray = ['Arlindi', 'osht', 'shume', 'i qarte'];
- return View::make('about', compact('personArray'));
- }
- ne views folder-in krijo ni file about.blade.php edhe shto qito
- <h1>About Page!</h1>
- @foreach ($personArray as $person)
- {{ $person }}
- @endforeach
- ne routes.php shto qit line
- Route::get('about-us', 'HomeController@showAbout');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement