Author : Nistha Adhikari

how to manage assets file in laravel blade this a one of the my blade files @section(‘js’) <script type=”text/javascript” src=”{{bowerAsset(‘bootstrap-validator/dist/validator.min.js’)}}”></script> <script type=”text/javascript” src=”{{bowerAsset(‘bootstrap-select/dist/js/bootstrap-select.min.js’)}}”></script> <script type=”text/javascript” src=”{{bowerAsset(‘bootstrap-switch/dist/js/bootstrap-switch.min.js’)}}”></script> <script type=”text/javascript” src=”{{bowerAsset(‘tinymce/tinymce.js’)}}”></script> <script type=”text/javascript” src=”{{bowerAsset(‘bootbox.js/bootbox.js’)}}”></script> <script type=”text/javascript” src=”{{bowerAsset(‘jquery-form/dist/jquery.form.min.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/tinymce/init.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/instructions/add-content.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/instructions/add-modal.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/instructions/assign.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/instructions/add-priority.js’)}}”></script> <script type=”text/javascript” src=”{{asset(‘asset/js/instructions/change-bs-select.js’)}}”></script> i also ..

Read more

How to rename relation function in eloquent? I using Laravel 5.3 .this my query and I want in result array the ‘children_rec’ renamed to ‘node’. $boxes = Boxes::with(‘children_rec’) ->whereNull(‘box_id’) ->with(‘position’) ->get() ->toJson(128); UPDATE: Relation code: public function child() { return $this ->hasMany(‘PTA_OIMSBoxes’, ‘box_id’); } public function children_rec() { return $this->child() ->with(‘children_rec’) ->with(‘position’)..

Read more