GithubHelp home page GithubHelp logo

Comments (3)

shirshak55 avatar shirshak55 commented on May 21, 2024

Actually i think you should upgrade php 7. Because laravel 5.5 will require php 7. Or check releases for old php support. But i guess you need to use old laravel like 5.2 or 5.1 .

I strongly advise to use php 7

from laravel-9-simple-cms.

ozdemirburak avatar ozdemirburak commented on May 21, 2024

I agree with @bloggervista .

However, if you'd like to stick with PHP 5.6, set the "spatie/laravel-analytics" version to "~1.4" and edit the files following their locations like below.

https://github.com/ozdemirburak/laravel-5-simple-cms/blob/43548978ae392783e9228a056c63768dae0177b1/app/Http/Controllers/Admin/DashboardController.php
https://github.com/ozdemirburak/laravel-5-simple-cms/blob/43548978ae392783e9228a056c63768dae0177b1/resources/views/admin/dashboard/index.blade.php

And you may need to either convert the functions like dashboard_box etc. to views like in the current version or add the missing functions from the https://github.com/ozdemirburak/laravel-5-simple-cms/blob/43548978ae392783e9228a056c63768dae0177b1/app/Base/Helpers/AdminHelper.php.

Or just remove spatie/laravel-analytics from composer.json and configure the DashboardController.php like below.

<?php

namespace App\Http\Controllers\Admin;

use App\Base\Controllers\AdminController;

class DashboardController extends AdminController
{
    /**
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function getIndex()
    {
            $this->model = 'User';
            return $this->redirectRoutePath('index', 'admin.fields.dashboard.invalid_setup');
    }
}

from laravel-9-simple-cms.

ozdemirburak avatar ozdemirburak commented on May 21, 2024

Closing the issue, feel free to re-open if you still have questions.

from laravel-9-simple-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.