PHPackages                             sancherie/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. sancherie/annotations

ActiveLibrary[Framework](/categories/framework)

sancherie/annotations
=====================

Route Annotations for The Laravel Framework.

9.0.0(4y ago)0142MITPHP ^8.0

Since Feb 4Pushed 4y agoCompare

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

READMEChangelogDependencies (7)Versions (51)Used By (0)

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": "8.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`.

```
