php - Getting "Undefined variable" AFTER deploying Laravel app on ubuntu16.04
In my app, I have similar to this
@extends('layout.master') <? $user = auth()->user(); $specialities_store_granted = $user->can('specialities.store'); ?> @section('top-buttons') @if ($specialities_store_granted) //..... @endif @stop
code on each page which works fine on my local machine. However, after deploying on Ubuntu I get an error on each page similar to this
Undefined variable: specialities_store_granted (View: /var/www/....com/resources/views/specialities/specialities.blade.php)
What it may be?