Compare commits

...

5 Commits

Author SHA1 Message Date
ddde0e25d1 add migration file for password_resets table 2018-08-07 19:03:57 +08:00
4bbed319f2 Route方面: 將原本Auth::routes();的簡寫手動拆出來
因為我們的專案在登入架構上有多出角色+ID綁雙主鍵的架構,在Route方面也需要連同一起改造
2018-08-06 23:58:28 +08:00
2a9054c9d8 fix Index route in routes\web.php 2018-08-05 18:16:01 +08:00
b317a26500 Merge branch 'develop' of ssh://git.yuaner.tw:10022/kol/BlogMatch into develop 2018-08-05 18:09:10 +08:00
342384599f add migration file for receiver and casebulder table in DB 2018-08-05 14:31:01 +08:00
4 changed files with 111 additions and 2 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddTimestampForReceiver extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('Receiver', function (Blueprint $table) {
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('Receiver', function (Blueprint $table) {
$table->dropTimestamps();
});
}
}

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddTimestampForCasebuilder extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('CaseBuilder', function (Blueprint $table) {
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('CaseBuilder', function (Blueprint $table) {
$table->dropTimestamps();
});
}
}

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password_resets', function (Blueprint $table) {
$table->string('email')->index();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('password_resets');
}
}

View File

@ -16,10 +16,23 @@
// }); // });
// 首頁url // 首頁url
Route::get('/', 'HomeController@index')->name('home'); Route::get('/', 'Home\HomeController@index')->name('home');
// 登入相關的 // 登入相關的
Auth::routes(); // Authentication Routes...
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
Route::post('login', 'Auth\LoginController@login');
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
Route::get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
Route::post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
// 接案者相關url // 接案者相關url
Route::group(['prefix' => 'receiver'], function () { Route::group(['prefix' => 'receiver'], function () {