laravel-views

Pass variables to multiple view in laravel

落花浮王杯 提交于 2021-02-08 10:13:00
问题 I want to pass a variable to multiple view bu when i use share method in View. Its says the share method isn't find on View. How you say i use it and i try the composer either but no matter how i try it can't work could you give me simple example of this action My controller categorycontroller.php public function site(){ $data = array(); $data['subcategories'] = SubCategory::all(); $data['categories'] = Category::all(); return view('template.sitemap',compact("data")); } My route web.php Route

TinyMCE and Laravel

感情迁移 提交于 2020-05-13 09:03:35
问题 I'm trying to use tinyMCE with my Laravel project. The problem is when I store the new article the html tags are not working. They're showing up like a plain text on display on my laravel view: This is the code implemented in create.blade.php: <script type="text/javascript" src="{{ asset('/js/tinymce/tinymce.min.js') }}"></script> <script type="text/javascript"> tinymce.init({ selector : "textarea", plugins : ["advlist autolink lists link image charmap print preview anchor", "searchreplace

TinyMCE and Laravel

懵懂的女人 提交于 2020-05-13 09:01:08
问题 I'm trying to use tinyMCE with my Laravel project. The problem is when I store the new article the html tags are not working. They're showing up like a plain text on display on my laravel view: This is the code implemented in create.blade.php: <script type="text/javascript" src="{{ asset('/js/tinymce/tinymce.min.js') }}"></script> <script type="text/javascript"> tinymce.init({ selector : "textarea", plugins : ["advlist autolink lists link image charmap print preview anchor", "searchreplace

Having a dynamic View folder path during runtime in laravel 5.3

江枫思渺然 提交于 2019-12-08 09:39:44
问题 I'm trying to build a saas application (saas here means software as a service) in laravel 5.3 . I've build few service provider which collects the domain name, the theme being used and databases of those particular website. Now I'm trying to implement the pages with view structure through service provider . Now for example I'm having two different themes for two different domains. I'm having the set of HTML code in views in different folders, something like this: View ----| Theme One --------