Skip to content

Commit cddb8f3

Browse files
raw php file inside view
1 parent 3955415 commit cddb8f3

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

resources/views/listings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>listings</h1>

routes/web.php

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,5 @@
1515
*/
1616

1717
Route::get('/', function () {
18-
return view('welcome');
19-
});
20-
21-
Route::get('/hello', function(){
22-
return response('<h1>Hello World!</h1>', 200)
23-
->header('Content-Type', 'text/plain')
24-
->header('foo', 'bar');
25-
});
26-
27-
Route::get('/posts/{id}', function($id){
28-
//dd($id);
29-
//ddd($id);
30-
return response('Post ' . $id);
31-
})->where('id', '[0-9]+');
32-
33-
Route::get('/search', function(Request $request){
34-
//dd($request->name . ' '. $request->city);
35-
return $request->name . ' '. $request->city;
18+
return view('listings');
3619
});

0 commit comments

Comments
 (0)