Giter Site home page Giter Site logo

Comments (5)

Chung-Wei-Pan avatar Chung-Wei-Pan commented on August 16, 2024

之前別的專案升到 7 遇到的問題
First, the report, render, shouldReport, and renderForConsole methods of your application's App\Exceptions\Handler class should accept instances of the Throwable interface instead of Exception instances:

use Throwable;

public function report(Throwable $exception);
public function shouldReport(Throwable $exception);
public function render($request, Throwable $exception);
public function renderForConsole($output, Throwable $exception);

from equipment-management-system.

Chung-Wei-Pan avatar Chung-Wei-Pan commented on August 16, 2024

faker 套件改用 fakerphp/faker
./database/seeds 改為 ./database/seeders,不改的話測試不會,再將 seeder 內的所有 class 新增 namespace Database\Seeders,並且將原先 Factory 路徑改成 \Faker\Factory

from equipment-management-system.

unciax avatar unciax commented on August 16, 2024

maatwebsite/excel 原使用版本不支援 Laravel 6/7/8 ,需升級到 3.1 (不然也會因為相依套件版本衝突 update failed)
ref: https://github.com/Maatwebsite/Laravel-Excel

from equipment-management-system.

Chung-Wei-Pan avatar Chung-Wei-Pan commented on August 16, 2024

我剛剛偷偷升了一下 composer.json

"require": {
        "php": "^7.3|^8.0",
        "botman/botman": "^2.4",
        "botman/driver-telegram": "^1.5",
        "botman/studio-addons": "^1.5",
        "creativeorange/gravatar": "~1.0",
        "doctrine/dbal": "^2.9",
        "fideloper/proxy": "^4.4",
        "jenssegers/agent": "^2.6",
        "laravel/framework": "^8.0",
        "laravel/tinker": "^2.5",
        "maatwebsite/excel": "^3.1",
        "spatie/laravel-permission": "^4.0"
    },
    "require-dev": {
        "beyondcode/laravel-dump-server": "^1.0",
        "filp/whoops": "^2.0",
        "fakerphp/faker": "^1.9.1",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3",
        "facade/ignition": "^2.5"
    },
...
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeders",
            "database/factories"
        ]
    },

from equipment-management-system.

Chung-Wei-Pan avatar Chung-Wei-Pan commented on August 16, 2024

Routing 需要修改
routes/api.php
routes/web.php

from equipment-management-system.

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.