first commit

master v1.0
178146582 6 years ago
commit 6757f81fd3
  1. 33
      .env.example
  2. 40
      app/Console/Kernel.php
  3. 65
      app/Exceptions/Handler.php
  4. 29
      app/Helpers/functions.php
  5. 32
      app/Http/Controllers/Auth/ForgotPasswordController.php
  6. 39
      app/Http/Controllers/Auth/LoginController.php
  7. 71
      app/Http/Controllers/Auth/RegisterController.php
  8. 39
      app/Http/Controllers/Auth/ResetPasswordController.php
  9. 13
      app/Http/Controllers/Controller.php
  10. 190
      app/Http/Controllers/IndexController.php
  11. 62
      app/Http/Kernel.php
  12. 20
      app/Http/Middleware/BeforeMiddleware.php
  13. 17
      app/Http/Middleware/EncryptCookies.php
  14. 26
      app/Http/Middleware/RedirectIfAuthenticated.php
  15. 18
      app/Http/Middleware/TrimStrings.php
  16. 17
      app/Http/Middleware/VerifyCsrfToken.php
  17. 28
      app/Providers/AppServiceProvider.php
  18. 30
      app/Providers/AuthServiceProvider.php
  19. 21
      app/Providers/BroadcastServiceProvider.php
  20. 32
      app/Providers/EventServiceProvider.php
  21. 73
      app/Providers/RouteServiceProvider.php
  22. 29
      app/User.php
  23. 51
      artisan
  24. 55
      bootstrap/app.php
  25. 17
      bootstrap/autoload.php
  26. 2
      bootstrap/cache/.gitignore
  27. 63
      composer.json
  28. 3513
      composer.lock
  29. 231
      config/app.php
  30. 102
      config/auth.php
  31. 58
      config/broadcasting.php
  32. 91
      config/cache.php
  33. 120
      config/database.php
  34. 68
      config/filesystems.php
  35. 123
      config/mail.php
  36. 85
      config/queue.php
  37. 38
      config/services.php
  38. 179
      config/session.php
  39. 33
      config/view.php
  40. 55
      config/web.php
  41. 1
      database/.gitignore
  42. 24
      database/factories/ModelFactory.php
  43. 35
      database/migrations/2014_10_12_000000_create_users_table.php
  44. 32
      database/migrations/2014_10_12_100000_create_password_resets_table.php
  45. 16
      database/seeds/DatabaseSeeder.php
  46. 21
      package.json
  47. 31
      phpunit.xml
  48. 20
      public/.htaccess
  49. BIN
      public/app-icon128x128@2x.ico
  50. BIN
      public/app-icon72x72@2x.ico
  51. 5
      public/css/app.css
  52. 71
      public/css/main.css
  53. BIN
      public/favicon.ico
  54. BIN
      public/images/logo.png
  55. BIN
      public/images/t01925d53c7bd381a67.png
  56. 58
      public/index.php
  57. 34
      public/js/app.js
  58. 2
      public/js/ckplayer.min.js
  59. BIN
      public/js/ckplayer.swf
  60. 106
      public/js/ckplayer.xml
  61. 44
      public/js/language.xml
  62. 641
      public/js/style.xml
  63. 2
      public/robots.txt
  64. 23
      public/web.config
  65. 89
      readme.md
  66. 22
      resources/assets/js/app.js
  67. 53
      resources/assets/js/bootstrap.js
  68. 23
      resources/assets/js/components/Example.vue
  69. 38
      resources/assets/sass/_variables.scss
  70. 9
      resources/assets/sass/app.scss
  71. 19
      resources/lang/en/auth.php
  72. 19
      resources/lang/en/pagination.php
  73. 22
      resources/lang/en/passwords.php
  74. 121
      resources/lang/en/validation.php
  75. 122
      resources/views/detail.blade.php
  76. 175
      resources/views/index.blade.php
  77. 162
      resources/views/layouts/app.blade.php
  78. 127
      resources/views/list.blade.php
  79. 43
      resources/views/search.blade.php
  80. 95
      resources/views/welcome.blade.php
  81. 18
      routes/api.php
  82. 16
      routes/channels.php
  83. 18
      routes/console.php
  84. 19
      routes/web.php
  85. 21
      server.php
  86. 3
      storage/app/.gitignore
  87. 2
      storage/app/public/.gitignore
  88. 8
      storage/framework/.gitignore
  89. 2
      storage/framework/cache/.gitignore
  90. 2
      storage/framework/sessions/.gitignore
  91. 2
      storage/framework/testing/.gitignore
  92. 2
      storage/framework/views/.gitignore
  93. 2
      storage/logs/.gitignore
  94. 22
      tests/CreatesApplication.php
  95. 23
      tests/Feature/ExampleTest.php
  96. 10
      tests/TestCase.php
  97. 20
      tests/Unit/ExampleTest.php
  98. 15
      webpack.mix.js

@ -0,0 +1,33 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

@ -0,0 +1,40 @@
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
}
}

@ -0,0 +1,65 @@
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
\Illuminate\Auth\AuthenticationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
\Illuminate\Session\TokenMismatchException::class,
\Illuminate\Validation\ValidationException::class,
];
/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}
/**
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}
return redirect()->guest(route('login'));
}
}

@ -0,0 +1,29 @@
<?php
/**
* 使用get方式请求指定页面
* @param [type] $url [description]
* @return [type] [description]
*/
function curl_get_https($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$tmpInfo = curl_exec($curl);
curl_close($curl);
return $tmpInfo;
}
/**
* 取本文中间
*/
function getSubstr($str,$leftStr,$rightStr){
$left = strpos($str, $leftStr);
$right = strpos($str, $rightStr,$left);
if($left <= 0 or $right < $left) return '';
return substr($str, $left + strlen($leftStr), $right-$left-strlen($leftStr));
}

@ -0,0 +1,32 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
class ForgotPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset emails and
| includes a trait which assists in sending these notifications from
| your application to your users. Feel free to explore this trait.
|
*/
use SendsPasswordResetEmails;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}

@ -0,0 +1,39 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest')->except('logout');
}
}

@ -0,0 +1,71 @@
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
/**
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|string|max:255',
'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed',
]);
}
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return \App\User
*/
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}
}

@ -0,0 +1,39 @@
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
class ResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------------
| Password Reset Controller
|--------------------------------------------------------------------------
|
| This controller is responsible for handling password reset requests
| and uses a simple trait to include this behavior. You're free to
| explore this trait and override any methods you wish to tweak.
|
*/
use ResetsPasswords;
/**
* Where to redirect users after resetting their password.
*
* @var string
*/
protected $redirectTo = '/home';
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}

@ -0,0 +1,13 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
}

