web.php 1.82 KB
<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('App\Http\Controllers\V1')->group(function (){
    /** web用户跳转登录*/
    Route::get('auth/{service}', 'AuthController@redirectToProvider');

    // 用户数据删除
    Route::get('delete_data', 'SettingController@delete_data');

    // 隐私权限政策网址
    Route::get('agreement', 'SettingController@agreement');

    // 服务条款网址
    Route::get('protocol', 'SettingController@protocol');


});


Route::get('/', function () {
    return "welcome parlando-development";
});

//Route::get('/phpinfo', function () {
//    phpinfo();
//});


Route::get('/create_overlay', function () {
    header ('Content-Type: image/png');
    $im = @imagecreatetruecolor(640, 1008) or die('Cannot Initialize new GD image stream');
    $white = imagecolorallocate($im, 255, 255, 255); //创建颜色
    imagefill($im,0,0,$white); //自定义画布的背景颜色
    $text_color = imagecolorallocate($im, 233, 14, 91); // 文字颜色
    $font = storage_path('app/public/ffmpeg/arialuni.ttf');
    $text = 'A Simple Text String';
    $box = imagettfbbox(40,0,$font,$text);
    $x = (640 - ($box[2] - $box[0])) / 2;
    $y = (1008 - ($box[7] - $box[1])) / 2;
    imagettftext($im,40,0,$x,$y,$text_color,$font,$text);
    imagepng($im);
    imagedestroy($im);

    dd($im);
});

/** 预览邮件发送效果 */
Route::get('/verify_page',function (){

    return new \App\Mail\SendVerifyCode('1234');
});