text stringlengths 2 1.03M |
|---|
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="for... |
<?php
namespace SethPhat\MailSwitcher\Listeners;
use Illuminate\Mail\Events\MessageSent;
use Illuminate\Support\Facades\Log;
use SethPhat\MailSwitcher\Models\MailCredential;
class IncreaseCurrentUsageAfterSentEmail
{
public function handle(MessageSent $event)
{
$mailCredential = MailCredential::$cu... |
<?php
namespace App\Http\Controllers;
use App\Models\Expense;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Throwable;
class ExpenseController extends Controller
{
public function create()
{
return view('expense.createExpense');
}
public function store(Request $re... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your application. Just tell Laravel the URIs it should respond
| to... |
<!-- JAVASCRIPT -->
<script src="{{ URL::asset('assets/libs/jquery/jquery.min.js')}}"></script>
<script src="{{ URL::asset('assets/libs/bootstrap/bootstrap.min.js')}}"></script>
<script src="{{ URL::asset('assets/libs/metismenu/metismenu.min.js')}}"></script>
<script src="{{ URL::asset('assets/libs/simplebar/simplebar.... |
<?php declare(strict_types = 1);
namespace MailPoet\Segments\DynamicSegments\Filters;
if (!defined('ABSPATH')) exit;
use MailPoet\Entities\DynamicSegmentFilterEntity;
use MailPoet\Entities\SubscriberEntity;
use MailPoetVendor\Doctrine\DBAL\Query\QueryBuilder;
use MailPoetVendor\Doctrine\ORM\EntityManager;
class Wo... |
<?php
declare(strict_types=1);
namespace User\Model\Table;
use Laminas\Crypt\Password\Bcrypt;
use Laminas\Db\Adapter\Adapter;
use Laminas\Db\ResultSet\HydratingResultSet;
use Laminas\Db\TableGateway\AbstractTableGateway;
use Laminas\Filter;
use Laminas\Hydrator\ClassMethodsHydrator;
use Laminas\I18n;
use Laminas\Inp... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Prescriptions;
class PrescriptionsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$prescriptions = Prescription... |
<?php
namespace PicturePark\API\Exception;
class DocumentHistoryGetVersionInternalServerErrorException extends InternalServerErrorException
{
private $pictureparkException;
public function __construct(\PicturePark\API\Model\PictureparkException $pictureparkException)
{
parent::__construct('Interna... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\helpers\Configuration */
?>
<div class="configuration-create">
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div> |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="vi" />
<meta content="noodp,noydir" name="robots">
<meta name='keywords' content='' />
<meta name='description' conte... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMerksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('merks', function ... |
<?php
/**
* Copyright © Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento2\Sniffs\Classes;
use PHP_CodeSniffer\Sniffs\Sniff;
use PHP_CodeSniffer\Files\File;
/**
* Class MutableObjectsSniff
* Detects if mutable objects are used in __constructor
*/
class MutableObjectsSnif... |
<?php
$id_post = $_GET['id_post'];
if(isset($_POST['enviar'])):
$id_post = $_GET['id_post'];
$titulo = $_POST['titulo'];
$post = $_POST['post'];
$p = new App\Models\Post;
$p->editar($titulo, $post, $id_post);
endif;
$p = new App\Models\Post;
$p->postUnico($id_post);
?>
<div clas... |
<?php
namespace App\Http\Controllers;
use App\participantes;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Flash;
use Illuminate\Support\Facades\Session;
class participantesController extends Controller
{
/**
* Display a list... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'CreatePasswordResetsTable' => $baseDir . '/database/migrations/2014_10_12_100000_create_password_resets_table.php',
'CreateUsersTable' => $baseDir . '/database/migrati... |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
$config['useragent'] = 'PHPMailer';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html';
$config['smtp_crypto'] = 'ssl';
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'mail.smtp2g... |
<?php
namespace App\Http\Middleware;
use Closure;
use Auth;
class Admin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(!Auth::user()-... |
<?php
namespace Roots\Sage\Setup;
use Roots\Sage\Assets;
/**
* Theme setup
*/
function setup() {
// Enable features from Soil when plugin is activated
// https://roots.io/plugins/soil/
add_theme_support('soil-clean-up');
add_theme_support('soil-nav-walker');
add_theme_support('soil-nice-search');
add_them... |
@if(Session::has('success'))
<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>Success:</strong> {{ Session::get('success') }}
</div>
@endif
@if(Session::has('inf... |
<?php
/**
*快速排序
*原理:找到当前数组中的任意一个元素(一般选择第一个元素),作为标准,新建两个空数组,遍历整个数组元素,
*如果遍历到的元素比当前的元素要小,那么就放到左边的数组,否则放到右面的数组,然后再对新数组进行同样的操作
*/
function quickSort($arr){
if(!isset($arr[1])) //这里是递归出口(直到数组无法拆分时)
return $arr;
$left = $right = array(); //定义两个空数组
$tmp = $arr[0]; //获取一个用于比较的数,这里用数... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>PRESSING-MANAGMENT</title>
<!-- Favicon-->
<link rel="icon" href="../../favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
... |
<?php
declare(strict_types=1);
namespace Metadata\Tests\Driver;
use Metadata\ClassMetadata;
use Metadata\Driver\AbstractFileDriver;
use Metadata\Driver\FileLocator;
use Metadata\Driver\FileLocatorInterface;
use PHPUnit\Framework\TestCase;
/**
* @author Jordan Stout <j@jrdn.org>
*/
class AbstractFileDriverTest ext... |
<?php
namespace app\controllers;
use Yii;
use app\models\Match;
use app\models\MatchSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* MatchController implements the CRUD actions for Match model.
*/
class MatchController extends Controller
{
/**
* {@inheri... |
<?php
/**
* Created by PhpStorm.
* User: Wang Yuan
* Date: 2017/8/16
* Time: 21:42
*/
namespace Home\Model;
use Think\Model\RelationModel;
use function count;
use function date;
use function strtotime;
class ApproveModel extends RelationModel
{
//自动完成
protected $_auto=array(
array('create_date'... |
<?php
/*
* Copyright 2016 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
namespace RCTBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class RCTBundle extends Bundle
{
} |
@extends('partials.app')
@section('title','All Members')
@section('content')
<div id="content-wrapper">
<div class="container-fluid">
<!-- Breadcrumbs-->
{{-- <ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
<li class="breadcrumb... |
<?php
namespace app\models;
use Yii;
class AlertData{
private static $alerts = [
'1.1' => [
'content' => 'User already exists!',
'class' => 'has-background-danger',
],
'1.2' => [
'content' => 'Passwords does not match!',
'class' => 'has-back... |
@include('front.layouts.header')
<!-- main-area -->
<main>
<!-- breadcrumb-area -->
<section class="breadcrumb-area breadcrumb-bg">
<div class="container">
<div class="row">
<div class="col-12">
<div class="breadcru... |
<?php
namespace app\admin\controller\model;
use app\common\controller\Backend;
/**
* 内容模型表
*
* @icon fa fa-circle-o
*/
class Modelx extends Backend
{
/**
* Model模型对象
*/
protected $model = null;
protected $beforeActionList = [
];
public function _initialize()
{
parent::_... |
<?php
// +----------------------------------------------------------------------
// | Description: 基础类,无需验证权限。
// +----------------------------------------------------------------------
// | Author: timelesszhuang <834916321@qq.com>
// +----------------------------------------------------------------------
namespace a... |
<?php include('include/header.php'); ?>
<div class="inner-title-banner">
<div class="sub-head">
<h2 class="text-uppercase text-white">Contact Us</h2>
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="contactus.php">Contact Us</a></li>
</ol>
... |
<?php
/**
* UomGroupModel
*
* PHP version 5
*
* @category Class
* @package BumbalClient
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Bumbal Client Api
*
* Bumbal API documentation
*
* OpenAPI spec version: 2.0
* Contact: gerb@bumbal.eu
* Generat... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('room_user', function (B... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\File;
use App\Models\User;
use App\Models\Biodata;
use App\Models\Jurus... |
<?php declare(strict_types=1);
namespace Shopware\Core\Content\Sitemap\Struct;
use Shopware\Core\Framework\Struct\Struct;
class SitemapGenerationResult extends Struct
{
/**
* @var bool
*/
private $finish;
/**
* @var string|null
*/
private $provider;
/**
* @var int|null
... |
<?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.
*/
namespace Tests\Localization;
class RmTest extends LocalizationTestCase
{
const LOC... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Role extends Model
{
use HasFactory;
use SoftDeletes;
public function permissions()
{
return $this->belongsToMany(Pe... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Edit Data Honorarium
<small>Preview</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboar... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
use HasFactory;
protected $fillable = ['name' ,'email', 'logo'];
public function employees()
{
return $this->hasMany(Employee::class);
... |
<?php
namespace Tests\LeadDatabase\Activities;
use MarketoClient\LeadDatabase\Activities\GetActivities;
use PHPUnit\Framework\TestCase;
use Tests\TestClient;
class GetActivitiesTest extends TestCase
{
public function test_activity_type_ids()
{
$endpoint = new GetActivities(new TestClient());
... |
<!-- sidebar nav -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li class="text-center">
<a href... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2016/12/13 0013
* Time: 10:54
*/
namespace book\components\access;
class AccessControl extends \yii\base\ActionFilter
{
#
} |
<?php
/**
* result
* @author auto create
*/
class TeacherRespone
{
/**
* 校区ID
**/
public $campus_id;
/**
* 年级ID
**/
public $grade_id;
/**
* 是否为班主任,1是,0不是
**/
public $is_adviser;
/**
* 学段ID
**/
public $period_id;
/**
* 名称
**/
public $teacher_name;
/**
* 老师ID
**/
... |
<?php
// ds_config.php
//
// DocuSign configuration settings
$DS_CONFIG = [
'quickstart' => '{QUICKSTART_VALUE}',
'ds_client_id' => '{INTEGRATION_KEY_AUTH_CODE}', // The app's DocuSign integration key
'ds_client_secret' => '{SECRET_KEY}', // The app's DocuSign integration key's secret
'signer_email' =... |
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ex... |
<?php
/*************************************************************************************
* oz.php
* --------
* Author: Wolfgang Meyer (Wolfgang.Meyer@gmx.net)
* Copyright: (c) 2010 Wolfgang Meyer
* Release Version: 1.0.8.11
* Date Started: 2010/01/03
*
* Oz language file for GeSHi.
*
* CHANGES
* -------
... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
class SessionController extends Controller
{
public function __construct(){
$this->middleware('guest', [
'only' => ['create']
]);
}
public function create(){
return view('sessions.create');
... |
<?php
/*
* DesignPatternPHP
*/
namespace DesignPatterns\AbstractFactory\Json;
use DesignPatterns\AbstractFactory\Picture as BasePicture;
/**
* Picture is a concrete image for JSON rendering
*/
class Picture extends BasePicture
{
// some crude rendering from JSON output
public function render()
{
... |
<?php if(Schema::hasTable('users')): ?>
<?php
$inner_header = '';
?>
<?php if(Schema::hasTable('pages') || Schema::hasTable('site_managements')): ?>
<?php
$settings = array();
$pages = App\Page::all();
$setting = \App\SiteManagement::getMetaValue('settings');
... |
<?php
final class Singleton
{
private static $instance;
/**
* gets the instance via lazy initialization (created on first usage)
*
* @return Singleton
*/
public static function getInstance(): Singleton
{
if (null === static::$instance) {
static::$instance = new static();
}
return s... |
<?php
namespace hedronium\Casus\errors;
class ByteOverflow extends \Exception
{
} |
<?php
$DB_host = "localhost";
$DB_user = "root";
$DB_pass = "";
$DB_name = "hostel";
try
{
$DB_con = new PDO("mysql:host={$DB_host};dbname={$DB_name}",$DB_user,$DB_pass);
$DB_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
$e->getMessage();
}
?> |
<div class="form-group row">
<label class="col-sm-2 col-form-label"for="room_id">Room</label>
<div class="col-sm-10">
<select name="room_id" class="form-control" id="room_id" required>
@foreach($rooms as $id => $display)
<option value="{{ $id }}" {{ (isset($booking->room_id) ... |
<?php
require_once(dirname(dirname(__DIR__)).'/classes/OAuth2Module.php');
/**
* First register an app here: https://sellercentral.amazon.com/gp/homepage.html
* Amazon OAuth(2) docs: https://login.amazon.com/documentation
*
* @package StartupAPI
* @subpackage Authentication\Amazon
*/
class AmazonAuthenticationMo... |
<!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>Laporan Activity</title>
<link rel="stylesheet" href="{{asset('css/app.css')}}">
</head>
<body class="bg-... |
<?php declare(strict_types=1);
return [
'Ъ' => '',
'Ь' => '',
'А' => 'A',
'Б' => 'B',
'Ц' => 'C',
'Ч' => 'Ch',
'Д' => 'D',
'Е' => 'E',
'Ё' => 'E',
'Э' => 'E',
'Ф' => 'F',
'Г' => 'G',
'Х' => 'H',
'И' => 'I',
'Й' => 'Y',
'Я' => 'Ya',
'Ю' => 'Yu',
'К... |
<?php
declare(strict_types=1);
namespace Rector\Tests\Laravel\Rector\Class_\PropertyDeferToDeferrableProviderToRector;
use Iterator;
use Rector\Laravel\Rector\Class_\PropertyDeferToDeferrableProviderToRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class ... |
<?php
if (!isset($safeToExecuteGameInfo))
{
echo '<!-- -->' . "<h3>GameInfo.php is a library file and can not be run directly!<br />Try running ParaTrackerStatic.php or ParaTrackerDynamic.php instead.</h3>";
exit();
}
// This file is used to parse BitFlags that are mixed in with the server CVars,
// gametype... |
<?php
namespace App\Http\Controllers\Admin\CreateCountries;
use App\Entities\Country;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\App;
class CountryController extends Controller
{
/**
* Display a listing of the resource.
*
... |
<?php
/**
* This file is part of prooph/proophessor-do.
* (c) 2014-2017 prooph software GmbH <contact@prooph.de>
* (c) 2015-2017 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
de... |
<?php
declare(strict_types=1);
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Ssch\TYPO3Rector\Rector\v9\v3\BackendUserAuthenticationSimplelogRector;
use Ssch\TYPO3Rector\Rector\v9\v3\BackendUtilityGetModuleUrlRector;
use Ssch\TYPO3Rector\Rector\v9\v3\C... |
<?php
declare(strict_types=1);
namespace App\Nova\Lenses\Video;
use App\Enums\Http\Api\Filter\ComparisonOperator;
use App\Models\Wiki\Video;
use App\Nova\Lenses\BaseLens;
use Illuminate\Database\Eloquent\Builder;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Number;
use Laravel... |
<?php
/**
* CsnUser - Coolcsn Zend Framework 2 User Module
*
* @link https://github.com/coolcsn/CsnUser for the canonical source repository
* @copyright Copyright (c) 2005-2013 LightSoft 2005 Ltd. Bulgaria
* @license https://github.com/coolcsn/CsnUser/blob/master/LICENSE BSDLicense
* @author Stoyan Cheresharov <... |
<?php
namespace A2lix\Form\Type;
use Symfony\Component\Form\AbstractType,
Symfony\Component\Form\FormBuilderInterface,
Symfony\Component\OptionsResolver\OptionsResolverInterface,
A2lix\TranslationFormBundle\Form\DataMapper\IndexByTranslationMapper;
/**
*
*
* @author David ALLIX
*/
class TranslationsF... |
<?php
/**
* Created by cuongpm/modularization.
* Author: Fight Light Diamond i.am.m.cuong@gmail.com
* MIT: 2e566161fd6039c38070de2ac4e4eadd8024a825
*/
namespace ETest\Tests\Feature\API;
use Cuongpm\Modularization\MultiInheritance\TestTrait;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Ill... |
<?php
namespace app\admin\model;
use think\Model;
class Footer extends Model
{
protected $autoWriteTimestamp = 'datetime';
protected $updateTime = 'update_time';
protected $createTime = 'create_time';
/**
* 获取商品列表
*/
function infoGoodsItem ($data) {
if (isset($data['id'])){
... |
<?php
namespace PhpBoot\DB\rules\basic;
use PhpBoot\DB\Context;
use PhpBoot\DB\impls\ExecImpl;
use PhpBoot\DB\impls\LimitImpl;
use PhpBoot\DB\impls\OrderByImpl;
use PhpBoot\DB\impls\ExecResult;
use PhpBoot\DB\impls\WhereImpl;
require_once dirname(__DIR__).'/impls.php';
class BasicRule
{
public function __construc... |
<table border="1">
<tr>
<th>фио студента</th>
<th>диагноз </th>
<th>номер</th>
<th>дата курации</th>
<th>дата введения данных</th>
</tr>
<td> {!! $inputform->id_student !!} </td>
<p>
<td> {!! $inputform->diagnoses !!} </td>
</p>
<p>
<td>{!! $inputform->num_card !!} </td>
</p>
<p>
<td> {!! $... |
<?php
/**
* Customize API: WP_Customize_Upload_Control class
*
* @package WordPress
* @subpackage Customize
* @since 4.4.0
*/
/**
* Customize Upload Control Class.
*
* @since 3.4.0
*
* @see WP_Customize_Media_Control
*/
class WP_Customize_Upload_Control extends WP_Customize_Media_Control {
public $type ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StorePosts extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
// true de thuc hien validation data
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateContactsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('contacts', fun... |
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{{$pageTitle}}</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol cla... |
<?php
/**
* Provides data for the dashboard addon
*
* @author Andreas Lenhardt
*/
class stats_weekday_dashboard extends rex_dashboard_item_chart_bar
{
/**
*
*
* @return array
* @throws InvalidArgumentException
* @throws rex_sql_exception
* @author Andreas Lenhardt
*/
pub... |
<?php
declare(strict_types=1);
namespace CzechitasApp\Http\Controllers\Auth;
use CzechitasApp\Http\Controllers\Controller;
use CzechitasApp\Rules\EmailRule;
use CzechitasApp\Services\BreadcrumbService;
use Illuminate\Foundation\Auth\ResetsPasswords;
use PasswordRule\PasswordRule;
class ResetPasswordController exten... |
<?php
namespace Repository\Eloquent;
use Mail,
Validator,
Crypt,
Request,
Input,
Schema,
File,
Exception;
use Uuid,
Session;
use Repository\BuyerInterface;
use App\Models\PurchaseOrder;
use App\Models\PurchaseOrderItem;
use App\Models\Company;
use App\Models\Attachment;
use App\Models\... |
<?php
/**
* ModelReturn
*
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this ... |
<head>
<!-- Basic -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iPharma.com – Your Online Healthcare Solution</title>
<meta name="keywords" content="ipharma" />
<meta name="description" content="Your Online Healthcare Solution">
<meta name="a... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\CourseCategory;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class CoursecatController extends Controller
{
/**
* Display a listing of the resource.
... |
<?php
namespace App\Http\Controllers\Front;
use App\Http\Controllers\Controller;
use App\Models\Admin;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class FrontController extends Controller
{
public function index(Request $request)
{
$result['home_categories'] = DB::table('categorie... |
<?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\HttpKernel;
use Symfony\Bridge\ProxyManager\LazyProxy... |
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark"><?= $header ?></h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-i... |
<div id="container_detail">
<brand-detail></brand-detail>
</div>
<template id="brand-detail-template">
<div class="content">
<h1> @{{ d . brand_name }} </h1>
<img :src="d.image" class="">
</div>
@{{ d . description }} // HERE I AM GETTING HTML TAGS WITH DATA.
</template>
<!DOCTYPE html>
... |
@extends('layout.admin')
@section('style')
{!!Html::style('css/images.css')!!}
@stop
@section('title')
Lista de locales
@stop
@section('content')
<!-- Contenido-->
<table class="table table-bordered table-striped">
<tr>
<th>Nombre</th>
<th>Direccion</t... |
--TEST--
Test mb_decode_numericentity() function : Convert HTML-Entities to UTF-8
--SKIPIF--
<?php
if (!extension_loaded('mbstring')) die('skip mbstring not enabled');
function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build");
?>
--FILE--
<?php
$str1 = '¡¢... |
<?php
declare(strict_types=1);
namespace FlexFqcnFinder\Filter\Specifications;
use FlexFqcnFinder\Filter\FqcnSpecification;
use FlexFqcnFinder\Filter\ReflectionSpecificationTrait;
use ReflectionClass;
class ImplementsInterface implements FqcnSpecification
{
use ReflectionSpecificationTrait;
/**
* @var ... |
@extends("layout/core")
@section("container")
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-4">
<main class="form-registration">
<form class="mb-3" method="POST" action="/register">
@csrf
<h4 cla... |
<?php
namespace Drupal\file\Plugin\rest\resource;
use Drupal\Component\Utility\Bytes;
use Drupal\Component\Utility\Crypt;
use Drupal\Core\Config\Config;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Lock\Loc... |
--TEST--
Phar: bzipped phar
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (!extension_loaded("bz2")) die("skip bz2 not available");
?>
--INI--
phar.readonly=0
phar.require_hash=0
--FILE--
<?php
$fname = __DIR__ . '/phar_bz2.phar';
$pname = 'phar://' . $fname;
$fname2 = __DIR__ . '/phar_bz2.2.phar';
$p... |
<?php
/**
* @group xmlrpc
*/
class TestXMLRPCServer_wp_getPage extends WP_XMLRPC_UnitTestCase {
var $post_data;
var $post_id;
var $post_date_ts;
function setUp() {
parent::setUp();
$this->post_date_ts = strtotime( '+1 day' );
$this->post_data = array(
'post_type' => 'page',
'post_title' => rand_str... |
<?php
foreach ($main['bobot'] as $k) {
$total = $k->bobot_1+$k->bobot_2+$k->bobot_3+$k->bobot_4+$k->bobot_5;
$bobotsatu = number_format(($k->bobot_1/$total*100)/100,2);
$bobotdua = number_format(($k->bobot_2/$total*100)/100,2);
$bobottiga = number_format(($k->bobot_3/$total*100)/100,2);
$bobotempat = number_forma... |
<?php
namespace Modules\DistributorArea\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
class DistributorAreaController extends Controller
{
/**
* Display a listing of the resource.
* @return Response
*/
public function index()
... |
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
table {
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
padding: 8px;
}
tr .datosv:nth-child(even){background-color: #f2f2f2}
th {
background-color: #A9D0F5;
color: white;
}
label {
f... |
<?php
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
class AggregatorFacades extends Facade {
protected static function getFacadeAccessor()
{
return 'Aggregator';
}
} |
<?php /*a:1:{s:63:"D:\phpstudy_pro\WWW\articleAdmin\thinkphp\tpl/dispatch_jump.tpl";i:1583561223;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content... |
<?php
/**
* AmChartsPHP
*
* @link http://github.com/neeckeloo/AmChartsPHP
* @copyright Copyright (c) 2012 Nicolas Eeckeloo
*/
namespace AmCharts\Chart;
use AmCharts\Chart\Setting\Border;
use AmCharts\Chart\Setting\Margin;
use AmCharts\Chart\Setting\Text;
use AmCharts\Chart\Exception;
class Legend
{
/**... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.