コード例 #1
0
 public function __construct()
 {
     $this->services = Service::orderBy('sort_order')->get();
     $this->email = Option::where('key', 'contact.email')->first()->value;
     $this->phone = Option::where('key', 'contact.phone')->first()->value;
     $this->site_title = Option::where('key', 'site.title')->first()->value;
     $this->site_name = Option::where('key', 'site.name')->first()->value;
 }
コード例 #2
0
 public function index()
 {
     $data = array('references' => Reference::orderBy('sort_order')->get(), 'email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('references', $data);
 }
コード例 #3
0
 public function index()
 {
     $data = array('email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('contact', $data);
 }
コード例 #4
0
ファイル: HomeController.php プロジェクト: Peterabsolon/dusan
 public function index()
 {
     $services = Service::orderBy('sort_order')->get();
     $data = array('stuzkova' => $services[0], 'svadba' => $services[1], 'udalost' => $services[2], 'email' => Option::where('key', 'contact.email')->first()->value, 'phone' => Option::where('key', 'contact.phone')->first()->value, 'site_title' => Option::where('key', 'site.title')->first()->value, 'site_name' => Option::where('key', 'site.name')->first()->value);
     return view('home', $data);
 }