Answers for "how to put external file in laravel listener class"

PHP
0

how to put external file in laravel listener class

namespace App\Http\Controllers;

use App\Classes\PricesClass;

class PagesController extends Controller
{
  /**
   * Display homepage.
   *
   * @return Response
   */
  public function getHome()
  {
    $pricesClass = new PricesClass();
    $prices = $pricesClass->getPrices();
    return view('pages.home', compact('prices'));
  }

}
Posted by: Guest on November-23-2020
0

how to put external file in laravel listener class

"autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "files": [
            "app/functions/prices.php"
        ]
    },
Posted by: Guest on November-23-2020

Code answers related to "how to put external file in laravel listener class"

Browse Popular Code Answers by Language