text stringlengths 2 1.03M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/aja... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
namespace Magento\Quote\Test\Unit\Model;
use Magento\Quote\Model\Quote\Address;
use Magento\Store\Model\ScopeInterface;
use Magento\Quote\Api\Data\CartInterface;
use Magento... |
<?php
declare(strict_types=1);
namespace Rector\Core\Tests\DependencyInjection;
use Iterator;
use Rector\Core\Bootstrap\RectorConfigsResolver;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
use Symplify\PackageBuilder\Reflection\PrivatesAccessor;
use Symplify\Sm... |
@extends('templates.petugas')
@section('title', 'Dashboard Petugas')
@section('judul', 'Petugas Dashboard')
@section('content')
<!-- Row start -->
<div class="row gutters">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6 col-12">
<div class="info-stats2">
<div class="info-icon info">
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Utilities\Grafiques;
class ArticlesController extends Controller
{
public function index(){
return view('pages.articles');
}
public function post(Request $request){
// si l'utilisateur a poster alors j'appel le trait gra... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateKriteriaAlternatif extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('kri... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use sims\models\Userbc;
use sims\models\RoleForm;
/* @var $this yii\web\View */
/* @var $model sims\models\WorktimeSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="widget-box widget_tableDiv">
<div class="widget-header widget-header-small"><... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Post;
use App\User;
use Faker\Generator as Faker;
$factory->define(Post::class, function (Faker $faker) {
return [
'title' => $faker->title,
'content' => $faker->text,
'thumbnail' => $faker->image(),
... |
<?php
use Maatwebsite\Excel\Excel;
return [
'exports' => [
/*
|--------------------------------------------------------------------------
| Chunk size
|--------------------------------------------------------------------------
|
| When using FromQuery, the query i... |
@extends('layouts.home')
@section('title', 'profile')
@section('bodyClass', 'inner dashboard')
@section('search')
@include('parts.search')
@endsection
@section('content')
<!-- message modal -->
@include('supplier.messages.parts.send')
<div class="page-header">
<nav aria-label="breadcrumb" role="navigation">
... |
<?php
use App\Http\Controllers\Authentication;
use App\Http\Controllers\MusicController;
use App\Http\Controllers\NoteController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|----------------------------... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\PersonSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'People');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="person-index">
<h1><?= H... |
<?php
namespace Tuqan\Classes;
class Manejador_Detalles {
/**
* Esta funcion prepara para ver detalles del documento
* @param array $aDatos
* @return array
*/
function prepara_Detalles_Documento($aDatos) {
return (array('accion' => 'detalles:documento', 'documento' => $aDatos[0])... |
$array["menu"]=array(
array("label"=>"<i class='fa fa-home mov'></i> Inicio","href"=>"inicio","activado"=>1),array("label"=>"<i class='fa fa-address-book-o mov'></i> Inscripciones","href"=>"inscripciones","activado"=>0),array("label"=>"<i class='fa fa-book mov'></i> Nosotros","href"=>"#nosotros","activado"=>0),array("l... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use DB;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call([
SpaS... |
<?php
/**
* PHP Version 5
*
* @category Amazon
* @package MarketplaceWebService
* @copyright Copyright 2009 Amazon Technologies, Inc.
* @link http://aws.amazon.com
* @license http://aws.amazon.com/apache2.0 Apache License, Version 2.0
* @version 2009-01-01
*/
/*****************... |
<?php
$key = "Pinning";
$pageTitle = "AngularJS Angular Grid Pinning";
$pageDescription = "AngularJS Angular Grid Pinning";
$pageKeyboards = "AngularJS Angular Grid Pinning";
include '../documentation_header.php';
?>
<div>
<h2>Pinning</h2>
Enter the number of columns you wish to pin in the Grid Options pinne... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Intervention\Image\Facades\Image;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Auth;
use App\Repositories\FrontendRepository;
use App\User;
class ProfilesController extends Controller
{
public function __construct(Fro... |
<?php
namespace Admin\Repository\Academic;
use Base\Repository\BaseDbRepository;
use Admin\Repository\Contract\Academic\InstitutionRepositoryInterface;
class InstitutionRepository extends BaseDbRepository implements InstitutionRepositoryInterface
{
/* (non-PHPdoc)
* @see \Admin\Repository\Contract\Academic\Inst... |
<?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\Security\Http\Firewall;
use Psr\Log\LoggerInterface;
... |
<?php
namespace App\Http\Controllers\SpeciallyUpdate;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Tag;
class TagController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Agent Cla... |
--TEST--
Decimal128: [decq004] derivative canonical plain strings
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/basic.inc';
$canonicalBson = hex2bin('18000000136400EE0200000000000000000000000042B000');
$canonicalExtJson = '{"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>@yield('title')</title>
{{-- style --}}
@stack('prepend... |
<!DOCTYPE html>
<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">
<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" href="{{ mix('/css/admin.css') }}">
<style>
html, body, #app{
h... |
<?php
namespace Williamson\TPLinkSmartplug;
use DateTime;
use stdClass;
use InvalidArgumentException;
use Illuminate\Support\Collection;
/**
* Class TPLinkCommands
*
* @package Williamson\TPLinkSmartplug
* @link https://github.com/softScheck/tplink-smartplug/blob/master/tplink-smarthome-commands.txt
*/
clas... |
<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
//... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddTitleColumnInRolesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('roles', ... |
<!DOCTYPE html>
<html>
<head>
<title>APIT REST - PHP</title>
<script src="https://code.jquery.com/jquery-3.3.0.min.js" integrity="sha256-RTQy8VOmNlT6b2PIRur37p6JEBZUE7o8wPgMvu18MC4=" crossorigin="anonymous"></script>
</head>
<body>
<div>
<h3>Use request(query, method, data) in console. </h3>
</div>
<div>
... |
<?php
namespace Oro\Bundle\WorkflowBundle\Form\EventListener;
use Oro\Bundle\FormBundle\Utils\FormUtils;
use Oro\Bundle\NotificationBundle\Entity\EmailNotification;
use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition;
use Oro\Bundle\WorkflowBundle\Event\WorkflowEvents;
use Oro\Bundle\WorkflowBundle\Form\Type\Work... |
<?php
return [
'adminEmail' => 'admin@example.com',
'agent_name' => 'author',
'cruise_code'=>'002',
'children_age' => '12',
'old_age' => '75',
'ADT' => '30',
]; |
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$config = new \JccDex\Http\Config("jccdex.cn", 443, true);
// print_r($config->getConfig());
echo $config->getConfig(); |
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*
* @defgroup TridentCore Trident Core
* @{
*/
class BxTemplConfig extends BxBaseConfig
{
protected $_isModule;
function __constr... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Subject */
$this->title = Yii::t('app', 'Update Subject: ' . $model->title, [
'nameAttribute' => '' . $model->title,
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Subjects'), 'url' => ['index']];
$this->param... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Universidad extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('universidad', function... |
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Заказы</h3>
<!-- <div class="box-tools">-->
<!-- <a href="-->
<?php //echo site_url('order/add... |
<?php
class appointment_model extends CI_Model{
private $table = "appointment";
public function __construct(){
parent:: __construct();
}
public function read_appoint(){
$this->db->select("*");
$this->db->from($this->table);
$query = $this->db->get();
return $query->result_array();
}
public function crea... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSousPeriodesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sous_perio... |
<body>
<div class="preloader">
<div class="layer"></div>
<div class="layer"></div>
<div class="layer"></div>
<div class="layer"></div>
<div class="inner" data-tilt data-tilt-perspective="2000">
<figure class="fadeInUp animated"> <img src="<?php echo base_url('assets/front/');?>images/preload... |
<?php
/*
* This file is part of the Kisaan package.
*
* (c) Cocolabs SAS <contact@cocolabs.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Kisaan\MessageBundle\FormHandler;
use Kisaan\MessageBundle\FormModel\NewThr... |
<?php
use Illuminate\Support\Facades\Route;
use Webkul\CartRule\Http\Controllers\CartRuleController;
use Webkul\CartRule\Http\Controllers\CartRuleCouponController;
use Webkul\CatalogRule\Http\Controllers\CatalogRuleController;
use Webkul\Core\Http\Controllers\SubscriptionController;
use Webkul\Marketing\Http\Controlle... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class FlushSessions extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'command:name';
/**
* The console command description.
*
* @var st... |
<main class="testimoni displayCenter noMax-width">
<form action="<?= base_url() . 'admin/update_testimoni' ?>" method="POST">
<h2 class="text-center">Edit Testimoni</h2>
<hr><br>
<containerInput class="container-input">
<input type="hidden" name="id" value="<?= $testimoniId->id ?>">
<!--------... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace Enbit\eBaySDK\Account\Enums;
class RefundMethodEnum
{
const C_MERCHANDISE_CREDIT = 'MERCHANDISE_CR... |
<?php
namespace app\admin\library\traits;
use app\admin\library\Auth;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
use PhpOffice\PhpSpreadsheet\Reader\Xls;
use PhpOffice\PhpSpreadsheet\Reader\Csv;
use think\Db;
use think\Exception;
use think\exception\PDOException;
use think... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="" />
<meta name="author" content="" />
<!--[if IE]>
<meta http-equiv="X-UA-Com... |
<?php
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '4xrjuEtbwsDtw-dLYtABSKuzfsXT19Jk',
],
],
];
if (!YII_ENV_TEST) {
// configuration adjust... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\Models\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class RegisterController extends Controller
{
... |
<!-- @inject('request', 'Illuminate\Http\Request') -->
{{-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> --}}
@extends('layouts.app')
@section('content')
<style>
.frame{
background:#ffffff;
height:150px;
overflow:none;
padding:0;
}
.ul {
width:100%... |
<?php
namespace TeraBlaze\Database\ORM\Mapping;
/**
* @Annotation
* @Target("PROPERTY")
*/
final class OneToMany implements Annotation
{
/**
* @var string
*/
public $mappedBy;
/**
* @var string
*/
public $targetEntity;
/**
* @var array<string>
*/
public $casc... |
<?php
/*
Register is how a user establishes an account. Accounts are identified by an
email address.
Example:
curl -F "email=foo@bar.com" -F "password=secret" http://server/api/register.php
*/
require_once(dirname(__FILE__) . "/../../../include/kitroot.php");
$email = $_POST['email'];
$password = $_PO... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Products extends Model
{
protected $table = 'product';
} |
@extends('layout')
@section('title')
FAQ Create Page
@endsection
@section('content')
<h2 class="underline">
Add a new Blog to the Blog Page!
</h2>
<form method="POST" action="/blog">
@csrf
<label for="title_uri">
Title Uri:
</label> <br>
<input type... |
<?php
declare(strict_types=1);
/**
* This file is part of Coole.
*
* @link https://github.com/guanguans/coole
* @contact guanguans <ityaozm@gmail.com>
* @license https://github.com/guanguans/coole/blob/main/LICENSE
*/
namespace Coole\Log;
use Coole\Foundation\Able\ServiceProvider;
use Coole\Foundation\A... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHistoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('histories', f... |
<?php
namespace App\Http\Controllers\Acl;
use App\Http\Controllers\Controller;
use App\Http\Requests\Acl\Doctor\CreateRequest;
use App\Http\Requests\Acl\Doctor\EditRequest;
use App\Http\Requests\Acl\Doctor\StatusEditRequest;
use App\Http\Resources\Acl\DoctorResource;
use App\Repositories\Acl\DoctorDetailRepository;
u... |
@extends('template.master')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Ubah Buku</h1>
</div>
<div class="col-sm-6">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNotesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notes', function ... |
<?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
/**
* Project: Yanzicms
* Producer: Yanzicms [ http://www.Yanzicms.com ]
* Author: A.J <804644245@qq.com>
* Copyright: http://www.Yanzicms.com All rights reserved.
*/
namespace app\user_center;
use extend\branch\Branch;
use extend\plugin\Plugin;
use extend\web_dispose\WebDispose;
use model\Attribution;
use s... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Brainindustrial\V20200920\Models\ListTagValueTrendRequest;
use AlibabaCloud\Tea\Model;
class pidTag extends Model
{
/**
* @var string
*/
public $pidTagId;
protected $_name = [
'pidTagId' => 'PidTagI... |
<?php namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes();
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (file_exists(SYSTEMPATH . 'Config/Routes.php'))
{
require SYSTEMPATH . 'Config/Routes.php';
}
/**
* ---... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
@extends('dashboard.layout')
<!-- begin:: Content -->
@section('content')
<div class="kt-container kt-container--fluid kt-grid__item kt-grid__item--fluid">
<!--Begin::Dashboard 1-->
<!--Begin::Row-->
<form action="#" method="POST" id="listing_form" class="form-horizontal listing_form">
... |
<?php
class Whatever
{
/**
* @param string $a
*/
public function doSomething( $a )
{
$b = $a;
}
} |
<?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
/**
* @file
* Definition of Drupal\help\Tests\HelpTest.
*/
namespace Drupal\help\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Verify help display and user access to help based on permissions.
*
* @group help
*/
class HelpTest extends WebTestBase {
/**
* Modules to enable.
*
* @var array.... |
<?php
return [
// HTTP 请求的超时时间(秒)
'timeout' => 10.0,
// 默认发送配置
'default' => [
// 网关调用策略,默认:顺序调用
'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
// 默认可用的发送网关
'gateways' => [
'qcloud'
],
],
// 可用的网关配置
'gateways' => [
... |
<?php
$context = stream_context_create();
// Single option
var_dump(stream_context_set_option($context, 'http'));
// Array of options
var_dump(stream_context_set_option($context, array(), 'foo', 'bar'));
?> |
<?php
namespace ERPBundle\Form\insert;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class typeUnite extends Ab... |
@extends('layouts.specialist')
@section('content')
<div class="card">
<div class="card-header">
{{ trans('cruds.reporting.title_singular') }} {{ trans('global.list') }}
</div>
<div class="card">
<div class="card-header">
{{ trans('cruds.reporting.title_singular') }} {{ trans('g... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePeserta extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('peserta', function (... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... |
<?php
namespace app\common\model;
use think\Model;
class Article extends Model
{
public function getArticleById($id)
{
$where['id'] = $id;
$obj = $this->get($where);
return $obj;
}
public function getArticles($where=[])
{
$list = $this->where($where)->paginate... |
<?php
/*
* Copyright 2008 Sven Sanzenbacher
*
* This file is part of the naucon package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Naucon\HtmlBuilder;
/**
* Html Input Reset Class
*
* @package HtmlBuilder
* ... |
<?php
/*
* This file is part of the Nopis package.
*
* (c) wangbin <wbhazz@163.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nopis\Lib\Http;
class Request implements RequestInterface
{
/**
* @var strin... |
<?php
namespace App\Test\TestCase\Action\Action11SessionRole;
use App\Test\Traits\AppTestTrait;
use App\Test\Traits\UserTestTrait;
use Fig\Http\Message\StatusCodeInterface;
use Monolog\Test\TestCase;
/**
* Test.
*
* @coversDefaultClass \App\Action\SessionRole\SessionRoleCreateAction
*/
class SessionRole01CreateA... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes... |
<!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>{{ config('app.name', 'CMS Site') }}</ti... |
<?php
return [
'add_title' => 'Add value to zset',
'edit_title' => 'Update value in zset',
'delete_title' => 'Delete value from zset',
'score' => 'Score',
'view_description_error' => 'Cannot view zset. Error: :error',
'add_description_success' => 'An item has been added to the zset',
'add_description_error' => ... |
<?php
namespace Grav\Common;
use Grav\Common\Config\Config;
use RocketTheme\Toolbox\File\YamlFile;
/**
* Class Theme
* @package Grav\Common
*/
class Theme extends Plugin
{
public $name;
/**
* Constructor.
*
* @param Grav $grav
* @param Config $config
* @param string $name
*... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCommentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('comments', fun... |
<?php
$lang = [
//friends errors
'friends_error' => 'Error',
'friends_invalid_id' => 'Invalid ID.',
'friends_no_access' => 'Access denied.',
'friends_unknown' => 'Unknown type.',
'friends_already' => 'User ID is already in your %s list.',
'friends_delete' => 'Delete',
'friends_sure' => ... |
<?php
/**
* Batch Customers Export Class
*
* This class handles customer export
*
* @package EDD
* @subpackage Admin/Reports
* @copyright Copyright (c) 2015, Pippin Williamson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 2.4
*/
// Exit if accessed directl... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateCollumMoviesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('movies', fu... |
<?php
namespace App\Admin\Controllers;
use App\Bag;
use App\User;
use App\Product;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
class BagController extends AdminController
{
/**
* Title for current resource.
*
* @var string
... |
<?php
namespace App\Test\Unit\Models;
use UnitTester;
use Codeception\Test\Unit;
use PhalconDemo\Models\Users;
class UsersTest extends Unit
{
/**
* The Users model.
* @var Users
*/
protected $user;
/**
* UnitTester Object
* @var UnitTester
*/
protected $tester;
pro... |
<?php
namespace App\Http\Controllers\Frontend;
use Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Product;
use App\Models\Wishlist;
use Gloudemans\Shoppingcart\Facades\Cart;
use Carbon\Carbon;
class CartController extends Controller
{
public function AddToCart(Request $re... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Type
*
* @ORM\Table(name="types")
* @ORM\Entity(repositoryClass="AppBundle\Repository\TypeRepository")
*/
class Type
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(s... |
<?php
namespace app\modules\account\controllers\backend;
use Yii;
use app\components\BackendController;
use app\modules\account\models\User;
use yii\helpers\ArrayHelper;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use app\modules\common\controllers\backend\CropImageController;
use app\helpers\LetHe... |
<?php
/**
* wCMF - wemove Content Management Framework
* Copyright (C) 2005-2020 wemove digital solutions GmbH
*
* Licensed under the terms of the MIT License.
*
* See the LICENSE file distributed with this work for
* additional information.
*/
namespace wcmf\test\tests\persistence;
use wcmf\lib\core\ObjectFac... |
<?php
namespace App\Http\Livewire\Client\Dashboard\Payments;
use App\Helpers\Card\Card;
use Livewire\Component;
use Livewire\WithPagination;
use App\Helpers\Client\Client;
use Illuminate\Support\Facades\Auth;
class Index extends Component
{
use WithPagination;
protected $paginationTheme = 'bootstrap';
... |
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top ">
<div class="container-fluid">
<div class="navbar-wrapper">
<a class="navbar-brand" href="#">{{ $titlePage }}</a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-control... |
<?php
namespace App\Http\Controllers\AdmineController;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use App\Charts\UserChart;
class StatistiqueController extends Controller
{
public function showStat(){
/**
* the number of Translation betw... |
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding yo... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Account extends Model
{
use HasFactory;
protected $fillable = ['uuid', 'agency', 'account', 'holder', 'status', 'bank_id'];
} |
<?php
/**
* @package The_SEO_Framework\Classes
*/
namespace The_SEO_Framework;
defined( 'THE_SEO_FRAMEWORK_PRESENT' ) or die;
/**
* The SEO Framework plugin
* Copyright (C) 2015 - 2019 Sybre Waaijer, CyberWire (https://cyberwire.nl/)
*
* This program is free software: you can redistribute it and/or modify
* it... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cities', function($table) {
$table->increme... |
<?php
namespace Demo\Forms;
class FormArea extends FormBaseWidget
{
/**
* 表单标题
* @var string
*/
protected $title = 'Area';
/**
* Build a form here.
*/
public function form()
{
call_user_func_array([$this, 'area'], ['Area']);
$this->area('area', 'Area'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.