#Configuração
- Criei o projeto laravel 5.3
- Adicionei o LDAP : https://github.com/Adldap2/Adldap2-Laravel
No arquivo config/app.php adicionei os providers e a facade necessárias:
Providers
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Jorge | |
| * Date: 27/03/2017 | |
| * Time: 13:31 | |
| */ | |
| require 'vendor/autoload.php'; |
| //*********************************************** | |
| // ESTABELECIMENTO MODEL | |
| //*********************************************** | |
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; |
| version: '2' | |
| services: | |
| #------------------------------------------------------------ | |
| # Web server - For live reload and development | |
| # This environment can be used to run npm and node | |
| # commands as well | |
| # Credits: http://github.com/codecasts/ambientum | |
| #------------------------------------------------------------ | |
| dev: |
| #### | |
| # ATENTION: | |
| # Replace all occurences of sandbox with your project's name | |
| # Credits: http://github.com/codecasts/ambientum | |
| #### | |
| # v2 sintax | |
| version: '2' | |
| # Named volumes |
#Configuração
No arquivo config/app.php adicionei os providers e a facade necessárias:
Providers
| const EventListener = { | |
| /** | |
| * Listen to DOM events during the bubble phase. | |
| * | |
| * @param {DOMEventTarget} target DOM element to register listener on. | |
| * @param {string} eventType Event type, e.g. 'click' or 'mouseover'. | |
| * @param {function} callback Callback function. | |
| * @return {object} Object with a `remove` method. | |
| */ | |
| listen (target, eventType, callback) { |
| import { entry as Foo } from 'bar' | |
| function MyFoo (args..., someProp) { | |
| this.someProp = Object.assign({}, Foo.prototype.prop, someProp) | |
| return Foo.call(this, args...) | |
| } | |
| MyFoo.prototype = Foo.prototype |
| // Classe Java para Oracle; | |
| public class Fonetica { | |
| public static fonetizar (String str) : String { | |
| //Fonetiza o string recebido como parametro e devolve | |
| //um outro string (que e o primeiro fonetizado) | |
| str = str_upper(str); //todas as letras maiusculas | |
| str = removePrep(str); //remove as preposições | |
| str = removeAccentuation(str); //remove os acentos | |
| str = removeStrange(str); //remove caracteres diferentes de |
| RewriteEngine On | |
| RewriteBase / | |
| | |
| # Rewrite to pulic | |
| RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR] | |
| RewriteCond %{HTTP_HOST} ^example.com$ | |
| RewriteCond %{REQUEST_URI} !public/ | |
| RewriteRule (.*) /public/$1 [L] | |
| | |
| # Redirect www to domain |