text
stringlengths
2
1.03M
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMenusTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('menus', function ...
<?php namespace Modules\Admin\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Routing\Controller; use App\User; class AdminUserController extends Controller { public function index(Request $request) { $users = User::whereRaw(1); $users = $users->orderBy(...
<?php use yii\bootstrap4\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\AutoresSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Autores'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="autores-index"> <h1><?= Html::encode($...
<?php namespace PhpParser; class ErrorTest extends \PHPUnit_Framework_TestCase { public function testConstruct() { $attributes = array( 'startLine' => 10, 'endLine' => 11, ); $error = new Error('Some error', $attributes); $this->assertSame('Some error', $er...
<x-frontend-layout> {!! $content !!} </x-frontend-layout>
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace Nylas\Messages; use Nylas\Utilities\Abs as AbsTrait; /** * ---------------------------------------------------------------------------------- * Nylas Abs * ---------------------------------------------------------------------------------- * * @method Smart Smart() * @method Search Search() ...
<?= $this->extend($config->viewLayout) ?> <?= $this->section('main') ?> <section class="section-header bg-soft"> <div class="container"> <div class="row"> <div class="col-sm-6 offset-sm-3"> <div class="card"> <h2 class="card-header"><?=lang('Auth.resetYourPassword')?...
@extends('layouts/app') @section('content') <nav class="flex items-center justify-between flex-wrap bg-gray-900 mx-5 mt-3"> <div class="flex items-center flex-shrink-0 text-teal-200 mr-6"> <a href="/home" id="nav-home" class="bg-gray-900 border-t-2 border-green-500 hover:bg-teal-900 hover:text...
<?php namespace Database\Seeders; use App\Rol; use App\User; use App\Permiso; use Illuminate\Database\Seeder; class rolTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $rol= Rol::create([ 'nombre' => 'Administra...
<?php namespace Database\Seeders; use App\Models\Admin; use App\Models\HoroContent; use App\Models\Price; use Database\Factories\AdminFactory; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function r...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHelloTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('hello', function ...
<!--Catalog Grid--> <section class="catalog-grid"> <div class="container"> <h2 class="dark-color">Catalog picks</h2> <div class="row"> <!--Tile--> <div class="col-lg-3 col-md-4 col-sm-6"> <div class="tile"> <div class="badges"> ...
<?php declare(strict_types=1); namespace One\Test\Unit; use function One\createUriFromString; use One\Http\FnStream; use One\Http\Request; use function One\stream_for; use One\Uri; class RequestTest extends \PHPUnit\Framework\TestCase { public function testRequestUriMayBeString(): void { $r = new Req...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateJabatanTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('jabatan', funct...
<?php namespace Tests; use Laravel\Dusk\TestCase as BaseTestCase; use Facebook\WebDriver\Chrome\ChromeOptions; use Facebook\WebDriver\Remote\RemoteWebDriver; use Facebook\WebDriver\Remote\DesiredCapabilities; use App\Models\User; abstract class DuskTestCase extends BaseTestCase { use CreatesApplication; pro...
<?php /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * Authors: * - Ash * - François B * - Marco Perrando * - Massimiliano Caniparol...
<?php declare(strict_types=1); namespace Symplify\CodingStandard\Tests\Rules\NoDefaultParameterValueRule; use Iterator; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; use Symplify\CodingStandard\Rules\NoDefaultParameterValueRule; final class NoDefaultParameterValueRuleTest extends RuleTestCase { /** ...
<?php namespace ABASTV2\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\DB; class CecCentroCostoModel extends Model { // use SoftDeletes; //para evitar la eliminación de registros y solo deshabilitarlos protected $table = 'cec_cent...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Aauth Config | ------------------------------------------------------------------- | A library Basic Authorization for CodeIgniter 2.x and 3.x | | ---------------------------...
24 75 1 6 6450 0 1 2607.00 0 2 549.000 0 3 2009.00 0 4 1368.00 0 5 2233.00 0 6 1131.00 0 7 581.000 0 8 515.000 0 9 582.000 0 10 722.000 0 11 263.000 0 12 2790.00 0 13 2301.00 0 14 2490.00 0 15 2439.00 0 16 2949.00 0 17 2589.00...
<div class="container"> <h4>Tambah Lowongan</h4> <br> <div class="card"> <div id="test1" class="col s12" style="padding: 24px"> <form class="row" id="form1" method="POST" action="<?= site_url('perusahaan-s/Lowongan/submitCreate') ?>"> <div class="input-field col s12 m6"> <select name="...
<?php declare (strict_types = 1); namespace app\admin\controller; use app\admin\facade\Menu; use app\Request; use liliuwei\think\Jump; use think\App; use think\facade\Session; use think\facade\View; use app\admin\utils\Utils; class Index { use Jump; /** * @return string * 显示主页 */ public ...
<?php function foo() { echo "4"; } function bar() { try { echo "2"; throw new Exception(); echo "x"; } catch (MyEx $ex) { echo "x"; } finally { echo "3"; foo(); echo "5"; } } try { echo "1"; bar(); echo "x"; } catch (Exception $ex) { echo "6"; } echo "\n";
<?php declare(strict_types = 1); namespace Com\Incoders\SampleMSTest\Infrastructure\Service; use PHPUnit\Framework\TestCase; use Com\Incoders\Cqrs\Infrastructure\Persistence\EventStore\PDOEventStore; use Google\Cloud\Storage\StorageClient; use Com\Incoders\SampleMS\Infrastructure\Service\CloudStorage\BucketService; ...
<div template-id="wpfc-modal-lazyload" style="top: 10.5px; left: 226px; position: absolute; padding: 6px; height: auto; width: 560px; z-index: 10001;display:none;"> <div style="height: 100%; width: 100%; background: none repeat scroll 0% 0% rgb(0, 0, 0); position: absolute; top: 0px; left: 0px; z-index: -1; opacity: 0...
@extends('layouts.admin') @section('content') <div class="app-content content"> <div class="content-overlay"></div> <div class="header-navbar-shadow"></div> <div class="content-wrapper"> <div class="content-header row"> <div class="content-header-left col-md-9 col...
<div class="main-menu menu-fixed menu-dark 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=" navigation-header"><span>Tienda</span> </li> ...
<?php declare(strict_types=1); /** * This file has been auto generated * Do not change it. */ namespace Commercetools\Api\Models\ShoppingList; use Commercetools\Api\Models\ShoppingList\ShoppingListUpdateActionCollection; use Commercetools\Exception\InvalidArgumentException; use stdClass; /** * @extends Shopping...
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
<!-- Sidebar --> <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span cla...
<?php namespace Payum2\Bridge\Spl; use Payum2\Exception\InvalidArgumentException; use Payum2\Exception\LogicException; class ArrayObject extends \ArrayObject { protected $input; /** * {@inheritdoc} */ public function __construct($input = array(), $flags = 0, $iterator_class = "ArrayIterator") ...
<div data-widget-group="group1"> <div class="panel panel-default" data-widget='{"draggable": "false"}'> <div class="panel-heading"> <h2>{{ $second_breadcrumb }}</h2> <div class="panel-ctrls" data-actions-container="" data-action-collapse='{"target": ...
<?php /****************************************************** * @package Pen Blog * @author http://www.pencms.com * @copyright Copyright (C) January 2015 www.pencms.com. All rights reserved. * @license GNU General Public License version 2 *******************************************************/ class ModelPenBlogC...
<?php use VK\API\Builders\MsgBuilder; function withIncorrectParam(int $s, $i) { } /** * @param int ...$ints */ function withVarargParam1(int $s, ...$ints) { } /** * @param int[] $ints */ function withVarargParam2(int $s, ...$ints) { } /** * @param int|false $i_f */ function withDuplicatingParam1(int $s, $i_f...
<?php namespace Zenstruck\Porpaginas; /** * @author Kevin Bond <kevinbond@gmail.com> */ trait ResultPaginator { public function paginate(int $page = 1, int $limit = Pager::DEFAULT_LIMIT): Pager { return new Pager($this, $page, $limit); } }
<?php use App\Models\Post; use App\Models\Category; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your appli...
<?php namespace App\Filters; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; class Slug extends AbstractExtension { public function getFilters(): array { return [ new TwigFilter('slug', [$this, 'slug']), ]; } public function slug($title, $id = 0): string { ...
<?php namespace Dvsa\Olcs\Api\Entity\Doc; use Doctrine\ORM\Mapping as ORM; use Dvsa\Olcs\Api\Entity\OrganisationProviderInterface; /** * Document Entity * * @ORM\Entity * @ORM\Table(name="document", * indexes={ * @ORM\Index(name="ix_document_traffic_area_id", columns={"traffic_area_id"}), * @...
<?php /** * Template for blurbs * Copyright (c) 2013 Marshall Farrier * http://www.opensource.org/licenses/mit-license.php * * @author Marshall Farrier * @edited 2013-12-05 * * To create a new blurb: * 1) Copy this file to a file of the form `_<yyyymmdd><00>.php` * in the current directory * 2) Edit the ...
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePro...
<section class="parallax-exhibit hidden xl:block text-white bg-gray-900 bg-bottom bg-cover md:bg-fixed h-64"></section>
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; use DB; use Session; class CekAkses { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed ...
<?php /* * This file is part of the guillaumeloulier project. * * (c) Guillaume Loulier <guillaume.loulier@hotmail.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AppBundle\Form\Type\Add; use Symfony\Component\Form...
<?php namespace Fastponto\LaravelFormBuilder\Filters\Collection; use Fastponto\LaravelFormBuilder\Filters\FilterInterface; /** * Class PregReplace * * @package Fastponto\LaravelFormBuilder\Filters\Collection * @author Djordje Stojiljkovic <djordjestojilljkovic@gmail.com> */ class PregReplace implements FilterI...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Schema; use Log; class User extends Authenticatable { u...
<?php namespace AppBundle\Entity\Translation; use Doctrine\ORM\Mapping as ORM; use Gedmo\Translatable\Entity\MappedSuperclass\AbstractPersonalTranslation; /** * @ORM\Entity * @ORM\Table(name="university_translations", * uniqueConstraints={@ORM\UniqueConstraint(name="UNIQ_UNIVERSITY_TRANSLATION", columns={ * ...
<?php namespace MQ\Responses; use MQ\Common\XMLParser; use MQ\Constants; use MQ\Exception\InvalidArgumentException; use MQ\Exception\MalformedXMLException; use MQ\Exception\MQException; use MQ\Exception\TopicNotExistException; use MQ\Model\Message; use MQ\Model\TopicMessage; class PublishMessageResponse extends BaseR...
@extends('admin.layouts.index') @section('content') <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> لوحه التحكم / {{$new->name}} </h1> ...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php // autoload_files.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php...
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\TabCompletion\Matcher; use ReflectionException; use ReflectionFunction; use function array...
<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ require_once(dirname(__FILE__).'/../../bootstrap/unit.php'); $t = ...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=royalteams.com', 'username' => 'root', 'password' => '126126', 'charset' => 'utf8', ];
<?php namespace Arrow\Contracts\Http\Response; interface ResponseHeadersInterface { public function sendStatus(); public function getStatus(); public function getProtocol(); public function getStatusText(); public function setStatus($status); public function setProtocol($protocol); public function setStatusText...
<?php error_reporting( E_ALL & ~E_NOTICE ); unset( $l ); session_start( ); session_register( $l ); if ( !isset( $l ) ) { header( "Location: /lobby/login.php" ); exit( ); } session_start( ); $HTTP_SESSION_VARS['vl'] = $dur; ?> <html> <head> <title>markopolo</title> <SCRIPT LANGUAGE="JavaScript" TYPE="t...
<?php /* * Interface for objects that are deleted by saving them */ namespace Moneybird; /** * DeleteBySaving */ interface DeleteBySaving { /** * Mark deleted */ public function setDeleted(); /** * Get delete status * @return bool */ public function isDeleted(); }
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> ...
<?php require_once 'Notificore/SmsApiClient.php'; require_once 'Notificore/HLRApiClient.php'; require_once 'Notificore/ViberApiClient.php'; class Notificore { private $apiKey; private $sender; private $tariff; private $viberSender; private $apiSource; public function __construct($apiKey, $sen...
<?php namespace App\Http\Controllers\API\Images; use App\Http\Controllers\Controller; use App\Http\Requests\ImageSaveRequest; use App\Http\Resources\ImageResource; use App\Models\TempFile; use Illuminate\Support\Facades\Storage; class SaveController extends Controller { /** * Handle the incoming request. ...
<?php namespace wptelegrampro; if (!defined('ABSPATH')) exit; global $CalderaFormsWPTP; class CalderaFormsWPTP extends WPTelegramPro { public static $instance = null; public function __construct() { parent::__construct(); add_action('wptelegrampro_plugins_settings_content', [$this, 'setti...
<?php declare(strict_types=1); namespace App\Solvers\Y2020\Day14; class MaskInstruction extends Instruction { public function __construct( private readonly string $mask ) { } public function execute(Emulator $emulator): void { $emulator->updateBitmask($this->mask); } }
<?php if(!isset($Translation)) die('No direct access allowed.'); ?> <?php $current_table = 'personal_details'; ?> <?php $cleaner = new CI_Input(); $cleaner->charset = datalist_db_encoding; ?> <script> <?php echo $current_table; ?>GetChildrenRecordsList = function(command){ var param = { ChildTable: "<?php echo ...
<?php /* * Copyright 2013 Benoit Duffez * * 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 ...
<?php namespace Database\Factories; use App\Models\Product; use Illuminate\Database\Eloquent\Factories\Factory; class ProductFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Product::class; /** * Define the mode...
<?php namespace App\Services; use App\Models\Cat; use App\Models\CatPhoto; use Illuminate\Support\Str; use Image; use Storage; class CatPhotoService { const PATH_ROOT = 'muce/slike/'; const INDICES = [0, 1, 2, 3]; public static function getPlaceholderImage(): string { return asset('img/plac...
<?php namespace Popov\ZfcMail\Service; use Popov\Agere\Service\AbstractEntityService; class MailOptionService extends AbstractEntityService { protected $_repositoryName = 'mailOption'; public function getItemsByFieldToString($items, $field) { $emails = ''; $method = 'get'.ucfirst($field); foreach ($items...
<?php /** * PHP LDAP CLASS FOR MANIPULATING ACTIVE DIRECTORY * Version 4.0.2 * * PHP Version 5 with SSL and LDAP support * * Written by Scott Barnett, Richard Hyland * email: scott@wiggumworld.com, adldap@richardhyland.com * http://adldap.sourceforge.net/ * * Copyright (c) 2006-2011 Scott Barnett, Ric...
<?php namespace App\Models; use Jenssegers\Mongodb\Eloquent\Model; class Writing extends Model { protected $collection = 'writings'; protected $primaryKey = '_id'; // protected $connection = 'laravelMongo'; /** * The attributes that are mass assignable. * * @var array */ pr...
<?php declare(strict_types=1); namespace Dflydev\FiniteStateMachine\State; class State { const INITIAL = 'initial'; const NORMAL = 'normal'; const FINAL = 'final'; private string $type; private string $name; private array $metadata; private function __construct(string $type, string $nam...
<title>detail agenda kegiatan</title> <!--begin::Entry--> <div class="d-flex flex-column-fluid"> <!--begin::Container--> <div class=" container"> <!--begin::Row--> <div class="row"> <div class="col-xl-9"> <div class="card card-custom gutter-b"> <di...
<?php namespace App\Managers; use App\Utils\Constant\Database; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use App\Entities\TopicMocks; class TopicMocksManager { public function fetchDatatableList($columns,$request) { $listQuery = DB::table('master_topic_mocks as u') ...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInitaed18b5e3ce417e776e83987f8ca1e53 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php $this->load->view('layout3/header2') ?> <?php $this->load->view('layout3/navbar') ?> <div class="col-sm-12 main"> <div class="row" style="margin-bottom: -50px;"> <div class="col-lg-9"> <h3>Soal Latihan</h3> </div> <div class="col-lg-3"> <h4 style="margin-top: 35px" align="right">Waktu latihan <...
<!DOCTYPE html> <html> <head> </head> <body> <title>Week 2</title> <style> body{ background-color: #C6DBEC; font-family: Helvetica; text-align: center; text-color: blue; } </style> <h1>Week 3 examples</h1> <p>This is my work.</p> <p> <?php #Speeding! #$_GET #$_POST $myspeed = 85; $mybd = "0630"; do {...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> ...
<!-- FOOTER --> <footer id="footer"> <!-- container --> <div class="container"> <!-- row --> <div class="row"> <div class="col-md-3"> <div class="footer-widget"> <div class="footer-logo"> <a href="index.html" class="logo"><img src="{{ asset('public/frontend/img/poor_corona-alt.png') }}"...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class MedicalRelationshipRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
<?php namespace App\Http\Controllers\Backend; use App\Models\Auth\User; use Illuminate\Database\Eloquent\Collection; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Jenssegers\Agent\Agent; use Messenger; class MessagesController extends Controller { public function index(Request $request){ ...
<?php if (!defined('THINK_PATH')) exit();?>内容管理 &gt; 产品中心
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative...
<?php namespace App\Providers; use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { Schema::defaultStringLength(1...
<?php namespace Laminas\ApiTools\Admin\Ui; class Module { /** * @return array<string, mixed> */ public function getConfig() { return include __DIR__ . '/config/module.config.php'; } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Bootstrap 4 Starter Pack</title> <!-- bootstrap cdn here --> <link rel="stylesheet" href="https://sta...
<?php /* config/form_display/fieldset_top.twig */ class __TwigTemplate_f88368a902741cb2d40c24b5ff89d4efc954ca7ebf2c6b22ec6efa4afc53eb4a extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = [ ...
@extends('backEnd.master') @section('mainContent') <section class="sms-breadcrumb mb-40 white-box"> <div class="container-fluid"> <div class="row justify-content-between"> <h1>@lang('lang.exam')</h1> <div class="bc-pages"> <a href="{{url('dashboard')}}">@lang('lang.da...
<?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 =...
@extends('layouts.admin') @section('title', 'Delete Administrator') @section('content') <div class="row"> <div class="spacer-50"></div> <h2 class="center-text">Delete Administrator</h2> <div class="spacer-20"></div> <div class="col-sm-3"></div> <div class="col-sm-6"> ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use App\KeepEvent; class KeepController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show t...
<?php namespace app\home\controller; use think\Db; class Ajax extends Home { //上传用户身份证 public function imgUser() { if (!userid()) { echo "nologin"; } $upload = new \Think\Upload(); $upload->maxSize = 3145728; $upload->exts = array('jpg', 'gif', 'png', 'jpeg'); $upload->rootPath = './Upload/idcard...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
<?php abstract class DiffusionFileContentQuery extends DiffusionQuery { private $needsBlame; private $fileContent; private $viewer; final public static function newFromDiffusionRequest( DiffusionRequest $request) { return parent::newQueryObject(__CLASS__, $request); } abstract public function ge...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(UserTableSeeder::class); $this->call(CategoryTableSeeder::class); $this->call(SubCategoryTableSee...
<?php namespace App\Http\Controllers; use App\Models\Category; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController {...
<?php namespace Tests; use Riskihajar\Terbilang\Facades\Terbilang; class TerbilangRomanTest extends TestCase { /** @test */ public function roman_method_can_convert_number_to_roman_numerals() { $this->assertEquals( 'MCCXXXIV', $this->terbilang->roman(1234) ); }...
<?php function themeConfig($form) { $logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点 LOGO 地址'), _t('在这里填入一个图片 URL 地址, 以在网站标题栏添加一个LOGO。请使用正方形图标(推荐512x512)')); $faviconUrl = new Typecho_Widget_Helper_Form_Element_Text('faviconUrl', NULL, NULL, _t('Favicon 地址'), _t('在这里填入一个图片 UR...
<?php $params = require(__DIR__ . '/params.php'); $config = [ 'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'language' => 'ru-RU', 'defaultRoute' => 'category/index', 'modules' => [ 'admin' => [ 'class' => 'app\modules\admin\Module', '...
<?php declare(strict_types = 1); namespace PHPStan\Levels; /** * @group exec */ class LevelsIntegrationTest extends \PHPStan\Testing\LevelsTestCase { public function dataTopics(): array { return [ ['returnTypes'], ['acceptTypes'], ['methodCalls'], ['propertyAccesses'], ['constantAccesses'], [...
@extends('layouts.master') @section('title')@parent- {{ $product->name }} @stop @section('metaLabels') @parent @include('partial.social_tags', [ 'title' => $product->name, 'image' => isset($product->features['images'][0]) ? URL::to('/').$product->features['images'][0] : '/img/no-image.jpg', ...