nonfu / laravel-store

A Simple Laravel Store Based On Laravel 5.2
46 stars 22 forks source link

下载下来运行报错啊 #1

Open Jimmy9876 opened 7 years ago

Jimmy9876 commented 7 years ago

是因为laravel版本的问题吗

nonfu commented 7 years ago

报什么错

cqllang commented 7 years ago

ErrorException in compiled.php line 7348: file_put_contents(/886142d214d6adaa450e610bbea210090eeaba22.php): failed to open stream: Permission denied

at HandleExceptions->handleError('2', 'file_put_contents(/886142d214d6adaa450e610bbea210090eeaba22.php): failed to open stream: Permission denied', '/Users/Lance/work/websites/laravel-store/bootstrap/cache/compiled.php', '7348', array('path' => '/886142d214d6adaa450e610bbea210090eeaba22.php', 'contents' => '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>', 'lock' => false)) at file_put_contents('/886142d214d6adaa450e610bbea210090eeaba22.php', '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>', '0') in compiled.php line 7348 at Filesystem->put('/886142d214d6adaa450e610bbea210090eeaba22.php', '<?php $__env->startSection('商店首页', 'Page Title'); ?> <?php $__env->startSection('sidebar'); ?> @parent <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <?php foreach($products as $product): ?> <div class="col-sm-6 col-md-4"> <div class="thumbnail" > <img src="<?php echo e($product->imageurl); ?>" class="img-responsive"> <div class="caption"> <div class="row"> <div class="col-md-6 col-xs-6"> <h3><?php echo e($product->name); ?></h3> </div> <div class="col-md-6 col-xs-6 price"> <h3> <label>¥<?php echo e($product->price); ?></label></h3> </div> </div> <p><?php echo e($product->description); ?></p> <div class="row"> <div class="col-md-6 col-md-offset-3"> <a href="/addProduct/<?php echo e($product->id); ?>" class="btn btn-success btn-product"><span class="fa fa-shopping-cart"></span> 购买</a></div> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>') in compiled.php line 15297 at BladeCompiler->compile('/Users/Lance/work/websites/laravel-store/resources/views/main/index.blade.php') in compiled.php line 15214 at CompilerEngine->get('/Users/Lance/work/websites/laravel-store/resources/views/main/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'products' => object(Collection))) in /Users/Lance/work/websites/laravel-store/bootstrap/cache/compiled.php line 15049 at View->getContents() in compiled.php line 15037 at View->renderContents() in compiled.php line 15021

cqllang commented 7 years ago

这个是哪儿没设置权限还是你路径创建成了/根目录? @nonfu