text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Controllers\Web\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|------------------------... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model admin\models\UserSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="user-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
'options' => [
... |
<?php
include('include/header.php');
include('include/sidebar.php');
?>
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="admin_dashboard.php">Dashboard</a></l... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
<?php
namespace Botble\Ecommerce\Repositories\Interfaces;
use Botble\Support\Repositories\Interfaces\RepositoryInterface;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
interface OrderInterface extends RepositoryInterface
{
/**
* @param string $startDate
* @param... |
<?php $__env->startSection('content'); ?>
<!-- BEGIN CONTENT BODY -->
<div class="page-content">
<?php echo $__env->make('layouts.flash', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="portlet box green">
<div class="portlet-title">
<div ... |
<?php
/*
* This file is part of the DataMigrationBundle.
*
* (c) Grégoire Hébert <gregoire@les-tilleuls.coop>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Gheb\DataMigrationsBundle\Command;
... |
<?php declare(strict_types = 1);
namespace PHPStan\Analyser;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\BinaryOp\Equal;
use PhpParser\Node\Expr\BinaryOp\Identical;
use PhpParser\Node\Expr\BinaryOp\NotIdentical;
use PhpParser\Node\Expr\BooleanNot;
use PhpParser\Node\Expr\FuncCall;
use Php... |
<?php
/*
* The MIT License
*
* Copyright 2020 João Rebelo.
*
* 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, including without limitation the rights
* to use, cop... |
<?php
echo '<p>'.img($Evenement->ImgEntete).'<p>';
echo '<h1>'.$Evenement->TxtHTMLEntete.'</h1>';
echo '</br>';
echo '</br>';
echo '<h2>'.$Evenement->TxtHTMLCorps.'</h2>';
echo '</br>';
echo '</br>'; |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use App\Models\User;
use Illuminate\Support\Str;
use App\Models\AdminSettings;
use App\Models\Subscriptions;
use App\Models\Categories;
use App\Models\Withdrawals;
use App\Models\Notifications;
use App\Models\PaymentGateways;
use App\Models\C... |
<?php
use Faker\Generator as Faker;
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
'salary' => $faker->randomNumber($nbDigits = NULL, $strict = false),
'date_of_birth' => $faker->date($format = 'Y-m-d', $max = ... |
<?php
$version = '2.4.0'; // the $ projectnumber variable is automatically replaced by doxygen with the version number
$pagetitle = 'sf::Ftp Class Reference'; // the $ title variable is automatically replaced by doxygen with the page title
include('../header-fr.php');
?>
<!-- Generated by Doxygen 1.8.11 -->... |
<?php
namespace VGirol\JsonApi\Services;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloq... |
@include('admin.include.head')
<body class="overflow-hidden">
<div id="auth" class="overflow-hidden">
<div class="row h-100">
<div class="col-lg-5 col-12 " >
<div id="auth-left">
<div class="auth-logo">
</div>
<h1 cla... |
<?php
namespace App\Http\Controllers;
use App\Task;
use Illuminate\Http\Request;
use App\Http\Requests;
class TaskController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index(Request $request)
{
$tasks = $request->user()->tas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRoleUserPivotTable extends Migration
{
public function up()
{
Schema::create('role_user', function (Blueprint $table) {
$table->unsignedInteger('... |
<?php
declare(strict_types=1);
namespace CasbinAdapter\DBAL;
use Casbin\Persist\Adapter as AdapterContract;
use Casbin\Persist\AdapterHelper;
use Casbin\Model\Model;
use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\DriverManager;
use Doctrine\DBAL\Connection;
/**
* DBAL Adapter.
*
* @author techlee@qq.com
*/
... |
<html>
<head><head>
<body>
<?php
$n = 10;
if ($n % 3 == 0) {
echo "$n es divisible entre 3";
}
elseif ($n % 2 == 0){
echo "$n es divisible entre 2";
}
else
echo "no es divisible.";
?>
</body>
</html> |
<?php
declare(strict_types=1);
namespace StubTests\Model;
use phpDocumentor\Reflection\DocBlock\Tags\PropertyRead;
use phpDocumentor\Reflection\DocBlockFactory;
use PhpParser\Node\Stmt\Class_;
use ReflectionClass;
use stdClass;
class PHPClass extends BasePHPClass
{
public false|string|null $parentClass = null;
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ProductSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
DB::table('products')->insert([
[
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class FormExampleRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Ge... |
<?php
namespace App\Controller\Admin;
use App\Entity\Event;
use App\Form\EventType;
use App\Repository\EventRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Knp\Component\Pager\PaginatorInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Componen... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<html>
<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>Mom House Barber | index</title>
<link rel="stylesheet" t... |
<?php
namespace App\Services\MapBuilder\MapPart;
use App\Services\MapBuilder\MapPart;
use App\Services\Repositories\Services\ServicesRepository;
class Services implements MapPart
{
public function __construct(
private ServicesRepository $repository
){}
public function buildStructure(): array
... |
<div class="kingster-page-title-wrap kingster-style-medium kingster-center-align">
<div class="kingster-header-transparent-substitute"></div>
<div class="kingster-page-title-overlay"></div>
<div class="kingster-page-title-container kingster-container">
<div class="kingster-page-title-content kingst... |
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
$this->title = Yii::t('app', 'About');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-about">
<h1><?= Html::encode($this->title) ?></h1>
<code>We are best company providing this service:</code>
</div> |
<?php
/**
* CubeCart v6
* ========================================
* CubeCart is a registered trade mark of CubeCart Limited
* Copyright CubeCart Limited 2017. All rights reserved.
* UK Private Limited Company No. 5323904
* ========================================
* Web: http://www.cubecart.com
* Email: sale... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\UserType */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'User Types', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-type-view">
<h... |
<?php
namespace App\ScraperModels;
use DateTime;
use Illuminate\Database\Eloquent\Model;
/**
* Class Pigiame
* @package App\ScraperModels
* @property int $id
* @property string $location
* @property string $region
* @property string $currency
* @property float $price
* @property string $condition
* @propert... |
<div class="">
<div class="clearfix"></div>
<?php if(isset($_SESSION['message'])) { ?>
<div class="alert alert-success alert-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong><?php echo $_SESSI... |
@foreach($items as $menu_item)
<div class="top_bar_contact_item">
<div class="top_bar_icon">
@if ($menu_item->title === 'Facebook')
<a href="{{ $menu_item->link() }}" target="_blank">
<i class="fab fa-facebook fa-lg"></i>
</a>
@els... |
<?php
namespace App\Models;
class Demo extends Base
{
public function validInput($data, &$errors)
{
$config = [
'name' => array(
array('isNotNull', 'name_empty'),
),
'email' => array(
array('isNotNull', 'email_empty'),
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Effet extends Model
{
protected $table = "effets";
public $timestamps = false;
} |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/privacy/dlp/v2/dlp.proto
namespace Google\Cloud\Dlp\V2\StatisticalTable;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A quasi-identifier column has a cus... |
<?php
namespace App\Observers;
use App\BlogPost;
class BlogPostObserver
{
public function updating(BlogPost $blogPost)
{
}
public function deleting(BlogPost $blogPost)
{
//dd("deleting...");
$blogPost->comments()->delete();
}
public function restoring(BlogPost $blogPost... |
<?php
namespace App\Home\Models;
use Models\TagsRelation as ModelsTagsRelation;
class TagsRelation extends ModelsTagsRelation {
public function getCountByTagsId(int $tagsId, $languageId = null) {
$where = 'c.tags_id=' . $tagsId;
if($languageId !== false) {
$languageId = ($language... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Bank;
use GuzzleHttp\Client;
use Symfony\Component\DomCrawler\Crawler;
/**
* App\BankOffice
*
* @property int $id
* @property int $bank_id
* @property string $name
* @property string $name_full
* @property string $address
* @property string... |
<?php
class PoslanickiKlub {
public static function hello() {
echo "Mi smo stranka";
}
public static function sviKlubovi ($param){
$conn = Flight::db();
$data = $conn->prepare("SELECT * FROM `PoslanickiKlub`");
$data->execute();
$result = $data->fetchAll(PDO::FETCH_ASSOC);... |
<?php
/*
* PSX is an open source PHP framework to develop RESTful APIs.
* For the current version and information visit <https://phpsx.org>
*
* Copyright 2010-2022 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
if (env('APP_ENV') === 'local') {
$this->call(UserSeeder::class);
$this->call(CategorySeeder::... |
@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">{{ __('Login') }}</div>
<div class="card-body">
<form method="POST... |
<div class="container">
<div class="row">
<div class="row-center text-center">
<h3>Here is your receipt!</h3>
</div>
<table class="table">
<th>Product Name</th>
<th>Quantity</th>
<th>Total</th>
<?php
foreach($_SESSION['product'] as $product)
{
?>
<tr>
<td>
<?= $product['name'] ?>
... |
@extends('frontend.layouts.app')
@section('content')
<!-- Start Login Register Content -->
<div class="htc__login__register bg__white ptb--130" style="background: rgba(0, 0, 0, 0) url({{ asset('frontend/images/bg/2.jpg') }}) no-repeat scroll center center / cover ;">
<div class="container">
<di... |
<div id="myModal2" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-lab... |
<!DOCTYPE html>
<html>
<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>Flood Indicator</title>
<!-- Bootstrap 4 CSS -->
<link rel="stylesheet" href="<?php echo base_url(); ?>asset... |
@extends('layout')
@section('container')
<!-- -------- --------
Page Banner
-------- -------- -->
<section class="page-banner" style="background: #121619 url({{ asset('admin_assets/images/menu-banner-1.png')}}) no-repeat center / cover;">
<div class="container">
<div class="row">
<div clas... |
<select class="mt-2 py-2 px-2 rounded-md shadow border-gray-300 w-full lg:w-4/12" name="{{ $name }}" @if($name==="term") required="required" @endif>
<option value="">選択してください</option>
@if($name==="term")
@foreach (config('postTerms.parentTerms') as $key => $value)
<option value="{{ $key }}"... |
<?php
/**
* ALIPAY API: alipay.social.antsports.currentpath.query request
*
* @author auto create
* @since 1.0, 2021-04-01 10:39:11
*/
namespace Alipay\Request;
class AlipaySocialAntsportsCurrentpathQueryRequest
{
/**
* 查询用户当前路线信息接口
**/
private $bizContent;
private $apiParas = array();
private $terminalT... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class AircraftTemplateD_model extends MY_Model {
private $table = 'm_cabin_ac_template_detail';
private $column_order = array(null,'noItem','coordinate',null);
private $column_search = array('id','noItem',null);
private $order ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
use App\Page;
class SiteController extends Controller{
public function __construct(){
}
} |
<div>
<main id="main" class="main-site">
<div class="container">
<div class="wrap-breadcrumb">
<ul>
<li class="item-link"><a href="/" class="link">home</a></li>
<li class="item-link"><span>Thank You</span></li>
</ul>
... |
<?php
namespace Illuminate\Routing;
use ReflectionMethod;
use ReflectionParameter;
use Illuminate\Support\Arr;
use ReflectionFunctionAbstract;
trait RouteDependencyResolverTrait
{
/**
* Call a class method with the resolved dependencies.
*
* @param object $instance
* @param string $method... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class RolModuloSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$modulos = DB::table('modulos')->get();
foreach ($modu... |
<?php $this->title = 'Task'; ?>
<?php Yii::$app->language = Yii::$app->session->get('language'); ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<title>Напоминание</title>
<style>
.task{
padding-top: 10px;
padding-bottom: 10px;
... |
<?php
namespace Oro\Bundle\OrganizationBundle\Form\Extension;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormError;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\C... |
<?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 =... |
<?php
namespace Paracestamol\Test;
use Paracestamol\Settings\SettingsRun;
class Delayer
{
protected SettingsRun $settings;
protected float $nextAllowedTime = -1;
public function __construct(SettingsRun $settings)
{
$this->settings = $settings;
}
public function allowsTestSt... |
<?php
namespace WebTheory\TaxRoles;
class Model
{
/**
* @var string
*/
protected $taxonomy;
/**
*
*/
protected $roles;
/**
*
*/
protected $rolesData;
/**
* role that signifies a term as being of the lowest possible ranking
*/
protected $barone... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\OfflineShipping\Model\ResourceModel\Carrier\Tablerate;
/**
* Query builder for table rate
*/
class RateQuery
{
/**
* @var \Magento\Quote\Model\Quote\Address\RateRequest
*/
priv... |
<?php
/**
* rdfa-lite-microdata
*
* @category Jkphl
* @package Jkphl\RdfaLiteMicrodata
* @subpackage Jkphl\RdfaLiteMicrodata\Application
* @author Joschi Kuphal <joschi@tollwerk.de> / @jkphl
* @copyright Copyright © 2017 Joschi Kuphal <joschi@tollwerk.de> / @jkphl
* @license http://opensource.org/licenses/MIT ... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\TahunSedia */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="tahun-sedia-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'tahunSedia_tahun')->textInput() ?>
... |
<?php
/**
* PHP Password Library
*
* @package PHPass\Strength
* @category Cryptography
* @author Ryan Chouinard <rchouinard at gmail.com>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://github.com/rchouinard/phpass Project at GitHub
*/
namespace Phpass\Strength\Adapte... |
<?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Generator\Model;
/**
* Object to hold vendor specific information.
*
* @author Hans L... |
<?php
namespace Kassner\Tests\LogParser\Format;
use Kassner\LogParser\LogParser;
/**
* @format %T
* @description The request time
*/
class RequestTimeTest extends \PHPUnit_Framework_TestCase
{
protected $parser = null;
protected function setUp()
{
$this->parser = new LogParser();
$thi... |
<?php
namespace Zofe\Rapyd\DataForm\Field;
use Collective\Html\FormFacade as Form;
use Illuminate\Support\Facades\Input;
use Intervention\Image\ImageManagerStatic as ImageManager;
class Image extends File
{
public $type = "image";
public $rule = ["mimes:jpeg,png"];
protected $image;
protected $image... |
--TEST--
https://github.com/sebastianbergmann/phpunit/issues/1437
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = 'Issue1437Test';
$_SERVER['argv'][3] = __DIR__ . '/1437/Issue1437Test.php';
require __DIR__ . '/../../../bootstrap.php';
PHPUnit\TextUI\Command::ma... |
<?php
/**
* This file is part of the PHP BitTorrent Tracker package
*
* (c) Christer Edvartsen <cogo@starzinger.net>
*
* For the full copyright and license information, please view the LICENSE file that was
* distributed with this source code.
*/
namespace PHP\BitTorrent\Tracker;
/**
* Version class
*
* @pa... |
<?php
namespace frontend\forms;
use Yii;
use yii\base\Model;
use common\entities\Feedback;
class FeedbackForm extends Model
{
public $name;
public $email;
public $message;
public $verifyCode;
public $data_collection_checkbox;
public function rules()
{
return array_filter([
... |
<?php
/**
* Definition for a binary tree node.
* class TreeNode {
* public $val = null;
* public $left = null;
* public $right = null;
* function __construct($value) { $this->val = $value; }
* }
*/
class Solution {
/**
* @param Integer[] $preorder
* @param Integer[] $inorder
... |
<?php
namespace directapi\services\adgroups\enum;
use directapi\components\Enum;
class CarrierEnum extends Enum
{
public const WI_FI_ONLY = 'WI_FI_ONLY';
public const WI_FI_AND_CELLULAR = 'WI_FI_AND_CELLULAR';
} |
@extends('layouts/main')
@section('content')
<section class="resume-section p-3 p-lg-5 d-flex align-items-center" id="feedback">
<div class="w-100">
<h2 class="mb-5">FEEDBACK</h2>
<form action="{{route('SendFeedback') }}" method="POST">
@csrf
<input name="name" value="{{ old('name') }}" placehol... |
@extends('adminlte::layout.index')
@section('title')
Horarios
@endsection
@section('before_styles')
@endsection
@section('after_styles')
{!! Html::style('vendor/adminlte/plugins/datatables/dataTables.bootstrap.css') !!}
@endsection
@section('messages')
@endsection
@section('title-page')
HORARIOS MEDICOS
@endsecti... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUtilityLocationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('utilit... |
<?php
namespace Proxies\__CG__\AppBundle\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Domaine extends \AppBundle\Entity\Domaine implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\custom\Traits\AuditLogTrait;
use DB;
class Community extends Model
{
use SoftDeletes;
use AuditLogTrait;
/**
* The attributes that should be mutated to dates.
*
* @var array
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Report extends Model
{
protected $table = 'report';
public function User()
{
return $this->belongsTo('App\User','user_id','id');
}
} |
<?php
namespace Google\AdsApi\Dfp\v201702;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class RateType
{
const CPM = 'CPM';
const CPC = 'CPC';
const CPD = 'CPD';
const CPU = 'CPU';
const FLAT_FEE = 'FLAT_FEE';
const VCPM = 'VCPM';
const UNKNOWN = 'UNKNOWN';
} |
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use Geocoder;
use \App\Library\Foreca;
use \App\Library\Twilio;
use \App\Client;
class TextController extends Controller {
public function __construct() {
$this->middleware('auth');
}
public function example(Request $re... |
<?php
/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Bundle\MediaBundle\Command;
use Doctrine\ORM\EntityManagerInterface;
use Sulu\Bundle\MediaBundle\Entity\File;
use Sulu\Bundl... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class App_Controller extends CI_Controller
{
public $logged_in = FALSE;
public $error_message = '';
public $data = array();
public $role = 0;
p... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateHobisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hobis', function ... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... |
<?php
class ErrorController
{
public function actionError()
{
http_response_code(404);
die();
}
} |
<?php
namespace App\Tests\EventListener;
use App\EventListener\ExceptionListener;
use Exception;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Controll... |
<div id="page-wrapper">
<div class="graphs" style="float: left; width: 100%;">
<?php
if ($this->session->flashdata('err_message')) { ?>
<div class="alert alert-danger"> <?php echo $this->session->flashdata('err_message'); ?> </div>
<?php
}
if ($this->session->flashdata('ok_message')) {
?>
<div class="a... |
<?php
declare(strict_types=1);
namespace Laminas\Navigation\Service;
use Interop\Container\ContainerInterface;
use Laminas\Config\Config;
/**
* Constructed factory to set pages during construction.
*/
class ConstructedNavigationFactory extends AbstractNavigationFactory
{
/** @var string|Config|array */
pr... |
<?php
namespace App\Http\Controllers;
use App\Models\Document;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class DocumentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Request $req... |
<?php
namespace Drupal\entity_reference;
use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
/**
* Deprecated. Alternative implementation of the 'entity_reference' field type.
*
* @deprecated in Drupal 8.0.x and will be removed in Drupal 9.0.x. Use
* \Drupal\Core\Field\Plugin\Field\FieldType\Enti... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace App\Controllers;
use CodeIgniter\Controller;
use App\Models\UploadModel;
class Upload extends BaseController
{
protected $UploadModel;
public function __construct()
{
helper('form');
$this->UploadModel = new UploadModel();
}
public function index()
{
... |
<?php
namespace EasySwoole\DatabaseMigrate\Command;
use EasySwoole\Command\AbstractInterface\CommandHelpInterface;
use EasySwoole\Command\Color;
use EasySwoole\DatabaseMigrate\Command\AbstractInterface\CommandAbstract;
use EasySwoole\DatabaseMigrate\MigrateManager;
use EasySwoole\DatabaseMigrate\DDLSyntax\DDLColumnSy... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Dashboard</title>
<!-- Scripts
... |
@extends('layouts.base')
@section('body')
<div class="container vh-100">
<div class="row justify-content-center align-items-center vh-100">
<div class="col-md-5">
<div class="text-center mb-4">
<a href="/"><svg width="50" height="52" viewBox="0 0 50 52" xmlns... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\models\Profile */
//$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Profiles', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="profile-view first-co... |
<div class="mas">
<p>
<span>404</span>
Страница не найдена</p>
</div> |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EdisChat</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Note extends Model
{
protected $table = 'note';
protected $primaryKey = 'id';
protected $fillable = ['note_title','note_content'];
} |
<?php
namespace App\Http\Filters;
use BFilters\Filter;
use Illuminate\Http\Request;
class OrderFilter extends Filter
{
public function __construct(Request $request)
{
parent::__construct($request);
$this->relations = [];
//$this->sumField = null;
}
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Distrito;
use App\Unidade;
use Response;
use Auth;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\DB;
use Illuminate\Validation\Rule;
class UnidadeController extends Controller
{
/**
* Display a listing of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.