59 |
60 |
61 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | ### [Styde](https://styde.net/)
2 |
3 | Styde es una nueva comunidad de desarrollo web en español. Con nosotros podrás aprender Laravel, PHP y otras tecnologías, desde tutoriales básicos gratuitos hasta cursos avanzados a bajo costo, de la mano de profesionales con años de experiencia.
4 |
5 | # Curso Primeros Pasos con Laravel 5.*
6 |
7 | En el 2015, en duilio.me, creamos un [curso básico de Laravel, en su versión 5.0](https://styde.net/laravel-5/). Un año después, en este 2016, estamos recreando nuevamente el **curso básico gratuito**, esta vez utilizando la primera versión **LTS de Laravel (5.1)** y enfocándonos en los fundamentos del framework, que te permitirán comenzar a desarrollar con todas las versiones de Laravel 5 (actualmente la 5.1 LTS y la versión 5.2).
8 |
9 | Con este curso aprenderás sobre los conceptos más importantes del framework más popular de PHP, tales como: rutas, migraciones, vistas, controladores, pruebas con PHPUnit, entre otros. Conocimientos con los cuales podrás desarrollar aplicaciones de PHP modernas de una manera rápida y profesional.
10 |
11 | * [1\. Instalación de Composer y Laravel 5.1](https://styde.net/instalacion-de-composer-y-laravel-5-1/) - 9:30
12 |
13 | * [2\. Flujo de trabajo en el desarrollo con Laravel](https://styde.net/flujo-de-trabajo-en-el-desarrollo-de-laravel/) - 19:23
14 |
15 | * [3\. Cómo crear rutas en Laravel 5.*](https://styde.net/como-crear-rutas-en-laravel-5/) - 17:24
16 |
17 | * [4\. Rutas para formularios en Laravel (método POST)](https://styde.net/rutas-para-formularios-en-laravel-metodo-post/) - 10:14
18 |
19 | * [5\. Sistema de plantillas y layout con Bootstrap 3](https://styde.net/sistema-de-plantillas-y-layout-con-bootstrap-3/) - 16:48
20 |
21 | * [6\. Creación y uso de controladores](https://styde.net/creacion-y-uso-de-controladores-en-laravel-5-1-2/) - 10:59
22 |
23 | * [7\. Creación de registros](https://styde.net/creacion-de-registros-con-laravel-5-1-2/) - 15:36
24 |
25 | * [8\. Validación de datos del usuario](https://styde.net/validacion-de-datos-del-usuario-con-laravel/) - 14:04
26 |
27 | * [9\. Creación de tablas con el sistema de migraciones](https://styde.net/creacion-de-tablas-con-el-sistema-de-migraciones-de-laravel/) - 17:20
28 |
29 | * [10\. Configuración de bases de datos y entorno de desarrollo para Laravel](https://styde.net/configuracion-de-bases-de-datos-y-entorno-de-desarrollo-para-laravel/) - 18:55
30 |
31 | * [11\. Paginación, y carga de registros con seeders y model factories](https://styde.net/paginacion-y-carga-de-registros-con-seeders-y-model-factories-laravel/) - 11:12
32 |
33 | * [12\. Eloquent el ORM de Laravel](https://styde.net/eloquent-el-orm-de-laravel/) - 12:53
34 |
35 | * [13\. Ejercicio: detalle de notas](https://styde.net/ejercicio-mostrar-los-detalles-de-un-registro-con-laravel/) - 7:22
36 |
37 | * **14\. Solución: detalle de notas**
38 |
39 | #### Otros cursos
40 |
41 | **Laravel desde cero**
42 | - [ Curso de Laravel 5.1 ](https://styde.net/curso-introductorio-laravel-5-1/)
43 | - [ Crea una aplicación con Laravel 5 ](https://styde.net/curso-crea-aplicaciones-con-laravel-5/)
44 | - [ Curso básico de Eloquent ORM ](https://styde.net/curso-basico-de-eloquent-orm-con-laravel-5-1/)
45 |
46 |
47 | **Laravel y PHP avanzado**
48 | - [ Curso de administración de servidores para PHP y Laravel ](https://styde.net/curso-configuracion-administracion-de-servidores-php-laravel/)
49 | - [ Curso avanzado de Eloquent ORM ](https://styde.net/curso-avanzado-de-eloquent-orm/)
50 | - [ Crea componentes para PHP ](https://styde.net/curso-crea-componentes-para-php-y-laravel/)
51 | - [ Interfaces dinámicas con Laravel y jQuery ](https://styde.net/curso-de-interfaces-dinamicas-con-laravel-y-jquery/)
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => env('DB_CONNECTION', 'mysql'),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Database Connections
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here are each of the database connections setup for your application.
37 | | Of course, examples of configuring each database platform that is
38 | | supported by Laravel is shown below to make development simple.
39 | |
40 | |
41 | | All database work in Laravel is done through the PHP PDO facilities
42 | | so make sure you have the driver for your particular database of
43 | | choice installed on your machine before you begin development.
44 | |
45 | */
46 |
47 | 'connections' => [
48 |
49 | 'mysql' => [
50 | 'driver' => 'mysql',
51 | 'host' => env('DB_HOST', 'localhost'),
52 | 'database' => env('DB_DATABASE', 'forge'),
53 | 'username' => env('DB_USERNAME', 'forge'),
54 | 'password' => env('DB_PASSWORD', ''),
55 | 'charset' => 'utf8',
56 | 'collation' => 'utf8_unicode_ci',
57 | 'prefix' => '',
58 | 'strict' => false,
59 | ],
60 |
61 | 'mysql_tests' => [
62 | 'driver' => 'mysql',
63 | 'host' => env('DB_HOST', 'localhost'),
64 | 'database' => env('DB_DATABASE', 'forge').'_tests',
65 | 'username' => env('DB_USERNAME', 'forge'),
66 | 'password' => env('DB_PASSWORD', ''),
67 | 'charset' => 'utf8',
68 | 'collation' => 'utf8_unicode_ci',
69 | 'prefix' => '',
70 | 'strict' => false,
71 | ],
72 |
73 | ],
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Migration Repository Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | This table keeps track of all the migrations that have already run for
81 | | your application. Using this information, we can determine which of
82 | | the migrations on disk haven't actually been run in the database.
83 | |
84 | */
85 |
86 | 'migrations' => 'migrations',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Redis Databases
91 | |--------------------------------------------------------------------------
92 | |
93 | | Redis is an open source, fast, and advanced key-value store that also
94 | | provides a richer set of commands than a typical key-value systems
95 | | such as APC or Memcached. Laravel makes it easy to dig right in.
96 | |
97 | */
98 |
99 | 'redis' => [
100 |
101 | 'cluster' => false,
102 |
103 | 'default' => [
104 | 'host' => '127.0.0.1',
105 | 'port' => 6379,
106 | 'database' => 0,
107 | ],
108 |
109 | ],
110 |
111 | ];
112 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | SMTP Host Address
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may provide the host address of the SMTP server used by your
26 | | applications. A default option is provided that is compatible with
27 | | the Mailgun mail service which will provide reliable deliveries.
28 | |
29 | */
30 |
31 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | SMTP Host Port
36 | |--------------------------------------------------------------------------
37 | |
38 | | This is the SMTP port used by your application to deliver e-mails to
39 | | users of the application. Like the host we have set this value to
40 | | stay compatible with the Mailgun e-mail application by default.
41 | |
42 | */
43 |
44 | 'port' => env('MAIL_PORT', 587),
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Global "From" Address
49 | |--------------------------------------------------------------------------
50 | |
51 | | You may wish for all e-mails sent by your application to be sent from
52 | | the same address. Here, you may specify a name and address that is
53 | | used globally for all e-mails that are sent by your application.
54 | |
55 | */
56 |
57 | 'from' => ['address' => null, 'name' => null],
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | E-Mail Encryption Protocol
62 | |--------------------------------------------------------------------------
63 | |
64 | | Here you may specify the encryption protocol that should be used when
65 | | the application send e-mail messages. A sensible default using the
66 | | transport layer security protocol should provide great security.
67 | |
68 | */
69 |
70 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | SMTP Server Username
75 | |--------------------------------------------------------------------------
76 | |
77 | | If your SMTP server requires a username for authentication, you should
78 | | set it here. This will get used to authenticate with your server on
79 | | connection. You may also set the "password" value below this one.
80 | |
81 | */
82 |
83 | 'username' => env('MAIL_USERNAME'),
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | SMTP Server Password
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may set the password required by your SMTP server to send out
91 | | messages from your application. This will be given to the server on
92 | | connection so that the application will be able to send messages.
93 | |
94 | */
95 |
96 | 'password' => env('MAIL_PASSWORD'),
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Sendmail System Path
101 | |--------------------------------------------------------------------------
102 | |
103 | | When using the "sendmail" driver to send e-mails, we will need to know
104 | | the path to where Sendmail lives on this server. A default path has
105 | | been provided here, which will work well on most of your systems.
106 | |
107 | */
108 |
109 | 'sendmail' => '/usr/sbin/sendmail -bs',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Mail "Pretend"
114 | |--------------------------------------------------------------------------
115 | |
116 | | When this option is enabled, e-mail will not actually be sent over the
117 | | web and will instead be written to your application's logs files so
118 | | you may inspect the message. This is great for local development.
119 | |
120 | */
121 |
122 | 'pretend' => false,
123 |
124 | ];
125 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Sweeping Lottery
91 | |--------------------------------------------------------------------------
92 | |
93 | | Some session drivers must manually sweep their storage location to get
94 | | rid of old sessions from storage. Here are the chances that it will
95 | | happen on a given request. By default, the odds are 2 out of 100.
96 | |
97 | */
98 |
99 | 'lottery' => [2, 100],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Name
104 | |--------------------------------------------------------------------------
105 | |
106 | | Here you may change the name of the cookie used to identify a session
107 | | instance by ID. The name specified here will get used every time a
108 | | new session cookie is created by the framework for every driver.
109 | |
110 | */
111 |
112 | 'cookie' => 'laravel_session',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Path
117 | |--------------------------------------------------------------------------
118 | |
119 | | The session cookie path determines the path for which the cookie will
120 | | be regarded as available. Typically, this will be the root path of
121 | | your application but you are free to change this when necessary.
122 | |
123 | */
124 |
125 | 'path' => '/',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Domain
130 | |--------------------------------------------------------------------------
131 | |
132 | | Here you may change the domain of the cookie used to identify a session
133 | | in your application. This will determine which domains the cookie is
134 | | available to in your application. A sensible default has been set.
135 | |
136 | */
137 |
138 | 'domain' => null,
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | HTTPS Only Cookies
143 | |--------------------------------------------------------------------------
144 | |
145 | | By setting this option to true, session cookies will only be sent back
146 | | to the server if the browser has a HTTPS connection. This will keep
147 | | the cookie from being sent to you if it can not be done securely.
148 | |
149 | */
150 |
151 | 'secure' => false,
152 |
153 | ];
154 |
--------------------------------------------------------------------------------
/resources/lang/en/validation.php:
--------------------------------------------------------------------------------
1 | 'The :attribute must be accepted.',
17 | 'active_url' => 'The :attribute is not a valid URL.',
18 | 'after' => 'The :attribute must be a date after :date.',
19 | 'alpha' => 'The :attribute may only contain letters.',
20 | 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
21 | 'alpha_num' => 'The :attribute may only contain letters and numbers.',
22 | 'array' => 'The :attribute must be an array.',
23 | 'before' => 'The :attribute must be a date before :date.',
24 | 'between' => [
25 | 'numeric' => 'The :attribute must be between :min and :max.',
26 | 'file' => 'The :attribute must be between :min and :max kilobytes.',
27 | 'string' => 'The :attribute must be between :min and :max characters.',
28 | 'array' => 'The :attribute must have between :min and :max items.',
29 | ],
30 | 'boolean' => 'The :attribute field must be true or false.',
31 | 'confirmed' => 'The :attribute confirmation does not match.',
32 | 'date' => 'The :attribute is not a valid date.',
33 | 'date_format' => 'The :attribute does not match the format :format.',
34 | 'different' => 'The :attribute and :other must be different.',
35 | 'digits' => 'The :attribute must be :digits digits.',
36 | 'digits_between' => 'The :attribute must be between :min and :max digits.',
37 | 'email' => 'The :attribute must be a valid email address.',
38 | 'exists' => 'The selected :attribute is invalid.',
39 | 'filled' => 'The :attribute field is required.',
40 | 'image' => 'The :attribute must be an image.',
41 | 'in' => 'The selected :attribute is invalid.',
42 | 'integer' => 'The :attribute must be an integer.',
43 | 'ip' => 'The :attribute must be a valid IP address.',
44 | 'json' => 'The :attribute must be a valid JSON string.',
45 | 'max' => [
46 | 'numeric' => 'The :attribute may not be greater than :max.',
47 | 'file' => 'The :attribute may not be greater than :max kilobytes.',
48 | 'string' => 'The :attribute may not be greater than :max characters.',
49 | 'array' => 'The :attribute may not have more than :max items.',
50 | ],
51 | 'mimes' => 'The :attribute must be a file of type: :values.',
52 | 'min' => [
53 | 'numeric' => 'The :attribute must be at least :min.',
54 | 'file' => 'The :attribute must be at least :min kilobytes.',
55 | 'string' => 'The :attribute must be at least :min characters.',
56 | 'array' => 'The :attribute must have at least :min items.',
57 | ],
58 | 'not_in' => 'The selected :attribute is invalid.',
59 | 'numeric' => 'The :attribute must be a number.',
60 | 'regex' => 'The :attribute format is invalid.',
61 | 'required' => 'The :attribute field is required.',
62 | 'required_if' => 'The :attribute field is required when :other is :value.',
63 | 'required_with' => 'The :attribute field is required when :values is present.',
64 | 'required_with_all' => 'The :attribute field is required when :values is present.',
65 | 'required_without' => 'The :attribute field is required when :values is not present.',
66 | 'required_without_all' => 'The :attribute field is required when none of :values are present.',
67 | 'same' => 'The :attribute and :other must match.',
68 | 'size' => [
69 | 'numeric' => 'The :attribute must be :size.',
70 | 'file' => 'The :attribute must be :size kilobytes.',
71 | 'string' => 'The :attribute must be :size characters.',
72 | 'array' => 'The :attribute must contain :size items.',
73 | ],
74 | 'string' => 'The :attribute must be a string.',
75 | 'timezone' => 'The :attribute must be a valid zone.',
76 | 'unique' => 'The :attribute has already been taken.',
77 | 'url' => 'The :attribute format is invalid.',
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Custom Validation Language Lines
82 | |--------------------------------------------------------------------------
83 | |
84 | | Here you may specify custom validation messages for attributes using the
85 | | convention "attribute.rule" to name the lines. This makes it quick to
86 | | specify a specific custom language line for a given attribute rule.
87 | |
88 | */
89 |
90 | 'custom' => [
91 | 'attribute-name' => [
92 | 'rule-name' => 'custom-message',
93 | ],
94 | ],
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Custom Validation Attributes
99 | |--------------------------------------------------------------------------
100 | |
101 | | The following language lines are used to swap attribute place-holders
102 | | with something more reader friendly such as E-Mail Address instead
103 | | of "email". This simply helps us make messages a little cleaner.
104 | |
105 | */
106 |
107 | 'attributes' => [],
108 |
109 | ];
110 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_DEBUG', false),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application URL
21 | |--------------------------------------------------------------------------
22 | |
23 | | This URL is used by the console to properly generate URLs when using
24 | | the Artisan command line tool. You should set this to the root of
25 | | your application so that it is used when running Artisan tasks.
26 | |
27 | */
28 |
29 | 'url' => 'http://localhost',
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application Timezone
34 | |--------------------------------------------------------------------------
35 | |
36 | | Here you may specify the default timezone for your application, which
37 | | will be used by the PHP date and date-time functions. We have gone
38 | | ahead and set this to a sensible default for you out of the box.
39 | |
40 | */
41 |
42 | 'timezone' => 'UTC',
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Locale Configuration
47 | |--------------------------------------------------------------------------
48 | |
49 | | The application locale determines the default locale that will be used
50 | | by the translation service provider. You are free to set this value
51 | | to any of the locales which will be supported by the application.
52 | |
53 | */
54 |
55 | 'locale' => 'en',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Application Fallback Locale
60 | |--------------------------------------------------------------------------
61 | |
62 | | The fallback locale determines the locale to use when the current one
63 | | is not available. You may change the value to correspond to any of
64 | | the language folders that are provided through your application.
65 | |
66 | */
67 |
68 | 'fallback_locale' => 'en',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Encryption Key
73 | |--------------------------------------------------------------------------
74 | |
75 | | This key is used by the Illuminate encrypter service and should be set
76 | | to a random, 32 character string, otherwise these encrypted strings
77 | | will not be safe. Please do this before deploying an application!
78 | |
79 | */
80 |
81 | 'key' => env('APP_KEY', 'SomeRandomString'),
82 |
83 | 'cipher' => 'AES-256-CBC',
84 |
85 | /*
86 | |--------------------------------------------------------------------------
87 | | Logging Configuration
88 | |--------------------------------------------------------------------------
89 | |
90 | | Here you may configure the log settings for your application. Out of
91 | | the box, Laravel uses the Monolog PHP logging library. This gives
92 | | you a variety of powerful log handlers / formatters to utilize.
93 | |
94 | | Available Settings: "single", "daily", "syslog", "errorlog"
95 | |
96 | */
97 |
98 | 'log' => 'single',
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Autoloaded Service Providers
103 | |--------------------------------------------------------------------------
104 | |
105 | | The service providers listed here will be automatically loaded on the
106 | | request to your application. Feel free to add your own services to
107 | | this array to grant expanded functionality to your applications.
108 | |
109 | */
110 |
111 | 'providers' => [
112 |
113 | /*
114 | * Laravel Framework Service Providers...
115 | */
116 | Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
117 | Illuminate\Auth\AuthServiceProvider::class,
118 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
119 | Illuminate\Bus\BusServiceProvider::class,
120 | Illuminate\Cache\CacheServiceProvider::class,
121 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
122 | Illuminate\Routing\ControllerServiceProvider::class,
123 | Illuminate\Cookie\CookieServiceProvider::class,
124 | Illuminate\Database\DatabaseServiceProvider::class,
125 | Illuminate\Encryption\EncryptionServiceProvider::class,
126 | Illuminate\Filesystem\FilesystemServiceProvider::class,
127 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
128 | Illuminate\Hashing\HashServiceProvider::class,
129 | Illuminate\Mail\MailServiceProvider::class,
130 | Illuminate\Pagination\PaginationServiceProvider::class,
131 | Illuminate\Pipeline\PipelineServiceProvider::class,
132 | Illuminate\Queue\QueueServiceProvider::class,
133 | Illuminate\Redis\RedisServiceProvider::class,
134 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
135 | Illuminate\Session\SessionServiceProvider::class,
136 | Illuminate\Translation\TranslationServiceProvider::class,
137 | Illuminate\Validation\ValidationServiceProvider::class,
138 | Illuminate\View\ViewServiceProvider::class,
139 |
140 | /*
141 | * Application Service Providers...
142 | */
143 | App\Providers\AppServiceProvider::class,
144 | App\Providers\AuthServiceProvider::class,
145 | App\Providers\EventServiceProvider::class,
146 | App\Providers\RouteServiceProvider::class,
147 |
148 | ],
149 |
150 | /*
151 | |--------------------------------------------------------------------------
152 | | Class Aliases
153 | |--------------------------------------------------------------------------
154 | |
155 | | This array of class aliases will be registered when this application
156 | | is started. However, feel free to register as many as you wish as
157 | | the aliases are "lazy" loaded so they don't hinder performance.
158 | |
159 | */
160 |
161 | 'aliases' => [
162 |
163 | 'App' => Illuminate\Support\Facades\App::class,
164 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
165 | 'Auth' => Illuminate\Support\Facades\Auth::class,
166 | 'Blade' => Illuminate\Support\Facades\Blade::class,
167 | 'Bus' => Illuminate\Support\Facades\Bus::class,
168 | 'Cache' => Illuminate\Support\Facades\Cache::class,
169 | 'Config' => Illuminate\Support\Facades\Config::class,
170 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
171 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
172 | 'DB' => Illuminate\Support\Facades\DB::class,
173 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
174 | 'Event' => Illuminate\Support\Facades\Event::class,
175 | 'File' => Illuminate\Support\Facades\File::class,
176 | 'Gate' => Illuminate\Support\Facades\Gate::class,
177 | 'Hash' => Illuminate\Support\Facades\Hash::class,
178 | 'Input' => Illuminate\Support\Facades\Input::class,
179 | 'Inspiring' => Illuminate\Foundation\Inspiring::class,
180 | 'Lang' => Illuminate\Support\Facades\Lang::class,
181 | 'Log' => Illuminate\Support\Facades\Log::class,
182 | 'Mail' => Illuminate\Support\Facades\Mail::class,
183 | 'Password' => Illuminate\Support\Facades\Password::class,
184 | 'Queue' => Illuminate\Support\Facades\Queue::class,
185 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
186 | 'Redis' => Illuminate\Support\Facades\Redis::class,
187 | 'Request' => Illuminate\Support\Facades\Request::class,
188 | 'Response' => Illuminate\Support\Facades\Response::class,
189 | 'Route' => Illuminate\Support\Facades\Route::class,
190 | 'Schema' => Illuminate\Support\Facades\Schema::class,
191 | 'Session' => Illuminate\Support\Facades\Session::class,
192 | 'Storage' => Illuminate\Support\Facades\Storage::class,
193 | 'URL' => Illuminate\Support\Facades\URL::class,
194 | 'Validator' => Illuminate\Support\Facades\Validator::class,
195 | 'View' => Illuminate\Support\Facades\View::class,
196 |
197 | ],
198 |
199 | ];
200 |
--------------------------------------------------------------------------------