Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to put external file in laravel listener class

namespace AppHttpControllers;

use AppClassesPricesClass;

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

}
Source by laraveldaily.com #
 
PREVIOUS NEXT
Tagged: #put #external #file #laravel #listener #class
ADD COMMENT
Topic
Name
4+5 =