Commit 9076419b authored by gxx's avatar gxx

前后台数据表区分

parent 4d3bc15c
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('phone')->nullable()->unique();
$table->string('user_name')->unique();
$table->string('real_name')->nullable();
$table->string('token')->nullable();
$table->string('head_icon')->nullable();
$table->string('password');
$table->boolean('gender')->nullable();
$table->string('email')->nullable()->unique();
$table->unsignedInteger('status')->default(0);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('groups', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('owner_id');
$table->unsignedInteger('creator_id');
$table->string('name');
$table->string('brief')->nullable();
$table->string('logo')->nullable();
$table->unsignedInteger('status')->default(0);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('groups');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_groups', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->unsignedInteger('group_id');
$table->boolean("is_owner")->default(0);
$table->unsignedInteger('status')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_groups');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projects', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->unsignedInteger('creator_id');
$table->longText('partners')->nullable();
$table->string('group_id')->nullable();
$table->string('brief')->nullable();
$table->string('cover_img')->nullable();
$table->integer("permission")->default(0);
// $table->json("members")->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('projects');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('owner_id');
$table->unsignedInteger('project_id');
$table->unsignedInteger('creator_id');
$table->string('brief')->nullable();
$table->dateTime('starts_at')->nullable();
$table->dateTime('ends_at')->nullable();
$table->unsignedInteger('status')->default(0);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tasks');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('creator_id');
$table->string('title');
$table->text('content');
$table->unsignedInteger('target_id')->nullable();
$table->unsignedInteger('status')->default('0');
$table->tinyInteger('is_group')->default('0');
$table->longText('target_ids')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notifications');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_projects', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('project_id');
$table->unsignedInteger('creator_id');
$table->string('priority')->nullable();
$table->unsignedInteger('inviter_id')->nullable();
$table->unsignedInteger('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_projects');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSchedulesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('schedules', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('creator_id');
$table->unsignedInteger('owner_id');
$table->text('brief');
$table->dateTime('starts_at');
$table->dateTime("ends_at")->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('schedules');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('files', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('file_type');
$table->string('size');
$table->unsignedInteger('folder_id')->nullable();
$table->unsignedInteger('group_id')->nullable();
$table->unsignedInteger('owner_id');
$table->unsignedInteger('creator_id');
$table->string('Bucket',191);
$table->string('pointer',191);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('files');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWechatsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('wechats', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id')->unique();
$table->unsignedInteger('open_id')->unique();
$table->string('nickname')->nullable();
$table->string('head_icon')->nullable();
$table->unsignedInteger('sex')->nullable();
$table->unsignedInteger('subscribe');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('wechats');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGetPasswordsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('get_passwords', function (Blueprint $table) {
$table->increments('id');
$table->string('phone')->nullable();
$table->string('token');
$table->string('email')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('get_passwords');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserSettingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_settings', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('current_group_id')->nullable();
$table->unsignedInteger('user_id');
$table->unsignedInteger('stick_page_id')->nullable();
$table->boolean("is_new")->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_settings');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFoldersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('folders', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->unsignedInteger('parent_id');
$table->unsignedInteger('creator_id');
$table->unsignedInteger('group_id');
$table->unsignedInteger('project_id');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('folders');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBoardsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('boards', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->longText('tasks')->nullable();
$table->char('color',8)->nullable();
$table->unsignedInteger('project_id');
$table->unsignedInteger('rank');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('boards');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSmsVerifiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sms_verifies', function (Blueprint $table) {
$table->increments('id');
$table->string('phone');
$table->string('verify_code');
$table->boolean('is_checked')->default(false);
$table->unsignedInteger("action_id")->default(0);
$table->ipAddress("ip_address")->nullable();
$table->string("finger_print")->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sms_verifies');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEmailChecksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('email_checks', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id')->nullable();
$table->string('email')->nullable();
$table->string('token');
$table->unsignedInteger('status')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('email_checks');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateInvitationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('invitations', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('inviter_id');
$table->unsignedInteger('target_id');
$table->unsignedInteger('type')->default('0');
$table->unsignedInteger('status')->default('0');
$table->unsignedInteger('group_id');
$table->string('token')->nullable();
$table->text('content');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('invitations');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStatusesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('statuses', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->unsignedInteger('code');
$table->string('brief');
$table->unsignedInteger('father_id')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('statuses');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDefaultPagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('default_pages', function (Blueprint $table) {
$table->increments('id');
$table->string('chinese');
$table->string('page_name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('default_pages');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotificationActionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notification_actions', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger("noti_id");
$table->string("target_table");
$table->string("target_column");
$table->unsignedInteger("target_id");
$table->string("explain");
$table->string("target_value_type");
$table->string("target_value");
$table->integer("status");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notification_actions');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserInfosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_infos', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->string('terminal');
$table->string('manner');
$table->dateTime('last_login_time');
$table->boolean('return_visit')->default(0);
$table->longText('page_retention_time')->nullabel();
$table->longText('user_engagement')->nullabel();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('user_infos');
}
}
...@@ -20,56 +20,11 @@ class AdminsTableSeeder extends Seeder ...@@ -20,56 +20,11 @@ class AdminsTableSeeder extends Seeder
0 => 0 =>
array ( array (
'id' => 1, 'id' => 1,
'email' => '243818853@qq.com', 'email' => 'admin@pengjisoft.com',
'password' => '$2y$10$bhm6QIRumyzrkh2HWJzmu.lC.DAno4J8twWOMsw6kdi1UW0aQRc66', 'password' => '$2y$10$bhm6QIRumyzrkh2HWJzmu.lC.DAno4J8twWOMsw6kdi1UW0aQRc66', //123123
'created_at' => '2017-11-28 15:57:57', 'created_at' => '2017-11-28 15:57:57',
'updated_at' => '2017-11-28 15:57:57', 'updated_at' => '2017-12-25 15:47:11',
'name' => 'gxx', 'name' => 'pengjisoft-Admin',
),
1 =>
array (
'id' => 13,
'email' => '111@qq.com',
'password' => '$2y$10$msj6uX3OIt8twBJXiF3odOP10nHlXRBfsUkS4io4C42y2Ijz108b.',
'created_at' => '2017-11-29 16:06:22',
'updated_at' => '2017-11-29 16:57:23',
'name' => 'ggggggg1',
),
2 =>
array (
'id' => 14,
'email' => '123@qq.com',
'password' => '$2y$10$dI68SrPLGXTZJb6LmJL1yOrt3FBCrsBRKhvGzdPAn1dKIjyi/j.P2',
'created_at' => '2017-11-29 17:21:07',
'updated_at' => '2017-11-29 17:21:07',
'name' => '222',
),
3 =>
array (
'id' => 15,
'email' => '333@qq.com',
'password' => '$2y$10$rFXWglvtXeuh3SfgzfMKB.VgyJF5toXDR9OMgBzVU1K9tydje7r.O',
'created_at' => '2017-11-29 18:07:17',
'updated_at' => '2017-11-29 18:07:17',
'name' => 'gq',
),
4 =>
array (
'id' => 16,
'email' => '44@qq.com',
'password' => '$2y$10$JzKeax4HxQb3rpcrJieOBOueDVTGUsQYzNIi8EipbO4t9GGt/CEiC',
'created_at' => '2017-11-30 18:21:43',
'updated_at' => '2017-11-30 18:21:43',
'name' => 'ggggggg',
),
5 =>
array (
'id' => 17,
'email' => 'codermyx@163.com',
'password' => '$2y$10$8HMUJ4Tk0xOzdSzWsz14p.JDuFJEzAnatqA1BODSRRc1bXpZOkM.S',
'created_at' => '2017-12-12 10:26:23',
'updated_at' => '2017-12-12 10:26:23',
'name' => 'myx',
), ),
)); ));
......
<?php
use Illuminate\Database\Seeder;
class GroupsTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('groups')->delete();
\DB::table('groups')->insert(array (
0 =>
array (
'id' => 113,
'owner_id' => 3,
'creator_id' => 3,
'name' => 'x',
'brief' => 'asd',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-07 16:14:08',
'updated_at' => '2017-12-07 16:14:08',
),
1 =>
array (
'id' => 114,
'owner_id' => 3,
'creator_id' => 3,
'name' => 'aaa',
'brief' => 'bbbb',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-07 18:21:56',
'updated_at' => '2017-12-07 18:21:56',
),
2 =>
array (
'id' => 115,
'owner_id' => 3,
'creator_id' => 3,
'name' => 'aaa',
'brief' => 'bbb',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-07 18:22:27',
'updated_at' => '2017-12-07 18:22:27',
),
3 =>
array (
'id' => 116,
'owner_id' => 6,
'creator_id' => 6,
'name' => '测试团队',
'brief' => '测试团队描述',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-07 21:56:45',
'updated_at' => '2017-12-07 21:56:45',
),
4 =>
array (
'id' => 117,
'owner_id' => 3,
'creator_id' => 3,
'name' => '图片地址',
'brief' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-07 23:03:30',
'updated_at' => '2017-12-07 23:03:30',
),
5 =>
array (
'id' => 118,
'owner_id' => 3,
'creator_id' => 3,
'name' => '续保cv',
'brief' => '才VB',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-08 13:13:44',
'updated_at' => '2017-12-08 13:13:44',
),
6 =>
array (
'id' => 119,
'owner_id' => 3,
'creator_id' => 3,
'name' => '地方个',
'brief' => 'df',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-08 13:44:40',
'updated_at' => '2017-12-08 13:44:40',
),
7 =>
array (
'id' => 120,
'owner_id' => 3,
'creator_id' => 3,
'name' => '文件测试团队',
'brief' => '一个小测试',
'logo' => 'storage/2017-12-12/5a2f6b1d797b5.jpg',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-08 22:02:31',
'updated_at' => '2017-12-12 13:37:33',
),
8 =>
array (
'id' => 121,
'owner_id' => 3,
'creator_id' => 3,
'name' => '有图片的团队',
'brief' => '介绍',
'logo' => 'http://120.27.221.179/uploads/user/avatar/11/avatar.png',
'status' => 0,
'deleted_at' => NULL,
'created_at' => '2017-12-09 20:03:44',
'updated_at' => '2017-12-09 20:03:44',
),
));
}
}
\ No newline at end of file
...@@ -19,15 +19,15 @@ class RoleAdminsTableSeeder extends Seeder ...@@ -19,15 +19,15 @@ class RoleAdminsTableSeeder extends Seeder
\DB::table('role_admins')->insert(array ( \DB::table('role_admins')->insert(array (
0 => 0 =>
array ( array (
'id' => 84, 'id' => 112,
'admin_id' => 1, 'admin_id' => 1,
'role_id' => 1, 'role_id' => 1,
), ),
1 => 1 =>
array ( array (
'id' => 83, 'id' => 103,
'admin_id' => 14, 'admin_id' => 14,
'role_id' => 3, 'role_id' => 4,
), ),
2 => 2 =>
array ( array (
...@@ -35,6 +35,66 @@ class RoleAdminsTableSeeder extends Seeder ...@@ -35,6 +35,66 @@ class RoleAdminsTableSeeder extends Seeder
'admin_id' => 15, 'admin_id' => 15,
'role_id' => 2, 'role_id' => 2,
), ),
3 =>
array (
'id' => 99,
'admin_id' => 17,
'role_id' => 1,
),
4 =>
array (
'id' => 102,
'admin_id' => 14,
'role_id' => 3,
),
5 =>
array (
'id' => 104,
'admin_id' => 14,
'role_id' => 5,
),
6 =>
array (
'id' => 105,
'admin_id' => 14,
'role_id' => 6,
),
7 =>
array (
'id' => 106,
'admin_id' => 18,
'role_id' => 1,
),
8 =>
array (
'id' => 107,
'admin_id' => 18,
'role_id' => 2,
),
9 =>
array (
'id' => 108,
'admin_id' => 18,
'role_id' => 3,
),
10 =>
array (
'id' => 109,
'admin_id' => 18,
'role_id' => 4,
),
11 =>
array (
'id' => 110,
'admin_id' => 18,
'role_id' => 5,
),
12 =>
array (
'id' => 111,
'admin_id' => 18,
'role_id' => 6,
),
)); ));
......
<?php
use Illuminate\Database\Seeder;
class SmsTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('sms')->delete();
\DB::table('sms')->insert(array (
0 =>
array (
'id' => 1,
'sms_surplus' => 2,
'created_at' => '2017-09-28 03:33:31',
'updated_at' => '2017-09-28 03:33:31',
),
1 =>
array (
'id' => 2,
'sms_surplus' => 3,
'created_at' => '2017-09-28 18:06:13',
'updated_at' => '2017-09-29 16:06:19',
),
2 =>
array (
'id' => 3,
'sms_surplus' => 3,
'created_at' => '2017-10-09 13:20:33',
'updated_at' => '2017-10-09 13:20:33',
),
3 =>
array (
'id' => 4,
'sms_surplus' => 3,
'created_at' => '2017-10-09 14:09:06',
'updated_at' => '2017-10-09 14:09:06',
),
4 =>
array (
'id' => 5,
'sms_surplus' => 3,
'created_at' => '2017-10-09 14:38:05',
'updated_at' => '2017-10-09 14:38:05',
),
5 =>
array (
'id' => 6,
'sms_surplus' => 3,
'created_at' => '2017-10-09 14:50:04',
'updated_at' => '2017-10-09 14:50:04',
),
6 =>
array (
'id' => 7,
'sms_surplus' => 3,
'created_at' => '2017-10-09 14:54:22',
'updated_at' => '2017-10-09 14:54:22',
),
7 =>
array (
'id' => 8,
'sms_surplus' => 3,
'created_at' => '2017-10-09 16:05:43',
'updated_at' => '2017-10-09 16:05:43',
),
8 =>
array (
'id' => 9,
'sms_surplus' => 3,
'created_at' => '2017-10-09 16:08:07',
'updated_at' => '2017-10-09 16:08:07',
),
9 =>
array (
'id' => 10,
'sms_surplus' => 3,
'created_at' => '2017-10-09 16:38:37',
'updated_at' => '2017-10-09 16:38:37',
),
));
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php
use Illuminate\Database\Seeder;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<header class="main-header"> <header class="main-header">
<!-- Logo --> <!-- Logo -->
<a href="index2.html" class="logo"> <a href="#" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels --> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>A</b>LT</span> <span class="logo-mini"><b>A</b>LT</span>
<!-- logo for regular state and mobile devices --> <!-- logo for regular state and mobile devices -->
......
...@@ -3,116 +3,135 @@ ...@@ -3,116 +3,135 @@
@section('content') @section('content')
<div class="row">
{{--<div style="height: 500px;width: 400px;background-image: url({{url('default/tadayadduser.png')}})">--}}
{{--</div>--}}
<div class="row" style="color: white ">
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-yellow"> <div class="small-box" style="background-image: url({{url('default/tadayadduser.png')}});height: 120px;">
<div class="inner"> <div class="inner">
<h3> {{$newUserCount}} </h3> <h3> {{$newUserCount}} </h3>
<p>今日新增用户</p> <p>今日新增用户</p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-person-add"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
<a href="#" class="" style="height: 20px;"> <i class=""></i></a>
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-aqua"> <div class="small-box" style="background-image: url({{url('default/addproject.png')}});height: 120px;">
<div class="inner"> <div class="inner">
<h3>{{$newProject}}</h3> <h3>{{$newProject}}</h3>
<p>今日新增项目</p> <p>今日新增项目</p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-bag"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-green"> <div class="small-box" style="background-image: url({{url('default/alluser.png')}});height: 120px;">
<div class="inner"> <div class="inner">
<h3>{{$users}}<sup style="font-size: 20px"></sup></h3> <h3>{{$users}}<sup style="font-size: 20px"></sup></h3>
<p> 所有用户 </p> <p> 所有用户 </p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-ios-people-outline"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-red"> <div class="small-box" style="background-image: url({{url('default/allproject.png')}});height: 120px;">
<div class="inner"> <div class="inner">
<h3>{{$projects}}</h3> <h3>{{$projects}}</h3>
<p>所有项目</p> <p>所有项目</p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-pie-graph"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
</div> </div>
<div class="row"> <div class="row" style="color: white ">
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-yellow"> <div class="small-box" style="background-image: url({{url('default/allschedule.png')}});height: 120px;">
<div class="inner" style="background-color: #1b6d85"> <div class="inner">
<h3> {{$schedules}} </h3> <h3> {{$schedules}} </h3>
<p>全部日程</p> <p>全部日程</p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-person-add"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-aqua"> <div class="small-box" style="background-image: url({{url('default/alltask.png')}});height: 120px;">
<div class="inner" style="background-color: #31b131"> <div class="inner" >
<h3>{{$tasks}}</h3> <h3 style="color: white ">{{$tasks}}</h3>
<p>全部任务</p> <p style="color: white ">全部任务</p>
</div> </div>
<div class="icon"> <div class="">
<i class="fa fa-bookmark-o"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
<div class="col-lg-3 col-xs-6"> <div class="col-lg-3 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-yellow"> <div class="small-box" style="background-image: url({{url('default/group.png')}});height: 120px;">
<div class="inner" style="background-color: #ebccd1"> <div class="inner">
<h3> {{$groups}} </h3> <h3 style="color: white "> {{$groups}} </h3>
<p>全部团队</p> <p style="color: white ">全部团队</p>
</div> </div>
<div class="icon"> <div class="">
<i class="ion ion-person-add"></i> <i class=""></i>
</div> </div>
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> <p style="height: 30px;"></p>
{{--<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>--}}
</div> </div>
</div> </div>
<!-- ./col --> <!-- ./col -->
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>name</th>
<th>display_name</th> <th>display_name</th>
<th>description</th> <th>description</th>
<th>操作</th> <th>操作</th>
...@@ -51,7 +50,6 @@ ...@@ -51,7 +50,6 @@
<tbody> <tbody>
<tr> <tr>
<td>{{$role['id']}}</td> <td>{{$role['id']}}</td>
<td>{{$role['name']}}</td>
<td>{{$role['display_name']}}</td> <td>{{$role['display_name']}}</td>
<td>{{$role['description']}}</td> <td>{{$role['description']}}</td>
<td> <td>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<label for="exampleInputFile">头像</label> <label for="exampleInputFile">头像</label>
<p> <p>
<img src="{{asset($result['head_icon'])}}" alt="" width="100px" height="20px" style="border-radius: 80%"> <img src="{{asset($result['head_icon'])}}" alt="" width="100px" height="100px" style="border-radius: 80%">
</p> </p>
</div> </div>
<div class="form-group"> <div class="form-group">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment