更新代码
This commit is contained in:
52
config/follow.php
Normal file
52
config/follow.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the overtrue/laravel-follow
|
||||
*
|
||||
* (c) overtrue <i@overtrue.me>
|
||||
*
|
||||
* This source file is subject to the MIT license that is bundled
|
||||
* with this source code in the file LICENSE.
|
||||
*/
|
||||
|
||||
return [
|
||||
/*
|
||||
* Model class name of users.
|
||||
*/
|
||||
'user_model' => 'App\User',
|
||||
|
||||
/*
|
||||
* Table name of users table.
|
||||
*/
|
||||
'users_table_name' => 'users',
|
||||
|
||||
/*
|
||||
* Primary key of users table.
|
||||
*/
|
||||
'users_table_primary_key' => 'id',
|
||||
|
||||
/*
|
||||
* Foreign key of users table.
|
||||
*/
|
||||
'users_table_foreign_key' => 'user_id',
|
||||
|
||||
/*
|
||||
* Table name of followable relations.
|
||||
*/
|
||||
'followable_table' => 'followables',
|
||||
|
||||
/*
|
||||
* Prefix of many-to-many relation fields.
|
||||
*/
|
||||
'morph_prefix' => 'followable',
|
||||
|
||||
/*
|
||||
* Date format for created_at.
|
||||
*/
|
||||
'date_format' => 'Y-m-d H:i:s',
|
||||
|
||||
/*
|
||||
* Namespace of models.
|
||||
*/
|
||||
'model_namespace' => 'App',
|
||||
];
|
||||
Reference in New Issue
Block a user