You're reading our legacy documentation, the documentation for deprecated versions of UserFrosting. To read the docs for the current version of UserFrosting, visit learn.userfrosting.com.

    Classes and Composer

    I created a new class, but UserFrosting doesn't seem to recognize it.

    You need to install Composer, PHP's dependency manager. In addition to automatically loading external packages, Composer also autoloads the class files for your project. When you add a new class, you must run composer update in the userfrosting directory (the same directory that contains composer.json). Make sure that you have installed Composer globally.

    Composer gives me errors when I run composer update.

    When this happens, you might get an error message complaining about a .git directory missing in vendor. To solve this problem, simply delete the vendor/alexweissman directory and re-run composer update.