Laravel 5.0 Documentation
Namespacing Your Application 6. Services i. Authentication i. Introduction ii. Authenticating Users iii. Retrieving The Authenticated User iv. Protecting Routes v. HTTP Basic Authentication vi. well as simple corresponding views, which are located at resources/views/auth . In addition, a "users" table migration has been included with the framework. Including these simple resources allows rapid public function rules() { return [ 'email' => 'required|email|unique:users', 'password' => 'required|confirmed|min:8', ]; } public function authorize()0 码力 | 242 页 | 1.44 MB | 1 年前3Laravel 3.2 Documentation
flexibility and expressiveness. Users new to Laravel will enjoy the same ease of development that is found in the most popular and lightweight PHP frameworks. More experienced users will appreciate the opportunity 3 Application Structure Laravel's directory structure is designed to be familiar to users of other popular PHP frameworks. Web applications of any shape or size can easily be created using table name on your database. So, if the current index name is "id_unique" on the "users" table, make the index name "users_id_unique". Add alias for Eloquent in your application configuration. Add the0 码力 | 139 页 | 1.13 MB | 1 年前3Casdoor · An Open Source UI-first Identity Access Management (IAM) / Single-Sign-On (SSO) platform supporting OAuth 2.0, OIDC, SAML and CAS
2.0, OIDC, SAML, and CAS. Casdoor serves both the web UI and the login requests from application users. You need to enable JavaScript to run this app. Casdoor f Casdoor featur eatures es 1. Casdoor casdoor.com as an example. Or Organization ganization In Casdoor, an organization is a container for users and applications. For example, all the employees of a company or all the customers of a business types of users in Casdoor: • built-in organization users, such as built-in/admin : global administrators who have full administrative power on the Casdoor platform. • Other organizations' users, such as0 码力 | 825 页 | 58.31 MB | 1 年前3Laravel 5.1 中文文档
admin: Route::group(['prefix' => 'admin'], function () { Route::get('users', function () { // 匹配 "/admin/users" URL }); }); 你还可以使用 prefix 参数为群组路由指定公共参数: Route::group(['prefix' Route::controller 方法定义一个路由,该 controller 方法接收两个参数,第一个参数是控 制器处理的 baseURI,第二个参数是控制器的类名: Route::controller('users', 'UserController'); 接下来,添加方法到控制器,方法名应该以 HTTP 请求方法开头: users 请求 */ public function getIndex() { // } /** * 响应 GET /users/show/1 请求 */ public function getShow($id)0 码力 | 307 页 | 3.46 MB | 1 年前3Laravel 5.2 中文文档
,从而允许你轻松限制给定 IP 地址在 指定时间内对某个路由发起请求的数目。例如,要限制某个 IP 地址每分钟只能访问某个 路由 60 次,你可以这么做: Route::get('/api/users', ['middleware' => 'throttle:60,1', function () { // }]); 数组输入验证 在 Laravel 5.2 可轻松实现表 是唯一的,可以这么实现: $validator = Validator::make($request->all(), [ 'person.*.email' => 'email|unique:users' ]); 同样,你可以在语言文件中使用 * 来指定验证数组字段: 'custom' => [ 'person.*.email' => [ 'unique' /auth.php 更新完成后,基于原来的配置设置认证选项,如果不做改动,认证服务将基于 Laravel 5.1。 在新的 auth.php 配置文件中,要特别注意 passwords.users.email 配置项,由于在 Laravel 5.2 对 email 视图路径有所改动,因此要确保该视图路径与应用实际的路径相匹 配,如果不匹配的话要更新该配置值。 Contracts 如果你实现了0 码力 | 377 页 | 4.56 MB | 1 年前3Laravel 5.3 中文文档
为了订阅到传统频道,Laravel Echo 还使得订阅到提供谁在监听给定频道信息的已存在频道变得 简单: Echo.join('chat.' + roomId) .here((users) => { // }) .joining((user) => { console.log(user.name); }) Blade 模板中循环遍历的时候,$loop 变量将会在循环中生效。通过该变量可以访问很 多有用的信息,比如当前循环索引值,以及当前循环是第一个还是最后一个迭代: @foreach ($users as $user) @if ($loop->first) This is the first iteration. @endif @if 如果你不想要迁移查询构建器结果到 Collection 实例,可以在查询构建器的 get 方法后调用 call 方法,这将会返回原生的 PHP 数组结果,从而保证向后兼容: $users = DB::table('users')->get()->all(); Eloquent $morphClass 属性 可以在 Eloquent 模型上定义的$morphClass 属性已经被移除,以便定义一个“morph0 码力 | 691 页 | 9.37 MB | 1 年前3CakePHP Cookbook 4.x
Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial - Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging Finding Articles By Tags Improving Authentication Type Configuring Authentication Handlers Customizing Find Query Identifying Users and Logging Them In Redirecting Users After Login Creating Stateless Authentication Systems Using Basic Authentication Custom Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 3.x
Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial - Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging Finding Articles By Tags Improving Authentication Type Configuring Authentication Handlers Customizing Find Query Identifying Users and Logging Them In Redirecting Users After Login Creating Stateless Authentication Systems Using Basic Authentication Custom Password Hasher Classes Changing Hashing Algorithms Manually Logging Users In Accessing the Logged In User Logging Users Out Deciding When to run Authentication Authorization Configuring Authorization0 码力 | 1244 页 | 1.05 MB | 1 年前3Laravel 5.6 中文文档
* @var UserRepository */ protected $users; /** * Create a new controller instance. * * @param UserRepository $users * @return void 本文档由 Laravel 学院提供 中文学习资源:http://laravelacademy.org 29 */ public function __construct(UserRepository $users) { $this->users = $users; } /** * Show the profile for the given user. * $id * @return Response */ public function show($id) { $user = $this->users->find($id); return view('user.profile', ['user' => $user]); } } 在本例中,UserController0 码力 | 377 页 | 14.56 MB | 1 年前3CakePHP Cookbook 3.x
Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 CMS Tutorial - Tags and Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 CMS Tutorial be thought of as “Friend”, “User”, “Comment”, or “Photo”. If we wanted to load some data from our users table we could do: use Cake\ORM\TableRegistry; (continues on next page) 1 CakePHP Cookbook Documentation from previous page) // Prior to 3.6 use TableRegistry::get('Users') $users = TableRegistry::getTableLocator()->get('Users'); $query = $users->find(); foreach ($query as $row) { echo $row->username; }0 码力 | 967 页 | 2.80 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100