help desk create view

This commit is contained in:
merdan 2020-04-30 14:49:50 +05:00
parent 19e403a8a0
commit 58513d5740
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ class HelpDeskController extends Controller
public function create(){
$categories = HelpTicketCategory::where('active',1)
->get(['id','title_'.config('app.locale').' as title'])->dump();
->select(['id','title_'.config('app.locale').' as title'])
->pluck('title','id');
dump($categories);
$this->render('Pages.HelpDeskCreateForm',$categories);
}