app/Http/Controllers/HomeController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
      $shops = Auth::user();
      $url = env('APP_URL');
      $widgets = Widget::where('user_id', $shops->id)->get();
      $url = 'https://netzilatechnologies.com/artplacer/public';
      return response()->json(['widgets'=>$widgets, 'url'=>$url]);
    }
public function index ( ) { $ shops = Auth :: user ( ) ; $ url = env ( 'APP_URL' ) ; $ widgets = Widget :: where ( 'user_id' , $ shops -> id ) -> get ( ) ; $ url = 'https://netzilatechnologies.com/artplacer/public' ; return response ( ) -> json ( [ 'widgets' => $ widgets , 'url' => $ url ] ) ; }
Display a listing of the resource.
Display a listing of the resource .