how to pass $hideCreate value

Laraship QuestionsCategory: Technicalhow to pass $hideCreate value
nao asked 6 years ago
I have a question. At /resources/themes/admin/layouts/crud/index.blade.php file,  below line exists:
@unless(isset($hideCreate)) I'd like not to show create button.
So how do I code to pass $hideCreate?
Question Tags:
1 Answers
laraship Staff answered 6 years ago
Hello, Inside your controller constructor   
$this->setViewSharedData(['hideCreate' => true]);