how to put external file in laravel listener class

Solutions on MaxInterview for how to put external file in laravel listener class by the best coders in the world

showing results for - "how to put external file in laravel listener class"
Giulia
14 May 2018
1namespace App\Http\Controllers;
2
3use App\Classes\PricesClass;
4
5class PagesController extends Controller
6{
7  /**
8   * Display homepage.
9   *
10   * @return Response
11   */
12  public function getHome()
13  {
14    $pricesClass = new PricesClass();
15    $prices = $pricesClass->getPrices();
16    return view('pages.home', compact('prices'));
17  }
18
19}
Lucas
18 Feb 2018
1    "autoload": {
2        "classmap": [
3            "database"
4        ],
5        "psr-4": {
6            "App\\": "app/"
7        },
8        "files": [
9            "app/functions/prices.php"
10        ]
11    },
12