jambari's avatar

Config Laravel Backpack admin panel

I was just doing some configurations for backpack admin panel on config/backpack/base.php, the dashboard admin panel is good, but when I go to home page, webapp.dev/ it returned like this

[2017-01-05 01:54:39] local.ERROR: ErrorException: file_put_contents(/home/jambari/Desktop/angkasa/storage/framework/views/aa4f457403d2de56cf03c84e113f257275736343.php): failed to open stream: Permission denied in /home/jambari/Desktop/angkasa/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:111
Stack trace:

here the filesystem.php:111

   public function putStream($path, $resource, array $config = [])
    {
        if ( ! is_resource($resource)) {
            throw new InvalidArgumentException(__METHOD__ . ' expects argument #2 to be a valid resource.');
        } //this is the line 111

        $path = Util::normalizePath($path);
        $config = $this->prepareConfig($config);
        Util::rewindStream($resource);

        if ($this->has($path)) {
            return (bool) $this->getAdapter()->updateStream($path, $resource, $config);
        }
0 likes
1 reply
salmon's avatar

Make sure your file permissions are correct

Most folders should be normal "755" and files, "644" but Laravel needs the storage and cache folder to have write permission.

sudo chgrp -R www-data storage bootstrap/cache

sudo chmod -R ug+rwx storage bootstrap/cache

1 like

Please or to participate in this conversation.