Skip to content

Commit c27b3de

Browse files
committed
Fix PHP dep for Laravel; remove unused Laravel snippets
1 parent ed551d3 commit c27b3de

File tree

9 files changed

+22
-64
lines changed

9 files changed

+22
-64
lines changed

articles/quickstart/backend/laravel/index.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ topics:
1515
- quickstart
1616
contentType: tutorial
1717
useCase: quickstart
18-
snippets:
19-
dependencies: server-apis/php-laravel/dependencies
20-
setup: server-apis/php-laravel/setup
21-
use: server-apis/php-laravel/use
22-
request: server-apis/php-laravel/request
2318
articles:
2419
- 01-authorization
2520
- 02-using
@@ -29,10 +24,9 @@ github:
2924
org: auth0-samples
3025
repo: auth0-laravel-api-samples
3126
requirements:
32-
- Composer 1.5
33-
- PHP 7.0
34-
- Laravel 5.5
35-
- laravel-auth0 5.0.2
27+
- Composer 1.5 and up
28+
- PHP 7.1.3 and up
29+
- Laravel 5.7 and up
3630
next_steps:
3731
- path: 01-authorization
3832
list:
@@ -47,4 +41,4 @@ next_steps:
4741
href: "/anomaly-detection"
4842
- text: Learn about rules
4943
icon: 345
50-
href: "/rules"
44+
href: "/rules"

articles/quickstart/webapp/laravel/01-login.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ useCase: quickstart
1313
github:
1414
path: 00-Starter-Seed
1515
---
16+
17+
<!-- markdownlint-disable MD002 -->
18+
1619
<%= include('../_includes/_getting_started', { library: 'Laravel', callback: 'http://localhost:3000/auth0/callback' }) %>
1720

1821
<%= include('../../../_includes/_logout_url', { returnTo: 'http://localhost:3000' }) %>
@@ -35,7 +38,7 @@ By the end of those 2 sections, you should have a Laravel application up and run
3538

3639
### Install the Auth0 plugin and its dependencies
3740

38-
${snippet(meta.snippets.dependencies)}
41+
To install this plugin run `composer require auth0/login`
3942

4043
::: note
4144
**[Composer](https://getcomposer.org/)** is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. See Composer's [getting started](https://getcomposer.org/doc/00-intro.md) doc for information on how to use it.
@@ -50,7 +53,14 @@ This will install:
5053

5154
First, we need to add the Auth0 Services to the list of Providers in `config/app.php`:
5255

53-
${snippet(meta.snippets.setup)}
56+
```php
57+
// config/app.php
58+
59+
'providers' => array(
60+
// ...
61+
Auth0\Login\LoginServiceProvider::class,
62+
);
63+
```
5464

5565
If you want to use an `Auth0` facade, add an alias in the same file (not required, [more information on facades here](http://laravel.com/docs/5.7/facades)):
5666

articles/quickstart/webapp/laravel/index.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
title: PHP (Laravel)
22
image: /media/platforms/php.png
3+
languages:
4+
- PHP
35
topics:
46
- quickstart
57
contentType: tutorial
@@ -8,10 +10,6 @@ author:
810
name: Josh Cunningham
911
email: josh.cunningham@auth0.com
1012
community: false
11-
snippets:
12-
dependencies: server-platforms/laravel/dependencies
13-
setup: server-platforms/laravel/setup
14-
use: server-platforms/laravel/use
1513
seo_alias: laravel
1614
default_article: 01-login
1715
articles:
@@ -22,9 +20,9 @@ github:
2220
repo: auth0-laravel-php-web-app
2321
branch: master
2422
requirements:
25-
- Composer 1.5
26-
- PHP 7.0
27-
- Laravel 5.7
23+
- Composer 1.5 and up
24+
- PHP 7.1.3 and up
25+
- Laravel 5.7 and up
2826
next_steps:
2927
- path: 01-login
3028
list:
@@ -39,4 +37,4 @@ next_steps:
3937
href: "/anomaly-detection"
4038
- text: Learn about rules
4139
icon: 345
42-
href: "/rules"
40+
href: "/rules"

snippets/server-apis/php-laravel/dependencies.md

-3
This file was deleted.

snippets/server-apis/php-laravel/setup.md

-9
This file was deleted.

snippets/server-apis/php-laravel/use.md

-5
This file was deleted.

snippets/server-platforms/laravel/dependencies.md

-1
This file was deleted.

snippets/server-platforms/laravel/setup.md

-8
This file was deleted.

snippets/server-platforms/laravel/use.md

-18
This file was deleted.

0 commit comments

Comments
 (0)