text
stringlengths
2
1.03M
<table class="table table-striped table-bordered table-hover gridTable"> <thead> <tr> <th>SN</th> <th>Title</th> <th>description</th> <th>Start</th> <th>End</th> <th>Semester</th> <th></th> <th>Action</th> </tr> </thead> <t...
<?php namespace App\Http\Requests; use App\Exceptions\ApiException; use App\Http\Requests\ApiRequest; class DismissUserRequest extends ApiRequest { public function authorize() { $user = $this->route('user'); if ($user->status === 'fired') { return false; } retur...
<?php /** * This file is part of the TelegramBot package. * * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace BotTelegram\bot\Entities; use BotTelegram\bot\Excep...
<?php /** * Created by JetBrains PhpStorm. * User: rafix * Date: 13/06/13 * Time: 16:01 * To change this template use File | Settings | File Templates. */ namespace Taskeet\MainBundle\EventListener; use ADesigns\CalendarBundle\Event\CalendarEvent; use ADesigns\CalendarBundle\Entity\EventEntity; use Doctrine\ORM...
<?php declare(strict_types=1); namespace Symplify\PHPStanRules\Tests\Rules\PrefixAbstractClassRule\Fixture; abstract class AbstractSomeAbstractClass { }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use App\Submenu; use App\Tag; use Illuminate\Support\Str; use Storage; class PostsController extends Controller { public function __construct(){ return $this->middleware('submenu')->only('create'); } /** * Displ...
<?php class X { function ref(&$ref) { $ref = 1; } function bar() { $this->ref($this->priv); } } class Y extends X { private $priv; } class Z extends Y { } <<__EntryPoint>> function main_801() { ; $z = new Z; $z->bar(); var_dump($z); $y = new Y; $y->bar(); var_dump($y); }
<?php namespace common\models; use common\components\ZhkhActiveRecord; use Yii; use yii\db\ActiveQuery; /** * This is the model class for table "receipt". * * @property integer $_id * @property string $oid идентификатор организации * @property string $uuid * @property string $contragentUuid * @property string...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class WarehousesForeignKey extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('warehouses', f...
<?php /** * @copyright 2015 Matt Kynaston * @license MIT * @author Matthew Weier O'Phinney <matthew@weierophinney.net> * @see https://github.com/phly/phly-mustache/blob/master/src/Resolver/AggregateResolver.php */ namespace Kynx\Template\Resolver; use Countable; use IteratorAggregate; use Kynx\Template\Resolver\...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateGuestInfosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('guest_infos'...
<?php return array ( 'root' => array ( 'pretty_version' => '1.0.0+no-version-set', 'version' => '1.0.0.0', 'aliases' => array ( ), 'reference' => NULL, 'name' => 'laravel/laravel', ), 'versions' => array ( 'asm89/stack-cors' => array ( 'pretty_version' => '1.3.0',...
<?php namespace app\api\controller\wxapp; use app\api\library\Service; use app\api\model\aurora\Third; use app\common\library\Auth; use app\common\library\Sms; use fast\Http; use think\Config; use think\Db; use think\Exception; use think\Validate; /** * 会员 */ class Customer extends Base { //如果$noNeedLogin为空表示...
<?php namespace TaskManager\Repositories; use Prettus\Repository\Contracts\RepositoryInterface; /** * Interface ProjectTaskRepository * @package namespace TaskManager\Repositories\Eloquent; */ interface InterfaceProjectTaskRepository extends RepositoryInterface { // }
@extends('layouts.app') @section('content') <div class="container"> <div class="card mb-4"> <div class="card-header"> {{$answers}} </div> <div class="card-body"> <div>解説</div><br> {{$commentary}} </div> <div class="card-footer"> </div> <div class="card-footer text-cente...
<?php /** * Edit a page */ $page_guid = (int) elgg_extract('guid', $vars); elgg_entity_gatekeeper($page_guid, 'object', 'page', true); $page = get_entity($page_guid); $container = $page->getContainerEntity(); if ($container) { elgg_push_collection_breadcrumbs('object', 'page', $container); } pages_prepare_paren...
<?php namespace Rdtvaacar\LaravelPos\Tests; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; use Illuminate\Support\Str; use Rdtvaacar\LaravelPos\Card; use Rdtvaacar\LaravelPos\LaravelPosFacade as LaravelPos; use Rdtvaacar\LaravelPos\Order; use Rdtvaacar\LaravelPos\PaymentBuilder; class PaymentBuil...
<?php Route::group(['middleware' => 'web', 'prefix' => 'livestream', 'namespace' => 'Modules\Livestream\Http\Controllers'], function() { Route::get('/', 'LivestreamController@index'); Route::get('/home', 'LivestreamController@home'); Route::get('/ccc',function(){ event(new Modules\Livestream\Events\...
<?php class SPBU extends CI_controller{ function __construct(){ parent::__construct(); $this->load->model(array('BBM_model','Operator_model','Penjualan_pershift_model','Mesin_pompa_model','Detail_jual_pershift_model','Struk_penjualan_model','Jurnal_model')); } function index(){ $this->load->view('Home_view'); ...
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
<?php class Like extends CI_Controller{ public function index() { $user_info = $this->session->all_userdata(); $user_id = $user_info['user_id']; $username = $user_info['username']; $config['num_tag_close'] = '</li>'; $query = $this->db->query("SELECT * FROM `likes` WHERE user_id=".$user_id.""); $like...
<?php /** * TUpdateMappedStatement class file. * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @link https://github.com/pradosoft/prado * @license https://github.com/pradosoft/prado/blob/master/LICENSE */ namespace Prado\Data\SqlMap\Statements; use Prado\Data\SqlMap\DataMapper\TSqlMapExecutionException; /** ...
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'cli' => array($vendorDir . '/wp-cli/php-cli-tools/lib'), 'Psr' => array($vendorDir . '/clickalicious/memcached.php/lib'), 'Guzzle\\Tests' => array($vendorDir . '...
<?php /* All Emoncms code is released under the GNU Affero General Public License. See COPYRIGHT.txt and LICENSE.txt. --------------------------------------------------------------------- Emoncms - open source energy visualisation Part of the OpenEnergyMonitor project: http://openenergymoni...
<?php /** * Malagasy PHPMailer language file: refer to English translation for definitive list * @package PHPMailer * @author Hackinet <piyushjha8164@gmail.com> */ $PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.'; $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray...
<?php namespace PeacHPope\MessageQueue\Model; /** * @author Micah Breedlove <micah.breedlove@iostudio.com> */ class MessageType { /** @var int $id */ protected $id; /** @var string $name */ protected $name; /** * @return int */ public function getId() { return $this-...
<html> <head> <title>Cetak Surat Keluar</title> <link href="<?php echo base_url()?>assets/front/vendor/bootstrap/css/bootstrap.css?v2" rel="stylesheet"> </head> <body onload="print()"> <page size="A4" layout="portrait"> <style> </style> <table width="700" border="0" cellspacing="1" cellpadding="1" class=no-style...
<?php /** * Created by PhpStorm. * User: mmoweb * Date: 14.03.2020 * Time: 23:31 */ namespace AdminPlugins; use PDO; class NewsSite { /* @var \Fenom $fenom */ public $fenom; /* @var \AjaxMsg $ajaxmsg */ public $ajaxmsg; public $config; /* @var \PDO $db */ public $db; public func...
<?php return [ '@class' => 'Grav\\Common\\File\\CompiledYamlFile', 'filename' => '/Users/rodleviton/Development/kota/user/plugins/error/error.yaml', 'modified' => 1538966774, 'data' => [ 'enabled' => true, 'routes' => [ 404 => '/error' ] ] ];
<div class="card shadow mb-12"> <div class="card-body"> <div class="table-responsive"> <!-- <h2 style="margin-top:0px"><?=$title?></h2> --> <table class="table responsive table-bordered" id="dataTable" width="100%" cellspacing="0"> <tr> <td width="150px">IP</td> <td><?= $data->ip; ?></td> </...
<?php namespace Concrete\Core\Authentication; use User; use Page; use Controller; abstract class AuthenticationTypeController extends Controller implements AuthenticationTypeControllerInterface { protected $authenticationType; abstract public function getAuthenticationTypeIconHTML(); abstract public func...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class CategoryController extends Controller { public function index() { return view('admin.categories.index'); } }
<?php /** * QueueReset action message. * * PHP Version 5 * * @category Pami * @package Message * @subpackage Action * @author Marcelo Gornstein <marcelog@gmail.com> * @license http://marcelog.github.com/PAMI/ Apache License 2.0 * @version SVN: $Id$ * @link http://marcelog.github.com/PAMI...
<?php $array = [['a', 'b'], 'c', 'd']; foreach($array as $key => list()) { } ?>
<?php declare(strict_types=1); namespace EoneoPay\Externals\ORM\Interfaces; /** * Interface to be implemented by any entity * that is acting as an user. */ interface UserInterface { /** * Get unique user id. * * @return int|string|null */ public function getUniqueId(); }
<?php namespace App\Repositories; use App\Models\Contratosprue; use InfyOm\Generator\Common\BaseRepository; class ContratosprueRepository extends BaseRepository { /** * @var array */ protected $fieldSearchable = [ 'entidadcontratante', 'estado' ]; /** * Configure the M...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> @if (count($errors)>0) <div class="alert alert-danger"> <ul> @foreach($errors->all() as $error) <li>{{$error}}</li> @endforeach </ul> </div> ...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use App\User; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use App\role_user; class RegisterController extends Contr...
<?php namespace App\Util; class NplTableau { public static function choisirParString(Array $array,string $chaine){ return NplString::numeriserEntre($chaine,count($array)); } }
<?php /** * @author ThemePunch <info@themepunch.com> * @link https://www.themepunch.com/ * @copyright 2019 ThemePunch */ if(!defined('ABSPATH')) exit(); $rsaf = new RevSliderFunctionsAdmin(); $rs_od = $rsaf->get_slider_overview(); $rsa = $rsaf->get_short_library($rs_od); $rsupd = new RevSlider...
<?php use yii\helpers\Url; use app\services\GsssHtml; use yii\helpers\Html; $this->title = 'Мои новости'; $this->registerJsFile('/js/pages/admin/news.js', ['depends' => [ 'app\assets\App\Asset', 'app\assets\ModalBoxNew\Asset' ]]); ?> <div class="container"> <div class="page-header"> <h1>Мои ново...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\models\Excel */ $get = Yii::$app->request->get('controller'); $get2 ='index.php?r='.$get; $this->title = 'Nhập dữ liệu cho bảng: '.$get; $this->params['breadcrumbs'][] = ['label' => $get, 'url' => $get2]; $this->params['breadcrumbs'][]...
@extends('layouts.master') @section('title', $post->title) @section('content') @component('components.breadcrumb') <a href="{{ route('admin.posts.index') }}" class="text-gray-500 hover:text-gray-700 focus:outline-none focus:underline transition duration-150 ease-in-out">Tous les articles</a> @endcompo...
<?php namespace ApiGen\Tests\Generator\TemplateGenerators; use ApiGen\Configuration\Configuration; use ApiGen\Generator\TemplateGenerators\DeprecatedGenerator; use ApiGen\Generator\TemplateGenerators\ZipGenerator; use ApiGen\Parser\Parser; use ApiGen\Templating\Template; use ApiGen\Tests\ContainerAwareTestCase; use L...
@foreach ($unidades as $unidades ) <h1>{{$unidades['nombre']}}</h1> <p>{{$unidades['descripcion']}}</p> <img src="{{$unidades['img']}}"> <hr> @endforeach
<div class="wrapper row-offcanvas row-offcanvas-left"> <?php include('sidebar.php')?> <!-- Right side column. Contains the navbar and content of the page --> <aside class="right-side"> <!-- Content Header (Page header) --> <section class="content-he...
<?php return [ "oferta1" => [ "id" => 1, "ambiente_trabajoid" => 1, "nombre_sucursal" => 'Sucursal Nº 1', "puesto" => "cajera", "area" => "", "fecha_inicial" => '2018-10-13 10:34:45', "fecha_final" => "", "demanda_laboral" => "falta una cajera", ...
<?php namespace Arcanesoft\Seo\Http\Controllers\Admin; use Arcanedev\SpamBlocker\Contracts\SpamBlocker; use Illuminate\Http\Request; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Collection; /** * Class SpammersController * * @package Arcanesoft\Seo\Http\Controllers\Admin * @author ...
<?php /* Generated By SBP */ class Bidule { public function truc() { echo "truc"; } public function machin() { echo "machin"; } public function chose() { echo "chose"; }}(new \Sbp\Chainer(new Bidule)) ->truc() ->machin() ->chose();
<?php namespace App\Http\Controllers; use App\Job; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; class JobsController extends Controller { public function index() { $jobs = Job::with('company')->get(); return response()->json($jobs); } publ...
@props(['banner', 'property' => 'name']) <span {{ $attributes->merge(['class' => 'px-2 py-1 rounded-full inline-block bg-' . $banner->color . '-light' . ' text-' . $banner->color . '-dark']) }}> {{$banner->$property}} </span>
<?php /* * This file is part of the Kimai 2 - Remote Console. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace KimaiConsole; use KimaiConsole\Exception\ConnectionProblemException; use KimaiConsole\Exception\InvalidConfigu...
@extends('layouts.app') @section('title', 'Contact Management System') @section('content') <div class="row"> <div class="col-md-12"> @if(Session::has('success')) <div class="alert alert-success"> {{ Session::get('success') }} @php Session::forget('success'); @endphp </div> @endif <div class="te...
@extends('layouts.index') <script> let models = Array(); let carmodels = {!! $carmodels !!} let select_model = "{{ __('Model')}}" // console.log(carmodels); // console.log(models); // console.log(select_any); </script> @section('content') <section class="slider"> <div class="fade"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Posts extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'title', 'description', ]; public function user(){ return $this->belongsTo(App\User::c...
<?php /** * Created by PhpStorm. * User: Vlad * Date: 17/04/2018 * Time: 22:37 */ namespace App\Http\Controllers\WebSocket; use App\Util\GamesManager; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class WatchGame { public function handleMessage(Request $request, GamesManager $gm) {...
<div class="col-xs-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">Yahoo Messanger</h3> <a class='pull-right btn btn-primary btn-sm' href='<?php echo base_url(); ?>administrator/tambah_ym'>Tambahkan Data</a> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Answers extends Model { public function question(){ return $this->hasOne(Questions::class, 'id', 'question_id'); } public function answer($id){ return $id; } }
<?php namespace BonderTest; /** * @author hbandura */ final class LauncherFactoryTest extends \PHPUnit_Framework_TestCase { protected function setUp() { global $_SERVER; global $_POST; global $_GET; global $_COOKIE; global $_FILES; global $_SESSION; $_SERVER = array(); $_...
<?php /** * Electronic Patient Dossier Embed Controller * * @package Gems * @subpackage Default * @author Matijs de Jong <mjong@magnafacta.nl> * @copyright Copyright (c) 2019, Erasmus MC and MagnaFacta B.V. * @license New BSD License */ use Gems\User\Embed\EmbeddedAuthAbstract; use Gems\User\Embed\...
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Behat\Page\Admin\Order; use Behat\Mink\Element\NodeElement...
@extends('layouts.appnew') @section('content') {{--<div class="container">--}} {{--<div class="row">--}} {{--<div class="col-md-10 col-md-offset-1">--}} {{--<div class="panel panel-default">--}} {{--<div class="panel-heading">Dashboard</div>--}} {{--<div class="...
<?php namespace Bermuda\Middleware; class CsrfException extends \RuntimeException { protected ?string $firstToken = null; protected ?string $secondToken = null; public static function new(?string $firstToken, ?string $secondToken): self { $instance = new static('Csrf Token missing or invali...
@extends('app.layouts.basico') @section('titulo', 'Detalhes do Produto') @section('conteudo') <div class="conteudo-pagina"> <div class="titulo-pagina-2"> <p>Editar Detalhes do Produto</p> </div> <div class="new"> <ul> <li><a href="#">Voltar</a></l...
<?php use yii\db\Schema; use yii\db\Migration; class m150407_153312_populate_chapter15_question_table extends Migration { public function up() { $this->insert('question', [ 'id' => '799', 'name' => "", 'correct_option' => '2', 'rule_reference' => '', ...
<section class="content"> <div class="row"> <div class="col-md-4"></div> <div class="col-md-4"> <div class="box"> <div class="box-header with-border"> <h3 class="box-title">Account</h3> </div> <div class="box-body"> ...
<?php namespace app\models; use Yii; /** * This is the model class for table "mensajes". * * @property int $id * @property int $id_sender * @property string|null $cuerpo * @property bool|null $leido * @property string $created_at * @property int $id_conversacion * * @property Conversaciones $conversacion ...
<?php /** * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the...
<?php namespace App\Admin\Extensions\Tools; use Encore\Admin\Admin; use Encore\Admin\Grid\Tools\AbstractTool; use Illuminate\Support\Facades\Request; class DatePicker extends AbstractTool { protected function script() { $url = Request::fullUrlWithQuery(['date' => '_date_']); return <<<EOT $...
<?php namespace App\Facades; use Illuminate\Support\Facades\Facade; class OrderRepositoryFacade extends Facade { protected static function getFacadeAccessor() { return 'OrderRepository'; } }
<?php namespace FastDog\Core\Models; /** * Class Cache * * @package FastDog\Core\Models * @version 0.2.0 * @author Андрей Мартынов <d.g.dev482@gmail.com> */ class Cache { protected $cache = null; /** * Cache constructor. */ public function __construct() { $this->cache = new \C...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
<?php require "config/config.php"; session_start(); if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) { header("location: login.php"); exit; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" conte...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTableStatus extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('status', functio...
<?php namespace App\Imports; use App\Models\Biserial; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class BiserialImport implements ToModel, WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public functio...
<!DOCTYPE html> <html lang="en"> <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>{{ config('app.name', 'Lara...
<?php namespace backend\controllers; use common\helpers\Functions; use common\models\Goods; use common\models\Brand; use common\models\Category; use Yii; use common\models\GoodsActivity; use yii\data\ActiveDataProvider; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * Goo...
<?php /** * This script routes to an individual post or 404 error. */ // If no post slug is defined then route to 404 if(!isset($request[1])) { set_prev_next(); require_once('../models/home.php'); $vars['posts'] = get_default_posts($pagination); $template_path .= 'loop'; $vars['breadcrumbs'] = array( ...
<?php namespace App\Http\Controllers; class ProfileController extends Controller { /* * Function to show the Profile page */ public function show() { return view('profile'); } }
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
<?php defined('BASEPATH') or exit ('no direct script access allowed'); class Web extends CI_Controller{ function __construct(){ parent::__construct(); $this->load->helper('url'); } public function index(){ $data['judul'] = "Halaman Depan"; $this->load->view('v_header',$data...
<?php namespace Database\Factories; use App\Models\Admin; use Illuminate\Database\Eloquent\Factories\Factory; class AdminFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Admin::class; /** * Define the model's de...
<?php use App\Http\Controllers\Admin\AdminController; use App\Http\Controllers\Admin\SectionsController; use App\Http\Controllers\Admin\CategoryController; use App\Http\Controllers\Admin\ProductsController; use App\Http\Controllers\Admin\BrandController; use App\Http\Controllers\Admin\BannersController; use App\Http\Co...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class BookItem extends Model { // }
<?php // +---------------------------------------------------------------------- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] // +---------------------------------------------------------------------- // | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved. // +--------------------------------------...
@extends('layouts.appUser') @section('content') <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Videos</title> <link href="https://cdn.jsdelivr.net/npm/...
<?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\HttpFoundation\RateLimiter; use Symfony\Component\Htt...
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class AddForeignKeysToCollectionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('collections', function(Blueprint $table) { $table->foreign('ca...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class SingleBed extends Model { use HasFactory; public function products() { return $this->belongsTo('App\Models\Product'); } public function carts() { ...
<?php namespace Tests\Integration\Schema; use Tests\DBTestCase; use Tests\Utils\Models\User; use Nuwave\Lighthouse\Support\Contracts\GlobalId; class NodeInterfaceTest extends DBTestCase { /** * @var \Nuwave\Lighthouse\Support\Contracts\GlobalId */ private $globalIdResolver; protected function ...
@extends('layouts.app') @section('content') <h1>Contact Page</h1> @if(count($people)) <ul> @foreach($people as $person) <li>{{$person}}</li> @endforeach </ul> @endif @endSection @section('footer') <script> // alert('footer sctipt for contact page') // just for testing </script> @stop
<?php declare(strict_types=1); namespace Refugis\ODM\Elastica\Metadata\Loader; use Kcs\ClassFinder\Finder\FinderInterface; use Kcs\ClassFinder\Finder\RecursiveFinder; use Kcs\Metadata\Loader\AnnotationProcessorLoader; use Refugis\ODM\Elastica\Annotation\Document; class AnnotationLoader extends AnnotationProcessorLo...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Article; class ArticlesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // return __MET...
<?php namespace InventoryTest\Item; use Inventory\Application\DTO\Item\ItemDTOAssembler; use Procure\Domain\Exception\InvalidArgumentException; use PHPUnit_Framework_TestCase; class ItemDTOAssemblerTest extends PHPUnit_Framework_TestCase { public function setUp() {} public function testOthe...
@props(['errors']) @if ($errors->any()) <div {{ $attributes }}> <div class="font-medium text-red-600"> {{ __('user.whoops!_something_went_wrong') }} </div> <ul class="mt-3 list-disc list-inside text-sm text-red-600"> @foreach ($errors->all() as $error) ...
<div class="form-group"> @isset($label) <label class="form-label">{{ $label }}</label> @endisset <div class="form-line"> <input type="{{ $type or 'text' }}" name="{{ $name or '' }}" class="{{ $class or 'datepicker' }} form-control" value="{{ $value or '' }}" placeholder="{{ $...
<?php namespace Drupal\views\Plugin\Derivative; use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface; use Drupal\Core\Entity\EntityStorageInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides block plugin definitions for all Views exposed filters. * * @see \Drupal\views\Plu...
<header class="header-style-1"> <!-- ============================================== TOP MENU ============================================== --> <div class="top-bar animate-dropdown"> <div class="container"> <div class="header-top-inner"> <div class="cnt-account"> ...
<?php namespace App\Http\Requests\Api\V1; use Dingo\Api\Http\FormRequest; class VerificationCodeRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return TRUE; } /** * Ge...