import declaration are not working in Vue app.js file in Laravel-6, editor PHP Storm (Where i want to import vue-router)

I’m importing vue-router in app.js file but it says import is deprecated in currently used JavaScript version. I’ve also tried to import vue-router in another js file (index.js under router folder) got the same problem. import Vue from ‘vue’ import VueRouter from ‘vue-router’ import declaration is not supported by currently JavaScript version

Jquery-ui Auto complete with dynamic input field and multi dimension array in Laravel

I need to add products for sale with dynamic input field. The field use autocomplete from Jquery ui and later I want to fetch both ui.label and ui.value. My dynamic Input Field Code $(document).ready(function () { var count = 1; dynamic_field(count); function dynamic_field(number) { html = ‘<tr><div class=”input_fields_wrap”>’; html += ‘<td><input type=”text” name=”productname[]” class=”form-control producttarget”…

Query eloquent in Laravel 5.8

I have a problem with a query that I am doing in Laravel 5.8 using Eloquent, that I really don’t know what happens. I will explain: My Eloquent query is this: $naviones=DB::connection(‘naviones’)->table(‘ps_customer’) ->select(‘ps_orders.id_order’,’ps_customer.firstname’,’ps_customer.lastname’,’ps_customer.email’,’ps_address.address1′, ‘ps_address.postcode’,’ps_address.city’,’ps_address.phone_mobile’,’ps_orders.id_order’,’ps_orders.reference’, ‘ps_order_detail.product_name’,’ps_order_detail.product_quantity’,’ps_shop.name as tienda’,’ps_carrier.name as transportista’) ->join(‘ps_address’,’ps_customer.id_customer’,’=’,’ps_address.id_customer’) ->join(‘ps_orders’, function($join){ $join->on(‘ps_address.id_customer’,’=’,’ps_orders.id_customer’) ->where(‘ps_address.id_address’,’=’,’ps_orders.id_address_delivery’); }) ->join(‘ps_order_detail’,’ps_orders.id_order’,’=’,’ps_order_detail.id_order’) ->join(‘ps_shop’,’ps_order_detail.id_shop’,’=’,’ps_shop.id_shop’) ->join(‘ps_carrier’,’ps_orders.id_carrier’,’=’,’ps_carrier.id_carrier’) ->where(‘ps_orders.id_order’,’=’,11389) ->get(); As you can see, I…

Javascript call inside Laravel Translation file

Laravel 5.8 with translation files. I need to call a Javascript function from inside a translation file. My initial approach was to call it like this: ‘mentioned you in a <a href=”javascript:postinfo(:post);”>comment</a>’ This is the call from my blade file: {!! __(‘notifications.mentionTimelinePost’, [‘post’ => $mention->data[‘post’]]) !!} I will actually need it inside that translation file…

Laravel: Class not found if it is called from a Trait

After creating several Apps with Laravel and using softDelete properties I realized that methods like destroy(), restore() and kill() are exactly the same among several controllers. Therefore I am trying to put themn in a trait and use it from diferent Controllers. My code is as follows: ProfilesController.php <?php namespace App\Http\Controllers; use App\Profile; class ProfilesController…

How to solve failure name image on seed using faker Laravel 6

I create a table , this table named book I create a seeder to add data on the table, this table has a query like this. public function run() { $books = []; $faker = Faker\Factory::create(); $image_categories = [‘abstract’, ‘animals’, ‘business’, ‘cats’, ‘city’, ‘food’, ‘nature’, ‘technics’, ‘transport’]; for($i=0;$i<25;$i++){ $title = $faker->sentence(mt_rand(3, 6)); $title = str_replace(‘.’,…

I want that “whenever i click on Pie Chart Slice, it should pass values to another page”. How can i achieve this using Lavacharts in laravel 5.5?

I have tried to implement this but didn’t found success. Please help me in implementation of this. Thanks in advance 1. This is my Controller code. public function dashboard() { $project2 = DB::select(“SELECT sector, COUNT(id) AS T_PROJ`enter code here` FROM project_tbl GROUP BY sector ORDER BY sector”); $Users = Lava::DataTable(); $Users->addStringColumn(‘Sector’); $Users->addNumberColumn(‘Total Projects’); foreach($project2 as…