@ -0,0 +1,190 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
/**
* 首页控制器
*/
class IndexController extends Controller {
/**
* 首页
* @return [type] [description]
*/
public function index(){
$data = curl_get_https('https://www.360kan.com/');
preg_match_all("|<a href='https://www.360kan.com/(.*?)' class='js-link'><div class='w-newfigure-imglink g-playicon js-playicon'> <img src='https://p0.ssl.qhimg.com/d/_hao360/default.png' data-src='(.*?)' alt='.*?' /><span class='w-newfigure-hint'>(.*?)</span></div><div class='w-newfigure-detail'><p class='title g-clear'><span class='s1'>(.*?)</span>(.*?)</p><p class='w-newfigure-desc'>(.*?)</p>|",$data,$res);
preg_match_all('|<li><a href="(.*?)"><img src="https://p0.ssl.qhimg.com/d/_hao360/default.png" data-src="(.*?)"/></a></li>|',$data,$links);
$lis = curl_get_https('https://www.360kan.com/dianying/index.html');
preg_match_all('|data-cover="(.*?)" data-href="https://www.360kan.com(.*?)">[\s\S]*?<span class="b-topslider-tit">(.*?)</span>.*?<span class="b-topslider-desc">(.*?)</span>|',$lis,$slider);
preg_match_all('|<li class="rank-item">[\s\S]*?<div class="normal-type g-clear">[\s\S]*?<span class=".*?">(.*?)</span>[\s\S]*?<a title=".*?" href="https://www.360kan.com(.*?)" class="name">(.*?)</a>[\s\S]*?<span class="vv">(.*?)</span>[\s\S]*?</div>[\s\S]*?</li>|',$data, $lists);
return view('index',[
'res' => $res,
'links' => $links,
'slider' => $slider,
'lists' => $lists,
'type_lists' => [
'热播电视剧榜',
'热播综艺榜',
'热播电影榜'
]
]);
}
/**
* 所有分类列表
* @param [type] $type 频道
* @param string $cat 类型
* @param string $year 年代
* @param string $area 地区
* @param string $page 页数
* @return [type] [description]
*/
public function lists($type, $cat = 'all', $year = 'all', $area = 'all', $page = '1'){
$data = curl_get_https('https://www.360kan.com/'.$type.'/list.php?year='.$year.'&area='.$area.'&act=all&cat='.$cat.'&pageno='.$page);
// 匹配当前影视
preg_match_all('|<a class="js-tongjic" href="(.*?)">[\s\S]*?<div class="cover g-playicon">[\s\S]*?<img src="(.*?)">[\s\S]*?<span class="hint">(.*?)</span>[\s\S]*?</div>[\s\S]*?<div class="detail">[\s\S]*?<p class="title g-clear">[\s\S]*?<span class="s1">(.*?)</span>[\s\S]*?<span class="s2">(.*?)</span>[\s\S]*?</p>[\s\S]*?<p class="star">(.*?)</p>|', $data, $matches);
// 匹配页数
preg_match_all("|target='_self'.*?>(\d*?)</a>|",$data,$pages);
// 妈耶,手动分页真是累
$i = count($pages[1]);
$page_count = 1;
$start = 1;
$end = $start + 5;
if ($i>0) {
$page_count = $pages[1][$i-1]; //总页数
if ($page >= 4) {
$start = $page - 2;
$end = $start + 5;
if ($end > $page_count) {
$start = $start - ($end - $page_count)+1;
$end = $page_count+1;
}
}
}
// 匹配分类
preg_match_all('!&cat=(.*?)" target="_self">(.*?)\s|</a>\s*?<b class="on">(.*?)</b>!',getSubstr($data,'类型:','收起'),$cats);
// 匹配年代
preg_match_all('!&year=(.*?)" target="_self">(.*?)\s|</a>\s*?<b class="on">(.*?)</b>!',getSubstr($data,'年代:','收起'),$years);
// 匹配地区
preg_match_all('!&area=(.*?)" target="_self">(.*?)\s|</a>\s*?<b class="on">(.*?)</b>!',getSubstr($data,'地区:','收起'),$areas);
return view('list', [
'page_count' => $page_count, //总页数
'start' => $start,
'end' => $end,
'count' => count($matches[0]),
'res' => $matches,
'type' => $type,
'cat' => $cat,
'year' => $year,
'area' => $area,
'page' => $page,
'cats' => $cats,
'years' => $years,
'cats_count' => count($cats[1]),
'years_count' => count($years[1]),
'types' => [
'dianshi' => '电视剧',
'dianying' => '电影',
'zongyi' => '综艺',
'dongman' => '动漫'
],
'areas' => $areas,
'areas_count' => count($areas[0]),
]);
}
/**
* 视频介绍页
*/
public function detail($type,$id){
$url = 'https://www.360kan.com/'.$type .'/'.$id;
$data = curl_get_https($url);
if ($type == 'va') {
// 综艺
preg_match_all("|<a href='(.*?)' d[\s\S]*?<span class='w-newfigure-hint'>(.*?)</span>|",stristr($data,'s-month-tab'),$pages);
$preg = '|<img src="(.*?)">\r[\s\S]*?<h1>(.*?)</h1>[\s\S]*?(.*?)<p class="tag">(.*?)</p>[\s\S]*?<div class="base-item-wrap">([\s\S]*?)</div>[\s\S]*?display:none;"><span>([\s\S]*?)<a href="#"|';
preg_match($preg,$data,$res);
}elseif($type == 'm'){
// 电影
preg_match_all('|<a data-daochu=".*?" href="(.*?)" class="js-site-btn btn btn-play"></a>|', $data, $pages);
preg_match('|<img src="(.*?)">\r[\s\S]*?<h1>(.*?)</h1>[\s\S]*?<span class="s">(.*?)</span[\s\S]*?<p class="tag">(.*?)</p>[\s\S]*?<div class="g-clear item-wrap">([\s\S]*?)</div>[\s\S]*?style="display:none;"><span>([\s\S]*?)<a href="#"|',$data,$res);
}else {
// 电视剧and动漫
preg_match_all('|<a data-num="(.*?)" data-daochu=".*?" href="(.*?)">|',stristr($data,'num-tab-main g-clear js-tab'),$pages);
$preg = '|<img src="(.*?)">\r[\s\S]*?<h1>(.*?)</h1>[\s\S]*?(.*?)<p class="tag">(.*?)</p>[\s\S]*?<div class="g-clear item-wrap">([\s\S]*?)</div[\s\S]*?display:none;"><span>([\s\S]*?)<a href="#"|';
preg_match($preg,$data,$res);
}
return view('detail', [
'pages' => $pages,
'count' => count($pages[0]),
'res' => $res,
'type' => $type,
'video' => $pages[$type=='va' || $type == 'm'?'1':'2'][0]
]);
}
/**
* 视频解析
* @return [type] [description]
*/
private function jx($url){
$url = urlencode($url);
$data = curl_get_https('https://yun.odflv.com/odflv/api.php?referer=&time=1536566765&key=20380e29f4e9081410865467d9d00090&url='.$url.'&type=&xml=1');
$data = getSubstr($data,'<![CDATA[',']]');
return $data=='' ? false : urldecode($data);
}
/**
* 对外公开的api
* @return [type] [description]
*/
public function api(Request $request){
if ($url = $this->jx($request->input('url'))) {
return ['status' => '0', 'msg' => $url];
}
return ['status' => '1', 'msg' => '视频解析失败'];
}
/**
* 搜索视频
* @return [type] [description]
*/
public function search(Request $request){
$key = $request->input('wd');
$data = curl_get_https('https://so.360kan.com/index.php?kw='.urlencode($key));
preg_match_all('|<img src="(.*?)" alt=".*?" />.*?<span class="m-series">(.*?)</span></a></div><div class="cont"><h3 class="title"><a href="http://www.360kan.com(.*?)" >(.*?)</a><span class="playtype">([\s\S]*?)</p>|',$data,$matches);
return view('search',[
'res' => $matches,
'count' => count($matches[0]),
'key' => $key
]);
}
}

@ -0,0 +1,62 @@
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\BeforeMiddleware::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
'api' => [
'throttle:60,1',
'bindings',
],
];
/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
];
}

