Just getting to mvc frameworks and im trying to pass data to my view using blade template engine.
here\'s my routes file
Route::get(\'/\', \'PagesControl
Try this
public function index() { $url = 'example.com'; return view('index', ['url' => $url]); }
Initialize the variable and send it as a parameter to the view.