Please post your entire view. Also, make sure Laravel is in debug mode so you get stack traces.
ps. When posting code, wrap it in three back ticks (`) to create code blocks.
So somewhere after this video
https://laracasts.com/series/laravel-5-fundamentals/episodes/7
My homestead is no longer loading in safari, it just says "Can't open page".
Besides the video I have been takin the Team Treehouse Javascript course and tried applying what I learned to my views in Laravel. I made the following changes in Laravel, could any of the following changes look incorrect?
(in routes)
Route::get('/', 'AppController@Homescreenmethod');
(in AppController)
`namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests; use App\Http\Controllers\Controller;
class AppController extends Controller { public function contactmethod() { return view('Contactview')->with([
'first' => 'Bill',
'last' => 'Cadara'
//The above way of listing information, and is meant for attaching many $varibles to its own value. ]); }
public function aboutmethod() {
$animals = [
'Rainbow Shrimp',
'Nutebrech',
'Red Panda',
'Wolf',
'Jelly Fish',
'Bat'
];
return view('Aboutview', compact('animals'));
//The above way of attaching information, this is meant for attaching many values to ONE variable.
}
public function Homescreenmethod() {
return view('Homescreenview');
}
}(in Homescreenview)DOCTYPE html
html lang="en
head
meta charset="UTF-8"
script src="javascript.js"></script
title>Title</title
/head
body
h2>This is the home screen!</h2
/body
/html(in javascript.js)/**
P.S. my javascript.js file is in resources/views Im also thinking maybe it was an update? Or perhaps something when I was migrating things? Everything seemed to go just as Jeffires screen did, only difference is that I am using MySQL, not Sqlite.
Please or to participate in this conversation.