@ -0,0 +1,20 @@
<?php
namespace App\Http\Middleware;
use Closure;
class BeforeMiddleware
{
public function handle($request, Closure $next)
{
$this->bs('UG93ZXJlZCBieSA8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cHM6Ly93d3cubW9laW5zLmNuIiB0aXRsZT0i55Sx6JCM6Z+z5b2x6KeG5o+Q5L6b5oqA5pyv5pSv5oyBIj7okIzpn7PlvbHop4Y8L2E+');
return $next($request);
}
private function bs($text){
config(['web.p' => base64_decode($text)]);
}
}

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
class EncryptCookies extends BaseEncrypter
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
}

@ -0,0 +1,26 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/home');
}
return $next($request);
}
}

@ -0,0 +1,18 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer;
class TrimStrings extends BaseTrimmer
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'password_confirmation',
];
}

@ -0,0 +1,17 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//
];
}

@ -0,0 +1,28 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}

@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
//
}
}

@ -0,0 +1,21 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Broadcast;
class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Broadcast::routes();
require base_path('routes/channels.php');
}
}

@ -0,0 +1,32 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'App\Events\Event' => [
'App\Listeners\EventListener',
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}

@ -0,0 +1,73 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as the URL generator's root namespace.
*
* @var string
*/
protected $namespace = 'App\Http\Controllers';
/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot()
{
//
parent::boot();
}
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
//
}
/**
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}
/**
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}

@ -0,0 +1,29 @@
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}

@ -0,0 +1,51 @@
#!/usr/bin/env php
<?php
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Artisan Application
|--------------------------------------------------------------------------
|
| When we run the console application, the current CLI command will be
| executed in this console and the response sent back to a terminal
| or another output device for the developers. Here goes nothing!
|
*/
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput,
new Symfony\Component\Console\Output\ConsoleOutput
);
/*
|--------------------------------------------------------------------------
| Shutdown The Application
|--------------------------------------------------------------------------
|
| Once Artisan has finished running, we will fire off the shutdown events
| so that any final work may be done by the application before we shut
| down the process. This is the last thing to happen to the request.
|
*/
$kernel->terminate($input, $status);
exit($status);

@ -0,0 +1,55 @@
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
App\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
App\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;

@ -0,0 +1,17 @@
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so we do not have to manually load any of
| our application's PHP classes. It just feels great to relax.
|
*/
require __DIR__.'/../vendor/autoload.php';

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,63 @@
{
"name": "a-jue/moeins",
"description": "This is online video.",
"keywords": ["framework", "laravel","moeins"],
"homepage": "https://www.moeins.cn",
"license": "GPL-3.0-only",
"type": "project",
"authors": [
{
"name": "AJue",
"email": "master@moeins.cn",
"homepage": "https://www.52ecy.cn",
"role": "Developer"
}
],
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/Helpers/functions.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan optimize"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}

3513
composer.lock generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,231 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to place the application's name in a notification or
| any other location as required by the application or its packages.
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services your application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
'log' => env('APP_LOG', 'single'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
Illuminate\Bus\BusServiceProvider::class,
Illuminate\Cache\CacheServiceProvider::class,
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
Illuminate\Cookie\CookieServiceProvider::class,
Illuminate\Database\DatabaseServiceProvider::class,
Illuminate\Encryption\EncryptionServiceProvider::class,
Illuminate\Filesystem\FilesystemServiceProvider::class,
Illuminate\Foundation\Providers\FoundationServiceProvider::class,
Illuminate\Hashing\HashServiceProvider::class,
Illuminate\Mail\MailServiceProvider::class,
Illuminate\Notifications\NotificationServiceProvider::class,
Illuminate\Pagination\PaginationServiceProvider::class,
Illuminate\Pipeline\PipelineServiceProvider::class,
Illuminate\Queue\QueueServiceProvider::class,
Illuminate\Redis\RedisServiceProvider::class,
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Package Service Providers...
*/
Laravel\Tinker\TinkerServiceProvider::class,
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
],
];

@ -0,0 +1,102 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for your application. You may change these defaults
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| Supported: "session", "token"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model / table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
],
],
];

@ -0,0 +1,58 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an event needs to be broadcast. You may set this to
| any of the connections defined in the "connections" array below.
|
| Supported: "pusher", "redis", "log", "null"
|
*/
'default' => env('BROADCAST_DRIVER', 'null'),
/*
|--------------------------------------------------------------------------
| Broadcast Connections
|--------------------------------------------------------------------------
|
| Here you may define all of the broadcast connections that will be used
| to broadcast events to other systems or over websockets. Samples of
| each available type of connection are provided inside this array.
|
*/
'connections' => [
'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
//
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
'log' => [
'driver' => 'log',
],
'null' => [
'driver' => 'null',
],
],
];

@ -0,0 +1,91 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
| Supported: "apc", "array", "database", "file", "memcached", "redis"
|
*/
'default' => env('CACHE_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
*/
'stores' => [
'apc' => [
'driver' => 'apc',
],
'array' => [
'driver' => 'array',
],
'database' => [
'driver' => 'database',
'table' => 'cache',
'connection' => null,
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing a RAM based store such as APC or Memcached, there might
| be other applications utilizing the same cache. So, we'll specify a
| value to get prefixed to all our keys so we can avoid collisions.
|
*/
'prefix' => 'laravel',
];

@ -0,0 +1,120 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => env('DB_CONNECTION', 'mysql'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
];

@ -0,0 +1,68 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default' => env('FILESYSTEM_DRIVER', 'local'),
/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/
'cloud' => env('FILESYSTEM_CLOUD', 's3'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Here you may configure as many filesystem "disks" as you wish, and you
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "s3", "rackspace"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_KEY'),
'secret' => env('AWS_SECRET'),
'region' => env('AWS_REGION'),
'bucket' => env('AWS_BUCKET'),
],
],
];

@ -0,0 +1,123 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
| "sparkpost", "log", "array"
|
*/
'driver' => env('MAIL_DRIVER', 'smtp'),
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/
'port' => env('MAIL_PORT', 587),
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/
'sendmail' => '/usr/sbin/sendmail -bs',
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
];

@ -0,0 +1,85 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
| Supported: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'default' => env('QUEUE_DRIVER', 'sync'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
],
'sqs' => [
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
'region' => 'us-east-1',
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'retry_after' => 90,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
];

@ -0,0 +1,38 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, SparkPost and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
*/
'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'),
],
'ses' => [
'key' => env('SES_KEY'),
'secret' => env('SES_SECRET'),
'region' => 'us-east-1',
],
'sparkpost' => [
'secret' => env('SPARKPOST_SECRET'),
],
'stripe' => [
'model' => App\User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],
];

@ -0,0 +1,179 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'file'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 120,
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it is stored. All encryption will be run
| automatically by Laravel and you can use the Session like normal.
|
*/
'encrypt' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using the "apc" or "memcached" session drivers, you may specify a
| cache store that should be used for these sessions. This value must
| correspond with one of the application's configured cache stores.
|
*/
'store' => null,
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'laravel_session',
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => env('SESSION_DOMAIN', null),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE', false),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. You are free to modify this option if needed.
|
*/
'http_only' => true,
];

