/var/www/phplaravel/public/index.php
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
/var/www/phplaravel/public/index.php
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
/var/www/phplaravel/public/index.php
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
/var/www/phplaravel/storage/framework/views/f452f82d35d2b03108b43e78b009d714a7d40358.php
<?php
$datafeeditems = $datafeed->dataFeedItems()->orderBy('gmdate', 'desc')->take(30)->get();
$carouselId = hash('md5', \UUID::generate()->__toString());
$adCount = 0;
$allAds = collect();
if (isset($geofences)) {
array_push($geofences, Cookie::get('geodetect'));
} else {
$geofences = [Cookie::get('geodetect')];
}
if (isset($hide_wpadblocks) && $hide_wpadblocks == true) {
} else {
$geoRevAdsBuilder = \App\Models\Things\WPAdBlock::where('datePublished', '<', \Carbon\Carbon::now())->where('expires', '>', \Carbon\Carbon::now())->where('adtype', 'full_page')->where('revenue_type', 'revenue');
if(isset($geofences)) {
$geoRevAdsBuilder = $geoRevAdsBuilder->whereIn('schedule.geofences', $geofences);
}
$geoRevAds = $geoRevAdsBuilder->orderBy('position', 'desc')->get();
$allAds = $allAds->merge($geoRevAds);
$geoNonRevAdsBuilder = \App\Models\Things\WPAdBlock::where('datePublished', '<', \Carbon\Carbon::now())->where('expires', '>', \Carbon\Carbon::now())->where('adtype', 'full_page')->where('revenue_type', 'non-revenue');
if(isset($geofences)) {
$geoNonRevAdsBuilder = $geoNonRevAdsBuilder->whereIn('schedule.geofences', $geofences);
}
$geoNonRevAds = $geoNonRevAdsBuilder->orderBy('position', 'desc')->get();
$allAds = $allAds->merge($geoNonRevAds);
$geoSponsorAdsBuilder = \App\Models\Things\WPAdBlock::where('datePublished', '<', \Carbon\Carbon::now())->where('expires', '>', \Carbon\Carbon::now())->where('adtype', 'full_page')->where('revenue_type', 'sponsorship');
if(isset($geofences)) {
$geoSponsorAdsBuilder = $geoSponsorAdsBuilder->whereIn('schedule.geofences', $geofences);
}
$geoSponsorAds = $geoSponsorAdsBuilder->orderBy('position', 'desc')->get();
$allAds = $allAds->merge($geoSponsorAds);
$adCount = $allAds->count();
Arguments
"Call to a member function dataFeedItems() on null"
/var/www/phplaravel/public/index.php
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application