PHPackages                             laravelcollective/annotations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. laravelcollective/annotations

Abandoned → [spatie/laravel-route-attributes](/?search=spatie%2Flaravel-route-attributes)Library[Framework](/categories/framework)

laravelcollective/annotations
=============================

Route Annotations for The Laravel Framework.

v8.1.1(3y ago)370605.6k↑25.5%73[10 issues](https://github.com/LaravelCollective/annotations/issues)[2 PRs](https://github.com/LaravelCollective/annotations/pulls)4MITPHPPHP ^7.2

Since Feb 4Pushed 3y ago16 watchersCompare

[ Source](https://github.com/LaravelCollective/annotations)[ Packagist](https://packagist.org/packages/laravelcollective/annotations)[ Docs](http://laravelcollective.com)[ RSS](/packages/laravelcollective-annotations/feed)WikiDiscussions 6.0 Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (50)Used By (4)

Annotations for The Laravel Framework
-------------------------------------

[](#annotations-for-the-laravel-framework)

[![Build Status](https://camo.githubusercontent.com/204ba15eaa5bfc5b5ca8a9b2706aa089e1af477426a101e1f2a212b051be6281/68747470733a2f2f7472617669732d63692e6f72672f4c61726176656c436f6c6c6563746976652f616e6e6f746174696f6e732e737667)](https://travis-ci.org/LaravelCollective/annotations)[![Total Downloads](https://camo.githubusercontent.com/4064bf48fb119df7340236c90c4628575fd416bce960d1977113bac63651e81e/68747470733a2f2f706f7365722e707567782e6f72672f4c61726176656c436f6c6c6563746976652f616e6e6f746174696f6e732f646f776e6c6f616473)](https://packagist.org/packages/laravelcollective/annotations)[![Latest Stable Version](https://camo.githubusercontent.com/1eff8befcddad10688a3fd3aaa2d219dd178c4dc434fb8adaaa258c3719bd790/68747470733a2f2f706f7365722e707567782e6f72672f4c61726176656c436f6c6c6563746976652f616e6e6f746174696f6e732f762f737461626c652e737667)](https://packagist.org/packages/laravelcollective/annotations)[![Latest Unstable Version](https://camo.githubusercontent.com/d18a11aa779382eda5cecfbc7a625e266defb62ce64ca6976db9e0e979d0639d/68747470733a2f2f706f7365722e707567782e6f72672f4c61726176656c436f6c6c6563746976652f616e6e6f746174696f6e732f762f756e737461626c652e737667)](https://packagist.org/packages/laravelcollective/annotations)[![License](https://camo.githubusercontent.com/59d091c720c6354a874779ad528316ca01c67f3a85a4a31e27ebb848155c5fbe/68747470733a2f2f706f7365722e707567782e6f72672f4c61726176656c436f6c6c6563746976652f616e6e6f746174696f6e732f6c6963656e73652e737667)](https://packagist.org/packages/laravelcollective/annotations)

Annotations
===========

[](#annotations)

- [Installation](#installation)
- [Scanning](#scanning)
- [Event Annotations](#events)
- [Route Annotations](#routes)
- [Scanning Controllers](#controllers)
- [Model Annotations](#models)
- [Custom Annotations](#custom-annotations)

Installation
------------

[](#installation)

> If you have changed the top-level namespace to something like 'MyCompany', then you would use the new namespace instead of 'App'.

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `laravelcollective/annotations`.

```
"require": {
    "laravelcollective/annotations": "6.0.\*"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once composer is done, you'll need to create a Service Provider in `app/Providers/AnnotationsServiceProvider.php`.

```
