text stringlengths 2 1.03M |
|---|
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSurveysTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('surveys', funct... |
<?php
/**
* Squiz_Sniffs_ControlStructures_ForLoopDeclarationSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https:/... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
/**
* (c) 2013 Bossanova PHP Framework
* http://www.bossanova-framework.com
*
* @author: Paul Hodel <paul.hodel@gmail.com>
* @description: Model
*/
namespace models;
use bossanova\Model\Model;
class Routes extends Model
{
// Table configuration
public $config = array(
'tableName' => 'rout... |
<?php
declare(strict_types=1);
/*
* This file is part of the G.L.S.R. Apps package.
*
* (c) Dev-Int Création <info@developpement-interessant.com>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core\Infrastructure\Eve... |
<?php
class m150126_174408_add_user_email_table extends CDbMigration
{
public function up()
{
$this->getDbConnection()->createCommand("
CREATE TABLE `user_email` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`radar_enabled` tin... |
<?php
namespace Wikimedia\ParamValidator\TypeDef;
use Wikimedia\Message\DataMessageValue;
use Wikimedia\Message\MessageValue;
use Wikimedia\ParamValidator\ParamValidator;
use Wikimedia\ParamValidator\TypeDef;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
* Type definition for expiry timestamps.
*
* @since 1.3... |
<?php
declare(strict_types=1);
namespace WoohooLabs\Yin\Examples\Utils;
abstract class AbstractRepository
{
public static function getItemById($id, array $items): ?array
{
foreach ($items as $item) {
if (isset($item["id"]) && $item["id"] === $id) {
return $item;
... |
<?php
namespace SingleQuote\LaravelXmlParser;
use Illuminate\Support\Facades\Facade;
class XMLFacade extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return XML::class;
}
} |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
$config['system_default'] = 'S0000000';
$config['system_success'] = 'S0000200';
$config['system_error'] = 'S0000404';
$config['system_not_config'] = 'S0000405';
$config['system_time_out'] = 'S0000408';
$config['system_expired'] = 'S0000416';
$confi... |
<?php
namespace App\Http\Controllers;
use App\Ingredient;
use Illuminate\Http\Request;
class IngredientController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... |
<?php
date_default_timezone_set('Europe/Rome');
$settings = [
'displayErrorDetails' => true,
'dbConnection' => [
'driver' => 'mysql',
'host' => 'shake',
'username' => 'a',
'password' => 'b',
'database' => 't',
'charset' => 'utf8',
'collation' => 'utf8_un... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace App\Http\Controllers\Api;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Log;
use masterCardService;
class SessionController extends Controller
{
public function createSession()
{
$data = [
'correlationId' => masterCardService::get... |
<?php
namespace OAuthServer\Test\Fixture\Model\Table\AuthCodesTable;
use OAuthServer\Test\Fixture\AuthCodeScopesFixture as BaseFixture;
class AuthCodeScopesFixture extends BaseFixture
{
public function init(): void
{
parent::init();
$this->records = [];
$this->records[] = [
... |
<?php
/**
* Reshi libray - an assertion library.
*
* @author Armando Sudi <armando.sudi@mixteer.com>
* @copyright 2015 Mixteer
* @link http://os.mixteer.com/baseutils/reshi
* @license http://os.mixteer.com/baseutils/reshi/license
* @version 0.1.0
*
* MIT LICENSE
*/
use Reshi\Constraints... |
<style>
.nav-sub{
background: #334257!important;
}
</style>
<div id="sidebarMain" class="d-none">
<aside
class="js-navbar-vertical-aside navbar navbar-vertical-aside navbar-vertical navbar-vertical-fixed navbar-expand-xl navbar-bordered ">
<div class="navbar-vertical-container">
... |
<?php
namespace App\Http\Controllers\Api;
use App\Room;
use Validator;
use App\Booking;
use App\ClassSession;
use App\ClassSchedule;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class AuthController extends Controller
{
public function login(){
$v... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'C:/xampp/htdocs/part0n.xyz/rismose/user/plugins/breadcrumbs/languages.yaml',
'modified' => 1602113434,
'data' => [
'en' => [
'PLUGIN_BREADCRUMBS' => [
'SHOW_WITH_ONE_ITEM' => 'Show even ... |
@extends('layouts.admin')
@section('content')
<div class="app-title">
<div>
<h1><i class="fa fa-flag"></i> Airports</h1>
<p>A free and open source Bootstrap 4 admin template</p>
</div>
<ul class="app-breadcrumb breadcrumb">
<li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://cod... |
<?php
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use app\models\Notification;
use app\models\Users;
use app\models\AcceptedOrders;
use app\models\PostOrder;
use yii\captcha\Captcha;
use yii\helpers\Html;
use yii\grid\GridView;
?>
<div class="row">
<div class="col-md-3 col-sm-3 col-xs-5">
<div class="profil... |
<?php
/**
* Scaffold.
*
* Automatic forms and actions generation for rapid web application development.
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT Licen... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Product_model extends CI_Model
{
private $_table = "products";
public $product_id;
public $name;
public $price;
public $image = "default.jpg";
public $description;
public function rules()
{
return [
[
'field... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use \Illuminate\Database\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstr... |
@extends('layouts.dashboard')
@section('content')
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
... |
<?php
return [
'install_addon_success' => 'Priedai sėkmingai instaliuoti',
'migrate_addon_success' => 'Priedai sėkmingai numigruoti',
'uninstall_addon_success' => 'Priedai sėkmingai išinstaliuoti',
]; |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\Role */
$this->title = 'Update Role: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Roles', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Topic;
use Faker\Generator as Faker;
use Illuminate\Support\Str;
$factory->define(Topic::class, function (Faker $faker) {
return [
'title' => $faker->word,
'admin_id' => 1,
];
}); |
<?php
namespace App\Models;
use App\Http\Traits\ModelHelperTrait;
use App\Scopes\ActiveScope;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;
class Advertisement extends Model
{
use Has... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTeacherTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('teachers', function(Blueprint $table)
{
$table->increments('id');
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateKatosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('katos', function ... |
<?php
require_once __DIR__."/../vendor/autoload.php";
require_once __DIR__."/../src/Author.php";
require_once __DIR__."/../src/Book.php";
require_once __DIR__."/../src/Copy.php";
require_once __DIR__."/../src/Patron.php";
$app = new Silex\Application();
$app['debug']=true;
$server = ... |
<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Url;
$this->title = $news->title;
?>
<div class="detail-page">
<div class="container">
<div class="row mb-5">
<div class="col-lg-4 col-md-4">
<img src="<?= $news... |
<?php
namespace ClarkWinkelmann\ShadowBan;
use Flarum\Api\Serializer\DiscussionSerializer;
use Flarum\Discussion\Discussion;
class DiscussionAttributes
{
public function __invoke(DiscussionSerializer $serializer, Discussion $discussion): array
{
if ($serializer->getActor()->can('shadowHide', $discuss... |
@extends('master')
@section('title','Korpa')
<style>
/*
I wanted to go with a mobile first approach, but it actually lead to more verbose CSS in this case, so I've gone web first. Can't always force things...
Side note: I know that this style of nesting in SASS doesn't result in the most performance efficient CS... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'PHPUnit\\Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php',
'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php',
... |
<!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, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content... |
<?php
/**
* This is the model base class for the table "sport_event_previous".
* DO NOT MODIFY THIS FILE! It is automatically generated by giix.
* If any changes are necessary, you must set or override the required
* property or method in class "SportEventPrevious".
*
* Columns in table "sport_event_previous" av... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Framework\Exception\NoSuchEntityException;
require __DIR__ . '/../../../Magento/Catalog/_files/product_simple_duplicated_roll... |
@extends('layouts.app')
@section('content')
@component('partial.AddComponentTemplaste',['computadora'=>$computadora])
<div class="card">
<div class="card-header"><h5><i class="fas fa-list"></i> Impresoras
<button type="button" class="close" data-toggle="modal" data-target="#ADD"><span aria-hidden="t... |
{{--Pour chaque type de recette, on va charger 4 recettes --}}
<?php
$recipes = DB::table('recipes')->where('type', '=', $type->id)->where('validated',1)->latest()->limit(4)->get();
$i = 0;
?>
<a class="tag is-primary is-medium" href="{{route('type.show', lcfirst($type->name))}}">{{$type->name}}</a>
<section class=" ... |
<?php
use App\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
User::create([
'nombre' => 'Administrador',... |
<?php
/*Date: Jan,10,2019
*Author:Rabab Shalan
*Description: The view is designed to display the services of clinc
*/
echo "$page_name of clinic";
function display_services($services){
foreach ($services as $service) :?>
<div class="row">
<div class='col-md-3 col-sm-12'>
<div>
<?php
$img_attribut... |
<?php
/**
* Created by PhpStorm.
* User: sudai
* Date: 17-7-31
* Time: 下午3:11
*/
namespace App\Models\Orm;
use App\Models\AbsBaseModel;
class UserZhimaWatch extends AbsBaseModel
{
/**
*
* 设置表名
*/
const TABLE_NAME = 'sd_user_zhima_watch';
const PRIMARY_KEY = 'id';
/**
* The da... |
<?php
/*
* This file is part of the JValidator library.
*
* (c) Łukasz Lalik <lukasz.lalik@brainly.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Brainly\JValidator\Constraints;
use Brainly\JValidator\Validator;
... |
<?php
namespace App\Http\Controllers\frontend;
use App\Http\Controllers\Controller;
use App\Models\News;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class FrontNewsController extends Controller
{
public function index()
{
$news_data = $this->fetch_news_data();
return view(... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$a... |
<?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... |
<?php
/**
* Contains all client objects for the CampaignExtensionSettingService
* service.
*
* PHP version 5
*
* Copyright 2016, Google Inc. 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.
* You may obt... |
@extends('layout.app')
@section('conteudo')
<h3>Consulta de Respostas</h3>
@if(count($respostas) > 0)
<div class="jumbotron">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Titulo</th>
<th scope... |
<?php
namespace Jmondi\Gut\DomainModel\Entity\Error;
use JsonSerializable;
class ErrorCollection implements JsonSerializable
{
/** @var array|ErrorDetail[] */
private $errors;
/**
* ErrorCollection constructor.
* @param ErrorDetail[] $errors
*/
public function __construct(array $errors... |
<?hh
class test {
function foo(arraylike $a = "s") {
}
}
<<__EntryPoint>> function main(): void {
echo "Done\n";
} |
@extends('layouts.secretary_app')
@section('content')
{{-- SUCCESS MESSAGE OF INSERTING SAMPLE --}}
@if(Session::has('flash_sample_added'))
<div class="alert alert-info offset-md-1 col-md-10">
<a class="close" data-dismiss="alert">×</a>
<strong>Notification:</strong> {!!Session::get('flash_sample_added')!!}
</... |
<h1>{{ $title }}</h1>
<form action="{{ $form_url }}" method="{{ $form_method }}"{!! $multipart !!}>
{!! $method_field !!}
{!! $csrf_field !!}
@foreach($entry->formFields() as $field)
{!! $field->form() !!}
@endforeach
<hr>
<a href="{{ $back_url }}" class="btn btn-default">@lang('crud::b... |
<?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\Debug;
use Symfony\Component\Debug\Exception\FlattenE... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v8/errors/operator_error.proto
namespace Google\Ads\GoogleAds\V8\Errors\OperatorErrorEnum;
use UnexpectedValueException;
/**
* Enum describing possible operator errors.
*
* Protobuf type <code>google.ads.googleads.v8.e... |
<?php
require("includes/config.php");
session_start();
if(isset($_POST["pid"])){
//echo "hello";exit;
$post_id = htmlspecialchars($_POST["pid"]);
$user_id = $_SESSION["id"];
$sql = "DELETE FROM likes WHERE post_id=:pid AND user_id=:uid";
$stmt = $pdo->prepare($sql);
$stmt->execute(["pid... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContactUsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contactus', f... |
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Models Controller
*
* @property \App\Model\Table\ModelsTable $Models
*
* @method \App\Model\Entity\Model[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = [])
*/
class ModelsController extends AppController
{
... |
<?php
namespace App\Tasks\Actions;
use App\Tasks\Support\AbstractClearExistingResourcesTask;
use R4nkt\PhpSdk\Resources\ApiResourceCollection;
class ClearExistingActions extends AbstractClearExistingResourcesTask
{
protected function getResources(): ApiResourceCollection
{
return $this->r4nkt->action... |
<?php
/**
* Manager Log English lexicon topic
*
* @language en
* @package modx
* @subpackage lexicon
*/
$_lang['action'] = 'Ação';
$_lang['date_end'] = 'Data de Fim';
$_lang['date_start'] = 'Data de Início';
$_lang['filter_clear'] = 'Limpar Filtro';
$_lang['manager_log'] = 'Relatório do Gerenciador';
$_lang['mgrl... |
<?php
/**
* @file
* Twig filter to polyfill the unique_id filter for Pattern Lab.
*/
/**
* Generate a unique ID in Pattern Lab.
*
* @param Twig_Environment $env
* Current Twig environment.
* @param string $config
* Current configuration state.
*/
function add_unique_id_filter(Twig_Environment &$env, $co... |
<?php
require_once('../server/bootstrap.php');
if (
empty($_SERVER['CONTENT_TYPE']) ||
$_SERVER['CONTENT_TYPE'] != 'application/csp-report'
) {
header('HTTP/1.1 400 Bad Request');
die();
}
$log = \Monolog\Registry::omegaup()->withName('csp');
$log->error(file_get_contents('php://input'));
die(); |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Course;
use App\JobRequest;
use App\Student;
use Faker\Generator as Faker;
$factory->define(JobRequest::class, function (Faker $faker) {
return [
'student_id' => \factory(Student::class)->create()->id,
'course_id' => \factor... |
<?php
class ConductaData {
public static $tablename = "conducta";
public function __construct(){
$this->date_at = "";
$this->id_estudiante = "";
$this->id_grado = "";
$this->tipo = "";
$this->date_at = "NOW()";
}
public function add(){
$sql = "insert into ".self::$tablename." (date_at,id_estudiante... |
<?php
// +----------------------------------------------------------------------
// | YunCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://www.yunalading.com All rights reserved.
// +----------------------------------------------------------------------
/... |
<?php
namespace GriffonTech\Candidate\Models;
use GriffonTech\Candidate\Contracts\Candidate as CandidateContract;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Candidate extends Authenticatable implements CandidateContract
{
protected $table = 'candidates';
protected $fillable = [
... |
<!-- BEGIN: Head-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="Stack admin is super ... |
<?php
require_once(__DIR__ . "/../vendor/autoload.php");
require_once(__DIR__ . "/settings.php");
$sp = new Italia\Spid2\Sp($settings);
$metadata = $sp->getSPMetadata();
header('Content-Type: text/xml');
echo $metadata; |
@extends('layouts.master')
@section('content')
<h1>Create New Questionoption</h1>
<hr/>
{!! Form::open(['url' => 'questionoptions', 'class' => 'form-horizontal']) !!}
<div class="form-group">
{!! Form::label('question_id', 'question_id: ', ['class' => 'col-sm-3 control-la... |
<?php
/**
* BaseBloc.php
*
* PHP version 7.2+
*
* @author Philippe Gaultier <pgaultier@redcat.io>
* @copyright 2010-2020 Redcat
* @license https://www.redcat.io/license license
* @version XXX
* @link https://www.redcat.io
* @package blackcube\core\models
*/
namespace blackcube\core\models;
use blackcube\co... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class MaterialRequest extends Model
{
use HasFactory;
protected $fillable = [
'requests_id',
'materials_id',
];
public $timestamps = false;
} |
@extends('adminlte::auth.auth-page', ['auth_type' => 'login'])
@section('adminlte_css_pre')
<link rel="stylesheet" href="{{ asset('vendor/icheck-bootstrap/icheck-bootstrap.min.css') }}">
@stop
@php( $login_url = View::getSection('login_url') ?? config('adminlte.login_url', 'login') )
@php( $register_url = View::g... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every ... |
@extends('admin.layouts.master')
@section('content')
<div id="main-content">
<div class="wrapper">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a class="text-black" href="/admin">Trang chủ</a></li>
<li class="breadcrumb-item a... |
<?php declare(strict_types=1);
namespace ApiClients\Middleware\Pool;
use ApiClients\Foundation\Middleware\Annotation\First;
use ApiClients\Foundation\Middleware\Annotation\Last;
use ApiClients\Foundation\Middleware\MiddlewareInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use... |
<?php
namespace kbox\base\libs;
use kbox\base\components\exception\Exception;
class UserCenterApi{
const API_USERLIST = "/auth/api/user-list-by-platform-where";//仅当前平台
const API_USERLIST_All = "/auth/api/user-list-by-where";//仅看用户
const API_USERLIST_PAGE = "/auth/api/user-list-page-by-platform-where";//当前... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Messenger/QuoteMessage.proto
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\Internal\GPBWrapperUtils;
/**
* Generated from protobuf message <code>Quo... |
@extends('layouts.admin')
@section('title','All Counter')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>All Counters<small>EASYBUS</small></h1>
<ol class="breadcrumb">
<li><a href="./"><i class="fa fa-dash... |
<?php
namespace App;
class Cart {
public $items=[];
public $totalQuantity=0;
public $totalPrice=0;
public function __construct($oldCart)
{
if($oldCart) {
$this->items = $oldCart->items;
$this->totalQuantity = $oldCart->totalQuantity;
$this->totalPrice = ... |
@extends('layouts.app')
@section('content')
<div class="container">
{{-- Lion: important part here: it is part how to send the data through the request --}}
<form action="/form" enctype="multipart/form-data" method="post">
@csrf
<div class="col-8 offset-2">
... |
@extends('layouts.adminLayout.admin_design')
@section('content')
<!--main-container-part-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> <a href="#" class="current">Orders</a> </div>
<h1>Oder #{{$orderDetails->id... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Facades\DB;
class Cotizacion extends Model
{
use HasFactory;
... |
<?php
//000000000000s:64:"SELECT * FROM `didi_lianxi` WHERE `name` = '好楠呐' LIMIT 1 ";
?> |
<?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteS... |
<?php
/**
* Classe che rappresenta il tipo dati FileSdI
* @author vuk <http://vuk.bg.it>
*/
namespace PHPCraft\FatturazioneElettronica\TipiDati;
class FileSdI extends FileSdIAccoglienza
{
/**
* int Identificativo assegnato al file da SdI
*/
protected $IdentificativoSdI;
/**
* Costruttore
... |
<?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 Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... |
<?php
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, ... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
$this->call('UserTableSeeder');
/*$this->call('VehiculeTableSeeder');
$this->call('TrajetT... |
<?
$MESS["SENDER_CAMPAIGN_LIST_BTN_ADD_MANUAL"] = "Add manually";
$MESS["SENDER_CAMPAIGN_LIST_BTN_EDIT_TITLE"] = "Edit";
$MESS["SENDER_CAMPAIGN_LIST_BTN_EDIT"] = "Edit";
$MESS["SENDER_TEMPLATE_LIST_BTN_VIEW"] = "View";
$MESS["SENDER_CAMPAIGN_LIST_BTN_REMOVE_TITLE"] = "Delete";
$MESS["SENDER_CAMPAIGN_LIST_BTN_REMOVE"] =... |
<?php
namespace Tests\Feature\Admin\Participant;
use App\Models\Course;
use Illuminate\Testing\TestResponse;
use Illuminate\Validation\ValidationException;
use Tests\TestCaseWithCourse;
class CreateParticipantTest extends TestCaseWithCourse {
private $payload;
public function setUp(): void {
parent... |
<?php
namespace hopital\MedecinIBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class PatientType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $opti... |
<?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
route()->get('/', 'WelcomeController@welcome'); |
<?php
namespace App\Http\Controllers;
use App\Http\Ussd\Actions\Middleware;
use Illuminate\Http\Request;
use Sparors\Ussd\Facades\Ussd;
use Spatie\ArrayToXml\ArrayToXml;
class UssdController extends Controller
{
// public function index(Request $request){
// $ussd = Ussd::machine()
// ->set([
... |
<?php
namespace App\Http\Repositories;
use App\Models\Book;
class BookRepository implements BookRepositoryInterface
{
private $model;
private $route_string = 'book';
public function __construct()
{
$this->model = new Book();
}
public function getById($id = null)
{
return... |
<?php
namespace App\SBlog\Core;
class BlogApp
{
public static $app;
public static function get_instance()
{
self::$app = Registry::instance();
self::getParams();
return self::$app;
}
public static function getParams()
{
$params = require CONF . '/params.php';
... |
@extends('layouts.app1')
@section('contenu')
<div class="hero-wrap hero-bread" style="background-image: url('/frontend/images/image_1.jpg');">
<div class="container">
<div class="row no-gutters slider-text align-items-center justify-content-center">
<div class="col-md-9 ftco-animate text-center">
<p class="... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.