text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should... |
<?php
namespace app\commands;
use app\models\AuthUser;
use Yii;
use yii\rest\ActiveController;
class BaseActiveController extends ActiveController{
public $is_token=true;
protected $formatType = 'json';
public $post = null;
public $get = null;
public $user = null;
public $userId = null;
publ... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\UserRequest;
use App\Models\User;
use Illuminate\Http\Request;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$use... |
<?php
$logoUrl="../../images/logo.png";
?> |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTaskRolesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('task_roles', ... |
@php( $countries = \App\Models\Country::OfCountry($parid)->where('sub', $levelid)->where('name','>','')->orderBy('name')->get() )
@php( $itemid = (isset($itemid) ? $itemid : 0) )
@php( $names = array(1=>'countryname', 2=>'seaportname',3=>'airportname') )
@foreach($countries as $country)
<option class="cname {{ $names[... |
<?php
namespace App\Http\Controllers\Client;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class HocPhiController extends Controller
{
public function index()
{
$student = \Auth::guard('sinh_vien')->user();
// dd($student, $student->lop, $student->hoaDons->sum('so_tien_dong'));
... |
<?php declare(strict_types=1);
namespace PeeHaa\MailGrabTest\Unit\Cli\Input;
use PeeHaa\MailGrab\Cli\Command;
use PeeHaa\MailGrab\Cli\Input\Argument;
use PeeHaa\MailGrab\Cli\Input\Validator;
use PeeHaa\MailGrab\Cli\Option;
use PHPUnit\Framework\TestCase;
class ValidatorTest extends TestCase
{
/** @var Argument[]... |
<?php
namespace task\models;
use Yii;
/**
* This is the model class for collection "customer".
*
* @property \MongoDB\BSON\ObjectID|string $_id
* @property mixed $id
* @property mixed $name
* @property mixed $province
* @property mixed $city
* @property mixed $town
* @property mixed $address
* @property mi... |
<?php
namespace App\Controllers;
use App\Helpers\Utilities;
use App\Models\ProductsModel;
use App\Models\CheckoutsModel;
use App\Models\UsersModel;
class Admin extends BaseController
{
protected $session;
protected $requests;
protected $ProductsModel;
protected $CheckoutsModel;
protected $token;
... |
<?php
namespace bulldozer\catalog\frontend;
use bulldozer\base\FrontendModule;
/**
* Class Module
* @package bulldozer\catalog\frontend
*/
class Module extends FrontendModule
{
} |
<?php
declare(strict_types=1);
use Rector\Privatization\Rector\Class_\ChangeReadOnlyVariableWithDefaultValueToConstantRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerCo... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Setting extends Model
{
//
protected $fillable=['type','description'];
public function currency(){
return $this->belongsTo('App\Currency','code');
}
} |
<?php
namespace AppBundle\Form\Form;
use AppBundle\Form\Field\EnvironmentPickerType;
use AppBundle\Form\Field\SubmitEmsType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormEvents;
class CompareEnvironmentF... |
<?php
namespace Html;
class Table {
public $title = "";
public $numRows = 0;
public function message() {
echo "<p>Table '{$this->title}' has {$this->numRows} rows.</p>";
}
}
$table = new Table();
$table->title = "My table";
$table->numRows = 5;
?>
<!DOCTYPE html>
<html>
<body>
<?php
$table->message();
?>
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class FinanceCategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
<?php
/*
This is our class autoloader since the original __autoloader is depracated since PHP 5 i belive it was
and for scalability with the everchanging versions its better to use <PSR-4> rather than PSR-0
__autoload original PHP func is no longer supported and will be removed in the futu... |
<?
$MESS ['EDIT_TASK_TITLE'] = "Редактирование уровней доступа # #ID#";
$MESS ['NEW_TASK_TITLE'] = "Добавление уровня доступа";
$MESS ['RECORD_LIST'] = "Список уровней доступа";
$MESS ['STRING_ID'] = "Символьный идентификатор:";
$MESS ['NAME'] = "Название:";
$MESS ['DESCRIPTION'] = "Описание:";
$MESS ['MODULE_ID'] = "М... |
<div class="form-group">
{{Form::label("estado","Estado",["class"=>"control-label col-sm-2"])}}
<div class="col-sm-10">
<select id="estado" class="estado" name="estado">
@foreach($estados as $estado)
@if($estado->id == 14)
<option value="{{$estado->id}}">{... |
<?php
/**
* Ridizain Featured Content
*
* This module allows you to define a subset of posts to be displayed
* in the theme's Featured Content area.
*
* For maximum compatibility with different methods of posting users
* will designate a featured post tag to associate posts with. Since
* this tag now has specia... |
<?php
use Illuminate\Database\Seeder;
class RaritiesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
} |
<?php
namespace Tzsk\Sms\Tests\Drivers;
use Tzsk\Sms\Tests\Mocks\Drivers\MockTextLocal;
use Tzsk\Sms\Tests\TestCase;
class TextlocalTest extends TestCase
{
use DriverCommon;
protected function getDriver()
{
return new MockTextLocal();
}
} |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
{include file="Pub/header" /}
<link rel="stylesheet" href="<?=$publicDomain?>/mobile/css/usercenter.css" />
<link rel="stylesheet" href="<?=$publicDomain?>/mobile/css/ucenter_set.css" />
<!-- content -->
<header class="page-header">
<div class="page-bar">
<a href="javascript:history.go(-1)">
<span class="ba... |
<?php
// http://185.230.162.140/foodtracker/delete.php?ID=1
include("header.html");
include("api/delete.php");
include("footer.html");
?> |
<?php
/**
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright (c) baserCMS Users Community <http://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link http://basercms.net baserCMS Project
* @package Baser.Model
* @since baserCMS v 0.1.0
* @... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddCatToJob extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('jobs', function (Bluepr... |
<?php
namespace Sample;
require __DIR__ . '/../vendor/autoload.php';
use Sample\PayPalClient;
use PayPalCheckoutSdk\Payments\CapturesRefundRequest;
class RefundOrder
{
/**
* Function to create an refund capture request. Payload can be updated to issue partial refund.
*/
public static function buil... |
<?php
namespace App\Http\Livewire\Admin;
use Livewire\Component;
use App\Models\Category;
use App\Models\Product;
use Illuminate\Support\Str;
use Carbon\Carbon;
use Livewire\WithFileUploads;
class AdminAddProductComponent extends Component
{
use WithFileUploads;
public $name;
public $slug;
public $s... |
<div class="main-menu menu-fixed menu-light menu-accordion menu-shadow " data-scroll-to-active="true">
<div class="main-menu-content">
<ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
<li class="nav-item active"><a href=""><i class="la la-mouse-po... |
<?php
namespace app\components\Auth\JWT;
use yii\helpers\Url;
final class JWTConfig
{
// Ключ шифрования
private string $secretKey;
// Дата создания
private int $issuedAt;
// Время истечения токена
private int $expire;
// Хост токена
private string $serverName;
// Алгоритм шифрован... |
<?php
/**
* @deprecated This file is deprecated from Q2A 1.7; use the below file instead.
*/
require_once QA_INCLUDE_DIR.'plugins/qa-widget-activity-count.php'; |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// 定制字段数据
Schema::create('custo... |
<?php
namespace App\Http\Middleware;
use Closure;
class AdminMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(!auth()->user... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use app\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->lang... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
namespace Nemundo\Workflow\App\WorkflowTemplate\Data\DeadlineChange;
class DeadlineChangeListBox extends \Nemundo\Package\Bootstrap\FormElement\BootstrapModelListBox {
/**
* @var DeadlineChangeModel
*/
public $model;
protected function loadContainer() {
parent::loadContainer();
$this->model = new DeadlineChangeM... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class Res_Steps extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
re... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\Filterable;
class Bet extends Model
{
use HasFactory, Filterable;
protected $casts = [
'cases' => 'array',
];
} |
<?php
namespace Ploi\Resources;
use Ploi\Http\Response;
class Queue extends Resource
{
private $server;
private $site;
public function __construct(Server $server, Site $site, int $id = null)
{
parent::__construct($server->getPloi(), $id);
$this->setServer($server);
$this->se... |
<?php
namespace User\Validator;
use Zend\Validator\AbstractValidator;
use User\Entity\Permission;
/**
* This validator class is designed for checking if there is an existing permission
* with such a name.
*/
class PermissionExistsValidator extends AbstractValidator
{
/**
* Available validator options.
... |
<?php
foreach($profil->result() as $data){
}
$csrf_name = $this->security->get_csrf_token_name();
$csrf_hash = $this->security->get_csrf_hash();
?>
<div class="page-header header-filter" data-parallax="true"
style="background-image: url('<?=base_url("template/assets/img/background.jpg');");?>"></div>
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateColorSizeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('color_size', ... |
<?php
namespace common\modules\admin\controllers;
use yii\web\Controller;
/**
* Default controller for the `modules` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this... |
<?php
/**
* Pimcore
*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Enterprise License (PEL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\{
PlanController,
DetailPlanController,
DoctorController,
ProfileController,
EmployeeController,
EnderecoController,
PatientController,
AgendaController,
ListagemController,
CadastroController
};
Route::... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PmGroup6 extends Model
{
use HasFactory;
protected $table = 'pm_group6';
protected $fillable = ['id','name','active'];
public $incrementing = false;
public function gr... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests;
use Symfony\Component\Console\Applicat... |
<!-- breadcrumb start -->
<!-- ================ -->
<div class="breadcrumb-container">
<div class="container">
<ol class="breadcrumb">
<li class="breadcrumb-item"><i class="fa fa-home pr-2"></i><a href="index.html">Home</a></li>
<li class="breadcrumb-item active">Cursos de Capacitación</li>
</ol>
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class htrans_in extends Model
{
//
protected $table='htrans_in';
protected $primaryKey = 'id_htrans_in';
const CREATED_AT = 'tanggal_htrans_in';
const UPDATED_AT = null;
protected $fillable= [
'id_htrans_in','id_supplier'
... |
<div class="row">
<div class="col-md-10 col-sm-10 col-xs-10">
<div class="x_panel">
<div class="x_title">
<h2>Edit User</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<br />
... |
<?php
use horstoeko\zugferd\quick\ZugferdQuickDescriptorEn16931;
use horstoeko\zugferd\codelists\ZugferdTextSubjectCodeQualifiers;
require getcwd() . "/../vendor/autoload.php";
$document = (ZugferdQuickDescriptorEn16931::doCreateNew())
->doCreateInvoice("471102", \DateTime::createFromFormat("Ymd", "20180305"), "... |
@extends('layouts.app')
@section('botones')
<a href="{{ route('recetas.index') }}" class="btn btn-primary mr-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 icono" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-12">
<h2>Bulk Perstore</h2>
</div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-12">
... |
<?php
namespace TCG\Voyager\Http\Controllers\Auth;
use TCG\Voyager\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\VerifiesEmails;
class VerificationController extends Controller
{
/*
|--------------------------------------------------------------------------
| Email Verification Controller
... |
<?php
use yii\helpers\Html;
$this->title = 'Добавить совет';
$this->params['breadcrumbs'][] = ['label' => 'Советы', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
... |
<?php
/**
* Cheese
* The MIT License (MIT)
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, i... |
<?php
namespace Test\Http;
use Test\HttpTestCase;
class HttpTest extends HttpTestCase
{
public function testGet(): void
{
$response = $this->get('/get');
$this->assertEquals('true', $response->getContent());
}
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reset Password') }}</div>
<div class="card-body">
@if (sess... |
<?
define("NEED_AUTH",true);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Техническая поддержка");
?><p>Для просмотра созданных обращений в IT-службу и дальнейшего обсуждения вопросов воспользуйтесь ссылкой "Мои обращения". Создание новой заявки выполняется по шагам с помощью специал... |
<?php
namespace app\modules\admin\modules\miniActivity\controllers;
use app\modules\admin\modules\miniActivity\models\Wheel;
use app\modules\admin\modules\miniActivity\models\WheelLog;
use app\modules\admin\modules\miniActivity\models\WheelLogSearch;
use Yii;
use yii\filters\VerbFilter;
use yii\web\Controller;
use yi... |
<?php
session_start();
$_SESSION['identifiant'];
?>
<?php
if (!empty($_COOKIE['nom'])){
$autorisation = "oui";
}else{
header ('location:inscription.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Répondre</title>
<link rel="stylesheet" href="new22.css">
<link rel="stylesheet" href="indexcss.css">
<link re... |
<?php
namespace FuturSport\Model;
use RuntimeException;
use Zend\Db\TableGateway\TableGatewayInterface;
use Zend\Db\Sql\Select;
class PosicionsTable
{
private $tableGateway;
public function __construct(TableGatewayInterface $tableGateway)
{
$this->tableGateway = $tableGateway;
}
public f... |
--TEST--
IntlCalendar::getTimeZone(): bad arguments
--INI--
date.timezone=Atlantic/Azores
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
var_dump(intlcal_get_time_zone(1));
--EXPECTF--
Fatal error: Uncaught TypeError: Argu... |
<?php
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
/**
* This is the delete-action, it will delete an item.
*
* @author Davy Hellemans <davy.hellemans@netlash.com>
* @author Tijs Verkoyen ... |
<?php
namespace Doctrine\Tests\DBAL\Schema;
use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class TableDiffTest extends \PHPUnit\Framework\TestCase
{
/**
* @group DBAL-1013
*/
public function testReturnsName()
{
$table... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ProjectDetailsItem extends Model
{
protected $table = 'project_details';
protected $fillable = ['project_details_id', 'project_name', 'programmer_id', 'time_allocation_status0', 'overtime_final_status', 'start_date' ,'end_date', 'remarks', 'o... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Auth extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
if ($this->session->userdata('email')) {
if ($this->session->userdata('role_id') =... |
@extends('templates.default')
@section('content')
<!-- ============================================================== -->
<!-- pageheader -->
<!-- ============================================================== -->
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
</div>
</div>
<!--... |
<?php
//
//
// $Id: ValidatorManager.class.php,v 1.24 2008/07/28 08:30:49 Ryuji.M Exp $
//
require_once VALIDATOR_DIR . '/Validator.interface.php';
/**
* Validatorを管理するクラス
*
* @author Ryuji Masukawa
* @package nc.util
**/
class ValidatorManager {
/**
* @var Validatorを保持する
*
* @access private
**/
var $_... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should... |
<?php
/**
* @package Flextype
*
* @author Sergey Romanenko <awilum@yandex.ru>
* @link http://flextype.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flextype;
use Flextype\Component\Filesystem\Filesystem;
use Fle... |
<nav class="navbar navbar-expand-md bg-img navbar-dark">
<!-- Brand -->
<a class="navbar-brand" href="/">
<img src="images/logo.svg" alt="" width="30"> Peperoni App</a>
<!-- Toggler/collapsibe Button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class GoodsUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('goods_users', function ... |
<?php
use yii\helpers\Html;
use frontend\helpers\ActiveFormrdiv;
/* @var $this yii\web\View */
/* @var $model app\models\Parcel */
/* @var $form yii\widgets\ActiveForm */
?>
<?php $form = ActiveFormrdiv::begin(); ?>
<table class="table table-bordered table-hover">
<tr>
<td width=15% align='right'>编号</td>
<td ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Video extends Model
{
protected $table = "videos";
protected $fillable=['id','name','viewers'];
public $timestamps = false;
} |
<?php declare(strict_types=1);
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://swoft.org/docs
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace Swoft\Amqp;
use PhpAmqpLib\Exchange\AMQPExchangeType;
use Swoft\Amqp\... |
<?php
namespace app\admin\controller;
use think\facade\View;
class Index extends AdminBase{
public function index(){
return view::fetch();
}
public function welcome()
{
return view::fetch();
}
}
?> |
<?php
/* Getting contacts post type array */
$tab = getPostArray('contact', get_queried_object()->term_id);
$contact = get_field('contact_details', $tab[0]);
foreach ((array) $contact as $key => $val) {
$name = $val['contact_name'];
$designation = $val['designation'];
$pic = $val['contact_picture']['sizes']... |
<?php
/* @WebProfiler/Icon/close.svg */
class __TwigTemplate_33ca47cd4f702aee74de231a299f29137024f11f6441f4561a2407678dda3677 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
)... |
<?php
namespace App\Http\Controllers;
use App\Contacts;
use App\Http\Requests;
use App\Http\Requests\CreateNumberRequest;
use Illuminate\HttpResponse;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\Input;
use Symfony\Component\HttpFoundation\Request;
cla... |
<?php
/**
* Created by PhpStorm.
* User: YANG
* Date: 2019/3/13
* Time: 18:08
*/
namespace app\api\exception;
use think\exception\Handle;
class ApiHandleException extends Handle {
/**
* http 状态码
* @var int
*/
public $httpCode = 500;
public $code = 0;
public $message = '';
p... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
use App\Models\TUsers;
use App\Models\TPosts;
use App\Models\TOtdels;
$factory->define(TUsers::class, function (Faker $faker) {
// поля в базе:
// $table->increments('id');
// $table->string('surname', 30);
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGuidesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('guides', functio... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<h2>{{ __('Inloggen') }}</h2>
<div class="card">
<div class="card-body">
<form meth... |
<?php
use yii\widgets\Menu;
use yii\helpers\Url;
?>
<style>
.dot {
height: 8px;
width: 8px;
background-color: #0ef731;
border-radius: 50%;
display: inline-block;
}
.u_b_t{
border-top: 1px solid #4f5962;
}
</style>
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Lo... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>@yield('title')</title>
<!--styles!-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" href="{{ asset('css/bulma.css') }}">
<!--Let browser know websi... |
<?php
namespace App\Http\Controllers\Admin;
use App\AcademicDatum;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\PersonalInformation;
use App\Role;
use App\Status;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Mail;
class UserController extends Contro... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/errors/country_code_error.proto
namespace Google\Ads\GoogleAds\V1\Errors;
if (false) {
/**
* This class is deprecated. Use Google\Ads\GoogleAds\V1\Errors\CountryCodeErrorEnum\CountryCodeError instead.
* @d... |
@extends('layout.index')
@section('title')
{{ trans('data.')}}
@append
@push('styles')
<link rel="stylesheet" href="{{ asset('custom/css/.css')}}">
@endpush
@push('scripts')
<script src="{{ asset('custom/js/.js')}}"></script>
@endpush
@section('content')
Book Portal page
@endsection |
<div class="row border-bottom">
<nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
<form role="search" class="n... |
@extends('admin_layout')
@section('admin_content')
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading mb-2" style="background-color:beige;text-align:center; padding: 10px; font-size: 20px;">
Cập nh... |
<?php
/**
* Created by PhpStorm.
* User: gogl92
* Date: 2019-02-24
* Time: 01:18
* TODO: Add PHPDOc comments to the modules beforeSave and afterSave.
*/
echo "<?php\n";
?>
namespace <?= $generator->nsComponent ?>;
use Yii;
use <?= ltrim($generator->modelClass, '\\') ?>;
/**
* <?= $componentClassName ?> implemen... |
<header class="main-header">
<!-- Logo -->
<a href="../../index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>A</b>LT</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Admin</b>LTE</span>
</a>
<!-... |
<?php
return [
/*
* The name of the disk on which the snapshots are stored.
*/
'disk' => 's3',
/*
* The connection to be used to create snapshots. Set this to null
* to use the default configured in `config/databases.php`
*/
'default_connection' => null,
/*
* The di... |
<!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">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ co... |
<?php
namespace App\Http\Controllers\App;
use App\Http\Controllers\Controller;
use Illuminate\Contracts\Support\Renderable;
/**
* Class AppController
* @package App\Http\Controllers\App
*/
class AppController extends Controller
{
/**
* Show the application dashboard.
*
* @return Renderable
... |
@extends('layouts.business.setting-layout')
@section('title','Announcements')
@section('header_heading', "Announcements")
@section("header_subheading", "Overview")
@section('content')
<style>
.alert-info {
color: #155724 !important;
background-color: #d4edda !important;
... |
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class GeneralSettingTest extends TestCase
{
use DatabaseMigrations;
/** @test */
public function admin_can_see_general_setting_page()
{
$this->adminSignIn();
$this->get(route('admin.g... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReportsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reports', funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.