jeudi 20 octobre 2016

laravel building a package

Trying to build a package, for a ticketing system, but i obviously have a typo or misconception on the process.

{
    "name": "pureintellect/tickets",
    "description": "Laravel Ticketing system",
    "license": "MIT",
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.5.9"
    },
    "autoload": {
        "psr-4": {
            "Pureintellect\\Tickets\\": "src/"

        }
    }
}

This is a Laravel 5.3 project. The package I'm writing is in

packages/pureintellect/tickets

the service provider is

packages/pureintellect/tickets/src/TicketsServiceProvider.php

Error

[Symfony\Component\Debug\Exception\FatalThrowableError]
 Class 'Pureintellect\Tickets\TicketsServiceProvider' not found

What am I doing wrong? I have already tried composer dump-autoload -o and composer update as other message have suggested. I'm sure its something to do with file path or namespacing... but maybe I've just been staring at it too long. As I'm sure we all know its the little bugs that take 90% of our time. Thanks for the help



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire