Support the ongoing development of Laravel.io →
posted 9 years ago
Packages
Last updated 1 year ago.
0

Are you creating the test folder inside vendor folder ? It's not a good very idea to create your own folders inside vendor folder. What i normally do is create a folder call it "Lib" on the same level as app folder and add it to composer.json so composer will generate autoload namespaces for my library.

also the preferred method of file structure is

/app
/vendor
    /yourname
        /library
    /esomkin
        /test

your class namespace should be <?php namespace Esomkin/Test;

Last updated 9 years ago.
0

astroanu said:

Are you creating the test folder inside vendor folder ? It's not a good very idea to create your own folders inside vendor folder. What i normally do is create a folder call it "Lib" on the same level as app folder and add it to composer.json so composer will generate autoload namespaces for my library.

also the preferred method of file structure is

/app
/vendor
   /yourname
       /library
   /esomkin
       /test

your class namespace should be <?php namespace Esomkin/Test;

It's mostly clear, but some moments in dark :) Can you give me an example of creating simple package in Laravel 5?

0

I found http://kodeinfo.com/post/laravel-4-5-package-development and http://stackoverflow.com/questions/28378460/laravel-5-package-..., but as I know workbench is removed from Laravel 5, so I want to solve my problem without workbench.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

esomkin esomkin Joined 18 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.