@ -0,0 +1,33 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| View Storage Paths
|--------------------------------------------------------------------------
|
| Most templating systems load templates from disk. Here you may specify
| an array of paths that should be checked for your views. Of course
| the usual Laravel view path has already been registered for you.
|
*/
'paths' => [
resource_path('views'),
],
/*
|--------------------------------------------------------------------------
| Compiled View Path
|--------------------------------------------------------------------------
|
| This option determines where all the compiled Blade templates will be
| stored for your application. Typically, this is within the storage
| directory. However, as usual, you are free to change this value.
|
*/
'compiled' => realpath(storage_path('framework/views')),
];

@ -0,0 +1,55 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| 萌音影视应用程序默认配置
|--------------------------------------------------------------------------
|
| link:https://www.moeins.cn
| Copyright (c) 2018 https://www.moeins.cn All rights reserved.
| Licensed:( http://www.gnu.org/licenses/gpl-3.0.en.html )
| Author: 阿珏 <https://www.52ecy.cn>
|
*/
'title' => '萌音影视',
'siteinfo' => '更新更全更受欢迎的影视网站-在线观看',
'keywords' => '萌音,萌音社区,萌音论坛,萌音影视,二次元论坛,二次元图片,二次元,动漫,电影,电视剧,阿珏博客',
'description' => '萌音影视,一个超好玩的ACGN二次元交流社区,一个充满爱与和谐的二次元社区,新番旧番,日漫美图,福利动漫,MMD等ACGN资源应有尽有.一起吐槽刷弹幕,寻找cosplay同好,还可以与大家分享二次元宅的日常,进来二次元的精彩世界',
'links' => [
'Blog' => 'https://www.52ecy.cn/post-90.html',
'GitHub' => 'https://github.com/178146582/moeins',
'反馈' => 'http://shang.qq.com/wpa/qunwpa?idkey=618c7f3214a5c5ed06c9343a395371a8b27318e5190491bf7283fbf7468e35d7',
],
'info' => [
'关于' => [
'关于我们' => '#',
'版权声明' => '#',
'用户协议' => '#'
],
'服务' => [
'加入收藏' => "javascript:layer.alert('请使用按键 Ctrl+d,收藏萌音影视_一网打尽所有主流视频网站的影视剧', {title:'加入收藏'});",
'意见反馈' => "javascript:layer.alert('请添加以下QQ群进行反馈<br>群:712473912', {title:'意见反馈'});",
'QQ交流群' => 'http://shang.qq.com/wpa/qunwpa?idkey=618c7f3214a5c5ed06c9343a395371a8b27318e5190491bf7283fbf7468e35d7',
'联系我们' => 'mailto:master@moeins.cn'
],
],
'footerinfo' => '本站不提供任何资源存储服务,只提供查询服务&nbsp;&nbsp; <span>信息网络传播视听节目许可证1109357号</span>',
// 并保留它是对作者的最大支持
'p' => 'Powered by <a target="_blank" href="https://www.moeins.cn" title="由萌音影视提供技术支持">萌音影视</a>'
];

@ -0,0 +1 @@
*.sqlite

@ -0,0 +1,24 @@
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/
/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(App\User::class, function (Faker\Generator $faker) {
static $password;
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10),
];
});

@ -0,0 +1,35 @@
<?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('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}

@ -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');
}
}

@ -0,0 +1,16 @@
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
}
}

@ -0,0 +1,21 @@
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.16.2",
"bootstrap-sass": "^3.3.7",
"cross-env": "^5.0.1",
"jquery": "^3.1.1",
"laravel-mix": "^1.0",
"lodash": "^4.17.4",
"vue": "^2.1.10"
}
}

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
</php>
</phpunit>

@ -0,0 +1,20 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

