| Package Data | |
|---|---|
| Maintainer Username: | lessthanthree |
| Maintainer Contact: | hej@carbin.se (Robin Grass) |
| Package Create Date: | 2013-12-12 |
| Package Last Update: | 2013-12-14 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-14 03:09:03 |
| Package Statistics | |
|---|---|
| Total Downloads: | 11 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Minor improvements to Laravel 4.x Router class. Adds support for Route::alias and Route::redirect.
Add this repository to your composer.json.
"reposotories": [
{
"type": "git",
"url": "https://github.com/CarbinCreative/Postmark.git"
}
]
And don't forget about your require, also in composer.json.
"require": [
"carbincreative/postmark": "dev-master"
]
As a final step you'll need to add our ServiceProvider to app/config/app.php.
'Postmark\PostmarkServiceProvider'
Just add a route as you normally would, like so…
Route::get('hello-world', 'FooController@get');
Route::get('company/jobs', 'BarController@get');
Now it's super simple to add either an alias, or redirect.
Route::alias('hejsan-varlden', 'hello-world');
Route::redirect('work-with-us', 'company/jobs');