Reputation: 13555
I updated the project but it turn out showing blank page for all frontend route, I roll back the changes but seems no luck.
The backend works: http://unionmaterials.com.hk/admin
The frontend, however, every page just return blank page
http://unionmaterials.com.hk/page/contact
I have tried log in the controller and
class PageController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function contact()
{
$this->data['contact'] = Contact::find(1);
return view('contact')->with($this->data);
}
}
If I change to another view, e.g. return view('welcome')->with($this->data);
, it works, so I copy the whole content from welcome to contact, but it still return blank page
Anyway to fix the problem ? Thanks a lot
Upvotes: 1
Views: 1715
Reputation: 336
In my case I had to go to storage\framework\views
and delete everything from there and the everything worked well.
Upvotes: 1