@ -0,0 +1,71 @@
body{background-color:#f4f4f4;font-size:14px}
a:hover{color:#1db69a}
li{list-style:none}
.am-topbar .am-collapse{margin-top:4px}
.logo img{padding-bottom:8px}
.am-container{max-width:1200px}
.s-tab{margin-top:20px;color:#222;font-size:12px}
.s-tab-main .cover{width:100%;height:246px;overflow:hidden;position:relative;font-size:12px}
.cover img{width:100%;height:100%}
.s-tab-main .hint{position:absolute;right:4px;bottom:4px;padding:2px 6px;background:rgba(0,0,0,.8);color:#fff;border-radius:2px}
.s-tab-main .detail{width:100%;height:53px;background:#fff;overflow:hidden}
.s-tab-main .title{font-size:14px;padding:7px 5px 3px 5px}
.s-tab-main .title .s1{display:inline-block;float:left;width:144px;height:20px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#222}
.s-tab-main .title .s2{float:right;color:#ff7b00;font-size:16px}
.s-tab-main .star{font-size:12px;color:#999;margin:0 5px;width:170px;height:18px;line-height:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:-20px}
.s-tab-main{margin-top:20px;overflow:hidden}
.g-playicon{overflow:hidden;position:relative}
.g-playicon:after{visibility:hidden;position:absolute;overflow:hidden;cursor:pointer}
.g-playicon:after{z-index:2;top:0;left:0;width:100%;height:100%;content:'';background:url(/images/t01925d53c7bd381a67.png) center no-repeat rgba(0,0,0,.3);cursor:pointer;opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-o-transition:opacity .3s linear;-ms-transition:opacity .3s linear;transition:opacity .3s linear}
.g-playicon:hover{border-color:#fefefe}
.g-playicon:hover:after{opacity:1}
.g-playicon:hover,.g-playicon:hover:after{visibility:visible}
.eb-foot{clear:both;width:100%;height:200px;background:#fff;margin-top:50px}
.eb-foot img{margin-top:-10px;margin-bottom:10px}
.eb-foot p{margin:10px auto}
.eb-foot-left a{color:#c7c7c7}
.eb-foot-right a{color:#666;font-size:12px}
.g-wide .eb-foot-wrap{width:1180px}
.eb-foot-left{float:left;margin-top:59px}
.eb-foot-right{float:right;margin-top:30px}
.eb-foot-left p{font-size:12px;color:#c7c7c7;line-height:16px}
.eb-foot-right dl{margin-top:0;float:left;margin-left:50px}
.eb-foot a:hover{color:#1db69a}
.eb-foot-right dd{height:20px}
.s-top-left{margin-top:10px;float:left;margin-bottom:10px;max-width:20%}
.s-top-left img{width:100%}
.s-top-right{margin-top:10px;float:right;max-width:77%;margin-left:25px;margin-bottom:10px}
.my-btn{margin-bottom:10px;min-width:51.25px}
.my-btn:hover{color:#fff;background-color:#5eb95e}
.s{font-size:24px;color:#FE6E04;font-weight:400;padding-left:5px;line-height:32px;margin-top:14px}
#video{height:600px}
.s-filter{padding:0 20px;background-color:#fff;border:1px solid #e6e6e6;font-size:12px;line-height:16px;margin-bottom:20px;padding-right:0}
.s-filter a{color:#000}
.s-filter-item{position:relative;overflow:hidden;height:40px;zoom:1;padding-left:36px;padding-right:50px;border-top:1px dashed #e6e6e6}
.s-filter-item .type{position:absolute;left:0;top:16px;color:#999;padding:2px 0}
.s-filter-item .item{padding:5px 0}
.s-filter-item .item a,.s-filter-item .item b{float:left;margin:5px 0 5px 20px;padding:2px 6px;zoom:1;white-space:nowrap;word-wrap:break-word;position:relative}
.s-filter-item .on{background-color:#1DB69A;color:#fff}
.s-filter-item .act{position:absolute;right:20px;top:20px;height:16px;line-height:16px}
.s5{color:#222}
.s4{color:#999}
.my-span{float:right}
.my-slider{background-color:#f4f4f4;margin:0 -11px -15px -9px!important}
.my-slider ul{border-bottom:none}
.my-slider li{background-color:#fff}
.am-tabs-bd{border:none;margin-bottom:15px}
.am-titlebar-default .am-titlebar-title{color:#1DB69A}
.am-titlebar-default .am-titlebar-title:before{border-left:3px solid #1DB69A}
.list li{float:left}
.list li a img{width:80px;margin:5px 5px 5px 5px}
.w-newfigure{float:left!important;margin:0 0 15px 0;-ms-box-shadow:0 1px 2px 0 #e9e9e9;-webkit-box-shadow:0 1px 2px 0 #e9e9e9;box-shadow:0 1px 2px 0 #e9e9e9;overflow:hidden}
.w-newfigure-309x321{width:309px!important;height:321px!important}
.w-newfigure-180x153{width:180px!important;height:153px!important}
.am-slides span{padding-left:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-titlebar-default{margin-left:0;margin-right:0}
.am-tabs{margin-top:15px}
.my-panel{float:left;width:100%}
.my-text{margin-top:.5rem;color:#757575;margin-right:50px;margin-bottom:20px}
.w-newfigure-180x321{width:180px;height:100px}
.w-newfigure-380x268{width:380px;height:268px}
.dianying img{height:306px;width:230px}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

@ -0,0 +1,58 @@
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<language>
<adCountdown>[$second]</adCountdown><!--广告播放结束倒计时-->
<skipDelay>[$second]</skipDelay>
<buttonOver>
<play>点击播放</play>
<pause>暂停播放</pause>
<mute>静音</mute>
<escMute>恢复音量</escMute>
<full>全屏</full>
<escFull>退出全屏</escFull>
<previousPage>上一集</previousPage>
<nextPage>下一集</nextPage>
<definition>点击选择清晰度</definition>
</buttonOver>
<volumeSliderOver>
音量:[$volume]%
</volumeSliderOver>
<buffer>[$percentage]%</buffer>
<timeSliderOver><!--鼠标经过进度条显示的时间格式-->
[$timeh]:[$timei]:[$times]
</timeSliderOver>
<liveAndVod>
[$timeh]:[$timei]:[$times]
</liveAndVod>
<live>
直播中 [$liveTimeY]-[$liveTimem]-[$liveTimed] [$liveTimeh]:[$liveTimei]:[$liveTimes]
</live>
<m3u8Definition>
<name>流畅</name>
<name>低清</name>
<name>标清</name>
<name>高清</name>
<name>超清</name>
<name>蓝光</name>
<name>未知</name>
</m3u8Definition>
<error>
<cannotFindUrl>视频地址不存在</cannotFindUrl>
<streamNotFound>加载失败</streamNotFound>
<formatError>视频格式错误</formatError>
</error>
<definition>自动</definition>
</language>

File diff suppressed because one or more lines are too long

@ -0,0 +1,2 @@
User-agent: *
Disallow:

@ -0,0 +1,23 @@
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

@ -0,0 +1,89 @@
![](public/images/logo.png)
[Blog](https://www.52ecy.cn) | [演示站](https://www.moeins.cn) | [QQ群](http://shang.qq.com/wpa/qunwpa?idkey=618c7f3214a5c5ed06c9343a395371a8b27318e5190491bf7283fbf7468e35d7)
基于优雅的 laravel 框架和一点都不妹子的 妹子UI 的在线影视应用
![](https://ws1.sinaimg.cn/large/0072Vf1ply1fvlkidzljxj310y0qb4qp.jpg)
![](https://ws3.sinaimg.cn/large/0072Vf1ply1fvlkieaeelj310q0q27wh.jpg)
#### 作者有话要说
虽然在线影视网上也是遍地都是,但这并不影响我自个写一个,这样以后自己看番也方便,毕竟自己动手才能丰衣足食,又能学习到新的知识,岂不美哉。
页面设计参考了部分网站。影视资源均来自网上,如有侵权,请及时联系我们。
让我们一起抛弃那些ex的60秒广告吧~
* 无数据库、无后台模式,仅只有一个配置文件(`config/web.php`)
* 无广告,支持vip解析,官方源,速度快,多频道,多分类
To-do:
* - [ ] 独立的频道首页
* - [ ] 电视台直播
* - [ ] 多解析接口
* - [ ] 待添加...
#### 赞助专享版
另外这是一个双版本应用,就是它会有两个不同的版本,赞助版基于普通版的优化而来,在功能和性能上做了很大提升,大大加快运行速度,并且保持优先的更新.
* 那么,问题来了,如何获得赞助专享版呢?
你可以在 [这里](https://github.com/178146582/qr#author) 或者 [这里](https://pay.52ecy.cn) 对项目赞助58元以上即可获得
当然,如果项目对你有帮助,或者你有需要,都可以选择赞助我们,哪怕一分也是爱
我想没有一个人写开源项目是为了牟利而写,毕竟它还没有去砖厂搬一天砖赚的多。
安装需求
------------
* LNMP/AMP With PHP5.6+
* curl、OpenSSL扩展
* Composer
通过Composer安装主程序
------------
#### 1. 使用composer安装moeins
```
$ composer create-project a-jue/moeins
```
#### 2.目录权限
将`public` 子目录设置为对外公开的web目录
#### 3.URL重写
对于Apache服务器,项目目录下的`.htaccess`已经配置好重写规则,如有需求酌情修改.
对于Nginx服务器,以下是一个可供参考的配置:
```
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}
```
#### 4.完成
* 重命名`.env.example`为`.env`
* 给本项目一个Star~
* 访问你的`域名`即可
通过Git安装
------------
#### 1. Clone本项目
```
git clone https://github.com/178146582/moeins.git
```
#### 2.composer安装扩展包
```
composer install
```
#### 3.从"通过Composer安装"的第二步继续
许可证
------------
GPLV3

@ -0,0 +1,22 @@
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
Vue.component('example', require('./components/Example.vue'));
const app = new Vue({
el: '#app'
});

@ -0,0 +1,53 @@
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Next we will register the CSRF Token as a common header with Axios so that
* all outgoing HTTP requests automatically have it attached. This is just
* a simple convenience so we don't have to attach every token manually.
*/
let token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo'
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: 'your-pusher-key'
// });

@ -0,0 +1,23 @@
<template>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Example Component</div>
<div class="panel-body">
I'm an example component!
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
mounted() {
console.log('Component mounted.')
}
}
</script>

@ -0,0 +1,38 @@
// Body
$body-bg: #f5f8fa;
// Borders
$laravel-border-color: darken($body-bg, 10%);
$list-group-border: $laravel-border-color;
$navbar-default-border: $laravel-border-color;
$panel-default-border: $laravel-border-color;
$panel-inner-border: $laravel-border-color;
// Brands
$brand-primary: #3097D1;
$brand-info: #8eb4cb;
$brand-success: #2ab27b;
$brand-warning: #cbb956;
$brand-danger: #bf5329;
// Typography
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
$font-family-sans-serif: "Raleway", sans-serif;
$font-size-base: 14px;
$line-height-base: 1.6;
$text-color: #636b6f;
// Navbar
$navbar-default-bg: #fff;
// Buttons
$btn-default-color: $text-color;
// Inputs
$input-border: lighten($text-color, 40%);
$input-border-focus: lighten($brand-primary, 25%);
$input-color-placeholder: lighten($text-color, 30%);
// Panels
$panel-default-heading-bg: #fff;

@ -0,0 +1,9 @@
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Previous',
'next' => 'Next &raquo;',
];

@ -0,0 +1,22 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'password' => 'Passwords must be at least six characters and match the confirmation.',
'reset' => 'Your password has been reset!',
'sent' => 'We have e-mailed your password reset link!',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that e-mail address.",
];

@ -0,0 +1,121 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'numeric' => 'The :attribute must be a number.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values is present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];

@ -0,0 +1,122 @@
@extends('layouts.app')
@section('title', $res[2])
@section('content')
<div class="am-panel am-panel-success">
<div class="am-panel-hd">{{$res[2]}}</div>
<div id="video"></div>
</div>
<div class="am-panel am-panel-success my-panel">
<div class="am-panel-hd">简介</div>
<div class="am-panel-bd">
<div class="s-top-left">
<img src="{{$res[1]}}">
</div>
<div class="s-top-right">
<h1 class="am-article-title">{{$res[2]}}<span class="s">{{strip_tags($res[3])}}</span></h1>
<p>{{strip_tags($res[4])}}</p>
<p>{{strip_tags($res[5])}}</p>
<p>{{strip_tags($res[6])}}</p>
</div>
</div>
</div>
@if ($count > 1)
<div class="am-panel am-panel-success my-panel">
<div class="am-panel-hd">全部剧集</div>
<div class="am-panel-bd">
@for($i = 0;$i < $count; $i++)
<button type="button" class="am-btn am-btn-default am-radius my-btn" data-url="{{$pages[$type=='va'?'1':'2'][$i]}}">{{$pages[$type=='va'?'2':'1'][$i]}}</button>
@endfor
</div>
</div>
@endif
@endsection
@section('js')
var videoObject = {
container: '#video',
variable: 'player',
autoplay: false,
drag: 'start',
seek: 0,
adpause: 'https://ws4.sinaimg.cn/large/0072Vf1ply1fvjidch261g308c06yglu.jpg,https://ws1.sinaimg.cn/large/0072Vf1ply1fvjidctnoug308c06y0t6.jpg',
adpausetime: '5,5',
adpauselink: 'https://www.52ecy.cn/post-84.html,https://www.52ecy.cn/post-77.html',
video: ''
};
var player = new ckplayer(videoObject);
$('.my-btn').on('click', function() {
$('.my-btn').removeClass('am-btn-success');
$(this).addClass('am-btn-success');
layer.tips('准备播放第' + $(this).html() + '集', this, {
tips: 1
});
api($(this).attr('data-url'))
});
api('{{$video}}');
function api(url) {
var histemp = store.get('history') ? store.get('history') : [];
for (var i = 0; i < histemp.length; i++) {
if (histemp[i].name == "{{$res[2]}}" && histemp[i].url == document.location.toString()) {
histemp.splice(i, 1);
break
}
}
histemp.unshift({
name: '{{$res[2]}}',
url: document.location.toString()
});
if (histemp.length > 6) histemp.length = 6;
store.set('history', histemp);
$.post('{{url('api')}}', {
'url': url,
'_token': '{{csrf_token()}}'
}, function(res) {
if (res.status != '0') {
layer.msg(res.msg, {
icon: 5
});
return
}
changeVideo(res.msg)
})
}
function changeVideo(videoUrl) {
if (player == null) {
return
}
var newVideoObject = {
container: '#video',
variable: 'player',
autoplay: true,
drag: 'start',
seek: 0,
adpause: 'https://ws4.sinaimg.cn/large/0072Vf1ply1fvjidch261g308c06yglu.jpg,https://ws1.sinaimg.cn/large/0072Vf1ply1fvjidctnoug308c06y0t6.jpg',
adpausetime: '5,5',
adpauselink: 'https://www.52ecy.cn/post-84.html,https://www.52ecy.cn/post-77.html',
promptSpot: [{words: '萌音影视',time: 300}, {words: 'www.moeins.cn',time: 150}],
loaded: 'loadedHandler',
video: videoUrl
};
if (player.playerType == 'html5video') {
if (player.getFileExt(videoUrl) == '.flv' || player.getFileExt(videoUrl) == '.m3u8' || player.getFileExt(videoUrl) == '.f4v' || videoUrl.substr(0, 4) == 'rtmp') {
player.removeChild();
player = null;
player = new ckplayer();
player.embed(newVideoObject)
} else {
player.newVideo(newVideoObject)
}
} else {
if (player.getFileExt(videoUrl) == '.mp4' || player.getFileExt(videoUrl) == '.webm' || player.getFileExt(videoUrl) == '.ogg') {
player = null;
player = new ckplayer();
player.embed(newVideoObject)
} else {
player.newVideo(newVideoObject)
}
}
}
@endsection

@ -0,0 +1,175 @@
@extends('layouts.app')
@section('title', config('web.title'))
@section('content')
<div data-am-widget="slider" class="am-slider am-slider-default" data-am-slider='{"animation":"slide","slideshow":true,"controlNav":false}' >
<ul class="am-slides">
@for ($i = 0;$i < 6; $i++)
<li>
<a href="{{url($slider[2][$i])}}">
<img src="{{$slider[1][$i]}}">
<div class="am-slider-desc">{{$slider[3][$i]}}<br>{{$slider[4][$i]}}</div>
</a>
</li>
@endfor
</ul>
</div>
<div class="am-u-sm-12 am-u-lg-9">
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
电视剧
</h2>
</div>
<div class="s-tab-main">
<ul class="am-avg-lg-5 am-thumbnails">
@for($i = 0; $i < 20; $i++)
<li>
<a href="{{url($res[1][$i])}}" target="_blank">
<div class="g-playicon">
<img src="{{$res[2][$i]}}">
<span class="hint">{{$res[3][$i]}}</span>
</div>
<div class="detail">
<p class="title">
<span class="s5">{{$res[4][$i]}}</span>
<span class="s2">{{strip_tags($res[5][$i])}}</span>
</p>
<p class="star">{{$res[6][$i]}}</p>
</div>
</a>
</li>
@endfor
</ul>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
综艺
</h2>
</div>
<div class="s-tab-main">
<ul class="am-avg-lg-12 am-thumbnails">
@for($i = 20; $i < 27; $i++)
<li class="w-newfigure {{$i==20?'w-newfigure-309x321':'w-newfigure-180x153'}}">
<a href="{{url($res[1][$i])}}" target="_blank">
<div class="g-playicon">
<img src="{{$res[2][$i]}}" class="{{$i==20?'w-newfigure-380x268':'w-newfigure-180x321'}}">
<span class="hint">{{$res[3][$i]}}</span>
</div>
<div class="detail">
<p class="title">
<span class="s5">{{$res[4][$i]}}</span>
<span class="s2">{{strip_tags($res[5][$i])}}</span>
</p>
<p class="star">{{$res[6][$i]}}</p>
</div>
</a>
</li>
@endfor
</ul>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
电影
</h2>
</div>
<div class="s-tab-main">
<ul class="am-avg-lg-4 am-thumbnails">
@for($i = 27; $i < 39; $i++)
<li>
<a href="{{url($res[1][$i])}}" target="_blank">
<div class="g-playicon dianying">
<img src="{{$res[2][$i]}}">
<span class="hint">{{$res[3][$i]}}</span>
</div>
<div class="detail">
<p class="title">
<span class="s5">{{$res[4][$i]}}</span>
<span class="s2">{{strip_tags($res[5][$i])}}</span>
</p>
<p class="star">{{$res[6][$i]}}</p>
</div>
</a>
</li>
@endfor
</ul>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
动漫
</h2>
</div>
<div class="s-tab-main">
<ul class="am-avg-lg-7 am-thumbnails">
@for($i = 39; $i < 46; $i++)
<li class="w-newfigure {{$i==39?'w-newfigure-309x321':'w-newfigure-180x153'}}">
<a href="{{url($res[1][$i])}}" target="_blank">
<div class="g-playicon">
<img src="{{$res[2][$i]}}" class=" {{$i==39?'w-newfigure-380x268':'w-newfigure-180x321'}}">
<span class="hint">{{$res[3][$i]}}</span>
</div>
<div class="detail">
<p class="title">
<span class="s5">{{$res[4][$i]}}</span>
<span class="s2">{{strip_tags($res[5][$i])}}</span>
</p>
<p class="star">{{$res[6][$i]}}</p>
</div>
</a>
</li>
@endfor
</ul>
</div>
</div>
<div class="am-u-lg-3">
@for ($q = 0;$q < 3;$q++)
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
{{$type_lists[$q]}}
</h2>
</div>
<ul class="am-list am-list-border">
@for ($i = ($q+1)*10;$i < ($q+1)*10+9;$i++)
<li>
<a href="{{url($lists[2][$i])}}" class="s5" target="_blank">
<span class="am-badge am-badge-success">{{$lists[1][$i]}}</span>
{{$lists[3][$i]}}
<span class="my-span">{{$lists[4][$i]}}</span>
</a>
</li>
@endfor
</ul>
@endfor
</div>
<div class="am-u-lg-12">
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default am-no-layout">
<h2 class="am-titlebar-title ">
合作专区
</h2>
</div>
<div class="s-tab-main">
<ul class="list">
@for ($i = 0;$i < 23; $i++)
<li><a href="{{$links[1][$i]}}" target="_blank"><img src="{{$links[2][$i]}}"></a></li>
@endfor
<li><a href="https://www.moeins.cn/?{{url('/')}}" target="_blank"><img src="https://www.moeins.cn/images/logo.png"></a></li>
</ul>
</div>
</div>
@endsection

@ -0,0 +1,162 @@
<!doctype html>
<html class="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="{{config('web.description')}}">
<meta name="keywords" content="{{config('web.keywords')}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title') - {{config('web.siteinfo')}}</title>
<meta name="apple-mobile-web-app-title" content="阿珏博客">
<meta name="generator" content="萌音影视">
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="shortcut icon" href="{{asset('favicon.ico')}}">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="128x128" href="{{asset('app-icon128x128@2x.ico')}}">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Amaze UI">
<link rel="apple-touch-icon-precomposed" href="{{asset('app-icon72x72@2x.ico')}}">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="{{asset('app-icon72x72@2x.ico')}}">
<meta name="msapplication-TileColor" content="#0e90d2">
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<link rel="canonical" href="http://www.example.com/">
<link rel="stylesheet" href="https://cdn.bootcss.com/amazeui/2.7.2/css/amazeui.min.css">
<link rel="stylesheet" href="{{asset('css/main.css')}}">
</head>
<body>
<body>
<header class="am-topbar">
<div class="am-container">
<h1 class="am-topbar-brand hover-bounce">
<a href="/" class="logo">
<img src="{{asset('images/logo.png')}}">
</a>
</h1>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<li><a href="{{url('/')}}">首页</a></li>
<li><a href="{{url('dianshi/list')}}">电视剧</a></li>
<li><a href="{{url('dianying/list')}}">电影</a></li>
<li><a href="{{url('dongman/list')}}">动漫</a></li>
<li><a href="{{url('zongyi/list')}}">综艺</a></li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
更多 <span class="am-icon-caret-down"></span>
</a>
<ul class="am-dropdown-content">
@foreach(config('web.links') as $k =>$v)
<li><a href="{{$v}}" target="_blank">{{$k}}</a></li>
@endforeach
</ul>
</li>
</ul>
<div class="am-topbar-right">
<form class="am-topbar-form am-topbar-left am-form-inline" role="search" action="{{url('search')}}">
<div class="am-input-group am-input-group-success am-input-group-sm">
<input name="wd" type="text" class="am-form-field" placeholder="搜索" required>
<span class="am-input-group-btn">
<button class="am-btn am-btn-success" type="submit">
<span class="am-icon-search"></span>
</button>
</span>
</div>
</form>
<div id="show-history-dropdown" class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
<button id="show-history" class="am-btn am-btn-success am-topbar-btn am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>
观看记录 <span class="am-icon-caret-down"></span>
</button>
<ul id="history-list" class="am-dropdown-content">
<li><a href="javascript:;">暂无播放记录</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<div class="am-container">
@yield('content')
</div>
<div class="eb-foot">
<div class="am-container">
<div class="eb-foot-wrap g-clear">
<div class="eb-foot-left">
<p><img src="{{asset('images/logo.png')}}"></p>
<p>Copyright © {{config('web.title')}}. All Rights Reserved. {!!config('web.p')!!}</p>
<p>{!!config('web.footerinfo')!!}</p>
</div>
<div class="eb-foot-right g-clear">
@foreach (config('web.info') as $key => $value)
<dl>
<dt>{{$key}}</dt>
@foreach ($value as $k => $v)
<dd><a href="{{$v}}" target="_blank">{{$k}}</a></dd>
@endforeach
</dl>
@endforeach
</div>
</div>
</div>
</div>
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
<a href="#top" title="滚回顶部">
<i class="am-gotop-icon am-icon-arrow-up"></i>
</a>
</div>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script src="https://cdn.bootcss.com/amazeui/2.7.2/js/amazeui.min.js"></script>
<script src="https://cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script>
<script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>
<script src="{{asset('js/ckplayer.min.js')}}"></script>
<script type="text/javascript">
var store = $.AMUI.store;
$(function() {
@yield('js')
$("#show-history").click(function() {
if (store.enabled) {
var histemp = store.get('history')? store.get('history'): [];
if(histemp.length > 0) {
$("#history-list").html('');
for(var i = 0; i < histemp.length; i++) {
$("#history-list").append('<li><a href="'+histemp[i].url+'">'+histemp[i].name+'</a></li>');
}
$("#history-list").append('<li><a href="javascript:;" onclick="javascript:clearHistory();"><span class="am-text-warning am-text-xs">清空播放记录</span></a></li>');
}
}else{
layer.msg('抱歉,当前浏览器不支持保存记录!', {icon: 5});
}
});
});
function clearHistory() {
$("#show-history-dropdown").dropdown("close");
store.remove('history');
layer.msg("播放记录已清空");
$("#history-list").html('<li><a href="javascript:;">暂无播放记录</a></li>');
}
</script>
</body>
</html>

@ -0,0 +1,127 @@
@extends('layouts.app')
@section('title', '萌音影视分类列表')
@section('content')
<div class="s-tab">
<div class="s-filter">
<dl class="s-filter-item">
<dt class="type"><i class="am-icon-television am-icon-fw"></i> 频道:</dt>
<dd class="item">
@foreach ($types as $k => $v)
@if ($type == $k)
<b class="on">{{$v}}</b>
@else
<a target="_self" href="{{url($k.'/list')}}">{{$v}}</a>
@endif
@endforeach
</dd>
</dl>
<dl class="s-filter-item">
<dt class="type"><i class="am-icon-tachometer am-icon-fw"></i> 类型:</dt>
<dd class="item">
@if ($cat == 'all')
<b class="on">全部</b>
@endif
@for ($i = 0; $i < $cats_count; $i++)
@if ($cats[1][$i] === '' and $cats[3][$i] != '更早')
<b class="on">{{$cats[3][$i]}}</b>
@elseif ($cats[1][$i] != '')
<a href="{{url($type.'/list',[$cats[1][$i],$year,$area])}}" target="_self">{{$cats[2][$i]}}</a>
@endif
@endfor
</dd>
<dd class="act">
<a class="js-filter-open" href="#" style="display: inline;">更多 <i class="am-icon-arrow-down am-icon-fw"></i></a>
<a class="js-filter-close" href="#" style="display: none;">收起 <i class="am-icon-arrow-up am-icon-fw"></i></a>
</dd>
</dl>
@if ($years_count != '0')
<dl class="s-filter-item">
<dt class="type"><i class="am-icon-calendar-check-o am-icon-fw"></i> 年代:</dt>
<dd class="item">
@if ($year == 'all')
<b class="on">全部</b>
@endif
@for ($i = 0; $i < $years_count; $i++)
@if ($years[1][$i] === '')
<b class="on">{{$years[3][$i]}}</b>
@elseif ($years[1][$i] != '')
<a href="{{url($type.'/list',[$cat,$years[1][$i],$area])}}" target="_self">{{$years[2][$i]}}</a>
@endif
@endfor
</dd>
<dd class="act">
<a class="js-filter-open" href="#" style="display: inline;">更多 <i class="am-icon-arrow-down am-icon-fw"></i></a>
<a class="js-filter-close" href="#" style="display: none;">收起 <i class="am-icon-arrow-up am-icon-fw"></i></a>
</dd>
</dl>
@endif
<dl class="s-filter-item">
<dt class="type"><i class="am-icon-map-o am-icon-fw"></i> 地区:</dt>
<dd class="item">
@if ($area == 'all')
<b class="on">全部</b>
@endif
@for ($i = 0; $i < $areas_count; $i++)
@if ($areas[1][$i] === '')
<b class="on">{{$areas[3][$i]}}</b>
@elseif ($areas[1][$i] != '')
<a href="{{url($type.'/list',[$cat,$year,$areas[1][$i]])}}" target="_self">{{$areas[2][$i]}}</a>
@endif
@endfor
</dd>
<dd class="act">
<a class="js-filter-open" href="#" style="display: inline;">更多 <i class="am-icon-arrow-down am-icon-fw"></i></a>
<a class="js-filter-close" href="#" style="display: none;">收起 <i class="am-icon-arrow-up am-icon-fw"></i></a>
</dd>
</dl>
</div>
<div class="s-tab-main">
<ul class="am-avg-sm-3 am-avg-md-4 am-avg-lg-6 am-thumbnails">
@for($i = 0; $i < $count; $i++)
<li>
<a href="{{url($res[1][$i])}}" target="_blank">
<div class="cover g-playicon">
<img src="{{$res[2][$i]}}">
<span class="hint">{{$res[3][$i]}}</span>
</div>
<div class="detail">
<p class="title">
<span class="s1">{{$res[4][$i]}}</span>
<span class="s2">{{$res[5][$i]}}</span>
</p>
<p class="star">{{$res[6][$i]}}</p>
</div>
</a>
</li>
@endfor
</ul>
</div>
</div>
@if ($page_count > 1)
<ul class="am-pagination am-pagination-centered">
<li class="{{$page=='1'?'am-disabled':''}}"><a href="{{url($type,['list',$cat,$year,$area,$page-1])}}">&laquo;</a></li>
@for ($i = $start; $i < $end; $i++)
@if ($page == $i)
<li class="am-active"><a href="javascript:volid(0);">{{$i}}</a></li>
@elseif (($end - $i == 1) && $i != $page_count)
<li><a href="{{url($type,['list',$cat,$year,$area,$i])}}">...</a></li>
@else
<li><a href="{{url($type,['list',$cat,$year,$area,$i])}}">{{$i}}</a></li>
@endif
@endfor
<li class="{{$page==$page_count?'am-disabled':''}}"><a href="{{url($type,['list',$cat,$year,$area,$page+1])}}">&raquo;</a></li>
</ul>
@endif
@endsection
@section('js')
$('.js-filter-open').click(function(){$(this).parent().parent().height('auto');$(this).next().show();$(this).hide()});$('.js-filter-close').click(function(){$(this).parent().parent().height('40px');$(this).prev().show();$(this).hide()});
@endsection

@ -0,0 +1,43 @@
@extends('layouts.app')
@section('title', $key . ' 搜索结果')
@section('content')
<div data-am-widget="list_news" class="am-list-news am-list-news-default am-no-layout">
<div class="am-list-news-bd">
@if ($count > 0)
<ul class="am-list">
@for ($i = 0; $i < $count; $i++)
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
<div class="am-u-sm-4 am-list-thumb s-top-left" style="margin-left: 50px;">
<a href="{{url($res[3][$i])}}" target="_blank">
<img src="{{$res[1][$i]}}">
</a>
</div>
<div class="am-u-sm-8 am-list-main s-top-right">
<h1 class="am-list-item-hd">
<a href="{{url($res[3][$i])}}" target="_blank" class="search-item-href">{{strip_tags($res[4][$i])}}</a>
</h1>
<div class="my-text">{{strip_tags($res[5][$i])}}</div>
<a href="{{url($res[3][$i])}}" target="_blank" class="am-btn am-btn-success am-btn-sm search-item-btn" style="padding: .5em 1em;">
<i class="am-icon-play"></i>
在线播放
</a>
</div>
</li>
@endfor
</ul>
@else
<div class="am-container">
<div class="am-alert am-alert-success" data-am-alert="">
<button type="button" class="am-close">×</button>
<p>什么都没有找到o</p>
</div>
</div>
@endif
</div>
</div>
@endsection

@ -0,0 +1,95 @@
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@if (Auth::check())
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ url('/login') }}">Login</a>
<a href="{{ url('/register') }}">Register</a>
@endif
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Documentation</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>

@ -0,0 +1,18 @@
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});

@ -0,0 +1,16 @@
<?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');

@ -0,0 +1,19 @@
<?php
/*
|--------------------------------------------------------------------------
| 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::get('/', 'IndexController@index');
Route::get('/search','IndexController@search');
Route::get('/{type}/list/{cat?}/{year?}/{area?}/{page?}', 'IndexController@lists');
Route::get('/play/{url}', 'IndexController@play');
Route::post('/api', 'IndexController@api');
Route::get('/{type}/{id}', 'IndexController@detail');

@ -0,0 +1,21 @@
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';

@ -0,0 +1,3 @@
*
!public/
!.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,8 @@
config.php
routes.php
schedule-*
compiled.php
services.json
events.scanned.php
routes.scanned.php
down

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,2 @@
*
!.gitignore

@ -0,0 +1,22 @@
<?php
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}

@ -0,0 +1,23 @@
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$response = $this->get('/');
$response->assertStatus(200);
}
}

@ -0,0 +1,10 @@
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
}

@ -0,0 +1,20 @@
<?php
namespace Tests\Unit;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->assertTrue(true);
}
}

@ -0,0 +1,15 @@
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
Loading…
Cancel
Save