Go to file
Ben Johnson 195a7e0374
Replace schema with search_path in pgsql config (#5726)
Per https://github.com/laravel/framework/pull/35588 , the term "schema" (a namespace) has been corrected to "search_path" (a list of namespaces), where appropriate, throughout the framework.

Accordingly, the `schema` configuration key should be changed to `search_path` to better reflect the fact that it may specify a _list_ of schemata (schemas), and not just a single schema. (In several Laravel versions prior to 9.0, the `schema` key could already specify more than one schema, but this fact was undocumented and non-obvious without examining the implementation carefully.)

As of Laravel 9.0, the `search_path` may specify any number of schemata, in any of the following formats:

'search_path' => 'public',
'search_path' => 'public,laravel',
'search_path' => ['public', '"laravel"', "'foobar'", '$bat'],
'search_path' => '\'public\', "laravel", "\'foobar\'", \'$bat\'',
'search_path' => '"$user", public',

Note that in the last example, the `$user` variable refers to PostgreSQL's special $user variable, as described in the Schema Documentation ( https://www.postgresql.org/docs/current/ddl-schemas.html ).

Note also that Laravel's default `search_path` value, 'public', is not necessarily the best choice for every use case. Developers should consult the "Usage Patterns" section of the aforementioned documentation before deciding how best to set the `search_path`, as it has security implications.
2021-11-16 08:26:41 -06:00
app Merge branch '8.x' 2021-10-26 17:22:00 +02:00
bootstrap update gitignores 2020-07-17 08:07:12 -05:00
config Replace schema with search_path in pgsql config (#5726) 2021-11-16 08:26:41 -06:00
database Merge branch '8.x' 2021-10-26 17:22:00 +02:00
lang added password translation rules 2021-10-14 14:45:08 -05:00
public Remove redundant tap() helper in index.php (#5719) 2021-11-05 08:00:12 -05:00
resources Merge branch '8.x' 2021-10-26 17:22:00 +02:00
routes [8.x] Sanctum (#5663) 2021-08-11 13:44:34 -05:00
storage update gitignores 2020-07-17 08:07:12 -05:00
tests Merge branch '8.x' 2021-10-05 20:42:43 +02:00
.editorconfig Fix editorconfig for laravel/sail's docker-compose (#5632) 2021-06-22 08:17:05 -05:00
.env.example [8.x] Logs deprecations instead of treating them as exceptions (#5711) 2021-10-19 08:42:24 -05:00
.gitattributes Ignore changelog in export 2017-03-25 12:02:22 -07:00
.gitignore add .idea and .vscode to gitignore (#5615) 2021-05-24 08:19:41 -05:00
.styleci.yml Update .styleci.yml 2021-08-17 10:22:10 +02:00
CHANGELOG.md Merge branch '8.x' 2021-11-09 18:29:57 +01:00
README.md Merge branch '8.x' 2021-11-09 18:29:57 +01:00
artisan [8.x] Grammatical omission of 'of' on line 14 (#5603) 2021-04-30 07:45:35 -05:00
composer.json Merge branch '8.x' 2021-10-26 17:22:00 +02:00
package.json Update to package.json - Axios Version 2021-01-05 10:16:40 +01:00
phpunit.xml [8.x] PHPUnit 9.3+ style code coverage config (#5368) 2020-08-07 09:59:53 -05:00
server.php Update server.php email address 2016-08-16 00:13:51 -04:00
webpack.mix.js use postCss default instead of sass 2020-06-18 15:26:58 -05:00

README.md

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.