text stringlengths 2 1.03M |
|---|
<?php
require_once __DIR__ . '/../vendor/autoload.php';
if (empty($argv[1])) {
die('Specify the name of a job to add. e.g, php queue.php PHP_Job');
}
date_default_timezone_set('GMT');
Resque\Resque::setBackend('127.0.0.1:6379');
$args = [
'time' => time(),
'array' => [
'test' => 'test',
],
]... |
<?php
namespace app\admin\controller;
use org\Upload;
use think\File;
class Uploadify extends Base{
protected function _initialize(){
parent::_initialize();
}
/**
* [uploadimg 上传单个图片]
* @return [type] [description]
*/
public function uploadimg($file='image'){
$file = request()->file($file);
$path... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/**
*
*/
class Transversal_model extends CI_Model {
public function __construct() {
parent::__construct();
}
public function actualizarClave($parametros){
$data = array(
'password' => $parametros['... |
<?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... |
<nav class="main-header navbar
{{ config('adminlte.classes_topnav_nav', 'navbar-expand') }}
{{ config('adminlte.classes_topnav', 'navbar-white navbar-light') }}">
{{-- Navbar left links --}}
<ul class="navbar-nav">
{{-- Left sidebar toggler link --}}
@include('adminlte::partials.na... |
<?php
namespace Carnage\Cqrs\Event\Projection;
interface PreRebuildInterface
{
public function preRebuild();
} |
<?php
namespace app\index\controller;
use app\common\controller\Frontend;
class Rule extends Frontend
{
protected $noNeedLogin = '*';
protected $noNeedRight = '*';
protected $layout = '';
/**
* 规章列表
* @return string
* @throws \think\Exception
*/
public function index()
... |
<?php
namespace Appzcoder\CrudGenerator\Commands;
use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
class CrudControllerCommand extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'crud:controller
... |
<?php
/*
* This file is part of the MopaBootstrapBundle.
*
* (c) Philipp A. Mohrenweiser <phiamo@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mopa\Bundle\BootstrapBundle\Twig;
use Twig\Extension\Abst... |
<?php
namespace App\Http\Controllers;
use App\Jurusan as Model;
use Illuminate\Http\Request;
class JurusanController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$model = Model::paginate(10);
... |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use DB;
use Session;
use App\Models\Admin;
use Test;
use App\Models\Roles;
use App\Http\Requests;
use App\Models\Video;
use Illuminate\Support\Facades\Redirect;
use GrahamCampbell\ResultType\Result;
class Videoco... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|----------------------------... |
<?php
namespace ConfrariaWeb\Church\Databases\Seeds;
use App\Models\User;
use ConfrariaWeb\Account\Models\Account;
use ConfrariaWeb\Account\Models\Plan;
use ConfrariaWeb\Acl\Models\Permission;
use ConfrariaWeb\Acl\Models\Role;
use ConfrariaWeb\Domain\Models\Domain;
use ConfrariaWeb\Post\Models\PostCategory;
use Confr... |
<?php
/**
* Router language strings.
*
* @package CodeIgniter
* @author CodeIgniter Dev Team
* @copyright 2014-2019 British Columbia Institute of Technology (https://bcit.ca/)
* @license https://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com
* @since Version 4.0.0... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +------------------------------------------------... |
<?php
require_once('login_check.php');
if (!isset($_POST['c']) || trim($_POST['c']) == '') {
die('You need to actually write a comment.');
}
require_once('includes/dbconn.php');
$comment_db = "'".$mysqli->escape_string(htmlentities(trim($_POST['c'])))."'";
$uid_db = (int) $user_cookie['user_id'] * 1;
$insert_comm... |
<?php
namespace Dan\Shopify\Laravel\Events\Stores;
/**
* Class OrdersSynced
*/
class OrdersSynced extends AbstractStoreEvent
{
} |
<?php
namespace App\Services;
use App\Repositories\UserRepository;
class UserService
{
protected $userRepository;
public function __construct(UserRepository $userRepository)
{
$this->userRepository = $userRepository;
}
public function getUsersAddress($id)
{
return isset($this... |
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\CommentRepository;
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
/**
* @ORM\Entity(repositoryClass=CommentRepository::class)
* @ORM\HasLifecycleCallbacks()
*/
class Comment
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* ... |
<reply :attributes="{{ $reply }}" inline-template v-cloak>
<div id="reply-{{ $reply->id }}" class="card mt-2">
<div class="card-header">
<div class="d-flex justify-content-between">
<div>
<a href="{{ route('profile',$reply->owner->name) }}">
... |
<?php
/**
* ALIPAY API: ant.merchant.expand.order.query request
*
* @author auto create
* @since 1.0, 2021-02-08 14:20:19
*/
class AntMerchantExpandOrderQueryRequest
{
/**
* 商户申请单查询
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
p... |
<?php
/**
* @Created By ECMall PhpCacheServer
* @Time:2015-01-23 14:02:53
*/
if(filemtime(__FILE__) + 1800 < time())return false;
return array (
'id' => 1040,
'goods' =>
array (
'goods_id' => '1040',
'store_id' => '42',
'type' => 'material',
'goods_name' => '士力架花生夹心巧克力51g',
'descriptio... |
<?php
namespace Fast\Contracts\Container;
use Closure;
use Psr\Container\ContainerInterface;
interface Container extends ContainerInterface
{
/**
* Determine if the given abstract type has been bound.
*
* @param string $abstract
* @return bool
*/
public function bound($abstract);
... |
<?php
class Public_model extends CI_Model
{
private $showOutOfStock;
private $showInSliderProducts;
private $multiVendor;
public function __construct()
{
parent::__construct();
$this->load->Model('Home_admin_model');
$this->showOutOfStock = $this->Home_admin_model->getValu... |
<div class="main-content container-fluid">
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3><?= $data['title'] ?></h3>
</div>
</div>
</div>
<section class="section">
<div class="card">
... |
<?php
use yii\helpers\html;
use yii\helpers\ArrayHelper;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
$models = app\models\Category::find()->asArray()->all();
$map = ArrayHelper::map($models, 'id', 'title'); // (where 'id' becomes the value and 'name' the name of the value which will be displayed)
$this... |
<?php
$method = getenv('PLUGIN_METHOD');
$body = getenv('PLUGIN_BODY');
$url = getenv('PLUGIN_URL');
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
if ($method === "post") {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
}
$output = curl_exec... |
<?php
namespace AppBundle\Admin;
use AppBundle\Entity\Teacher;
use AppBundle\Enum\TeacherAbsenceTypeEnum;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\Form\Type\DatePickerTyp... |
<?php
namespace Marktplaats\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true;
... |
<?php
/**
* Copyright 2018 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Detail_portofolio extends CI_Controller
{
public function index()
{
$this->load->view('Header');
$this->load->view('Detail_portofolio');
$this->load->view('Footer');
}
} |
<!DOCTYPE html>
<html lang="fr">
<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>Dashboard</title>
<link rel="stylesheet" href="{{ asset('Bootstrap v3.1.1/css/boostrap.min.css') }}">
</h... |
<?php
return [
'view/main/contact' => [
'title' => title_concat(\config()->get('settings.title.value'), 'تماس با ما'),
'common' => [
'default',
'default-changeable',
'default-map',
],
'sub_title' => 'تماس با ما',
'breadcrumb' => [
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Locales
|--------------------------------------------------------------------------
|
| Contains an array with the applications available locales.
|
*/
'locales' => [
... |
@foreach($documents as $document)
@if($document->package->user_id != auth()->user()->id)
<?php Session::put('success', 'Entre em contato com o administrador para adicionar novo pacote de provas');
return redirect()->route('store.index'); ?>
@endif
<div class="col-sm-4">
<div class="p... |
<?php
/*
* This file is part of the AudienceHero project.
*
* (c) Marc Weistroff <marc@weistroff.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace AudienceHero\Bundle\MailingCampaignBundle\W... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLikesCommentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('likes_com... |
<?php
namespace App\Jobs;
use App\Models\User;
use App\Models\Attendance;
use App\Models\AttendanceTimesheet;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;... |
<?php
/**
* TOP API: taobao.hanoi.group.label.delete.pap request
*
* @author auto create
* @since 1.0, 2013-09-13 16:51:03
*/
class Taobao_Request_HanoiGroupLabelDeletePapRequest {
/**
* 认证信息
**/
private $appName;
/**
* 分组的id
**/
private $groupId;
/**
* 标签的id
**/
private $labelId;
private $... |
<?php
$name='DejaVuSansMono';
$type='TTF';
$desc=array (
'Ascent' => 928,
'Descent' => -236,
'CapHeight' => 928,
'Flags' => 5,
'FontBBox' => '[-558 -375 718 1042]',
'ItalicAngle' => 0,
'StemV' => 87,
'MissingWidth' => 602,
);
$up=-63;
$ut=44;
$ttffile='C:/xampp/htdocs/waroengcoba/application/third_party... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = ['quantity'];
public function categories()
{
return $this->belongsToMany('App\Models\Category');
... |
<?php
require_once dirname(__DIR__) . '/etc/class/t7.php';
/**
* handler for users api requests.
* @author misterhaan
*/
class usersApi extends t7api {
/**
* write out the documentation for the users api controller. the page is
* already opened with an h1 header, and will be closed after the call
* complete... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChitietnhapkhoTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chitietnhapkho', function(Blueprint $table)
{
$table->increments('id... |
<?php
/**
* This file is part of `prooph/event-store-http-client`.
* (c) 2018-2020 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2018-2020 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source ... |
<?php
use App\User;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$user = new User();
$user->name = "Baturman Şen";
$user->email = "baturman@gmail.com";
$... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use phpseclib\Crypt\Hash;
class FrontAuthController extends Controller
{
public function login(Request $request)
{
$http = new \GuzzleHttp\Client;
try {
$response = $http->post(config('services.passport.login_endp... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
error_reporting(0);
class Dcs_approval extends CI_Controller
{
public function __construct()
{
parent::__construct();
($this->session->userdata('admin_login'))?'': redirect('home/index');
$this->load->helper('url');
$this->load->model('back... |
@extends('layouts.app')
@section('content')
<div class="container">
@if ($errors->any())
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</... |
--TEST--
Test for PHP-1382: looping with just getNext() (with getmore)
--SKIPIF--
<?php require_once "tests/utils/standalone.inc" ?>
--FILE--
<?php
require_once "tests/utils/server.inc";
function log_getmore($server, $info) {
echo "Issuing getmore\n";
}
$ctx = stream_context_create(array(
'mongodb' => array(
'log... |
<?php
declare(strict_types=1);
/*
* This file is part of the Bitbucket API Client.
*
* (c) Graham Campbell <hello@gjcampbell.co.uk>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bitbucket\Api\Repositories\Workspaces\... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class is_sponsor
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)... |
<?php
class Peoples extends CI_Controller {
public function index()
{
$data['judul'] = 'List of Peoples';
$this->load->model('Peoples_model', 'peoples');
/* load library */
$this->load->library('pagination');
/* ambil data keyword */
if($this->input->post('s... |
<?php namespace Yocmen\BladeComponents;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Support\HtmlString;
use Illuminate\View\Engines\EngineResolver;
use Illuminate\View\ViewFinderInterface;
class BladeComponentsFactory extends \Illuminate\View\Factory {
/**
* The components being rendered.
... |
<?php
namespace Google\AdsApi\AdWords\v201802\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class TemplateElementFieldType
{
const ADDRESS = 'ADDRESS';
const AUDIO = 'AUDIO';
const ENUM = 'ENUM';
const IMAGE = 'IMAGE';
const BACKGROUND_IMAGE = 'BACKGROUND_IMAGE';
const NUMBER... |
<?php
declare(strict_types=1);
namespace Rector\Core\FileSystem;
use Nette\Utils\Strings;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Symplify\Skipper\SkipCriteriaResolver\SkippedPathsResolver;
use Symplify\SmartFileSystem\FileSystemFilter;
use Symplify\SmartFileSystem\Finder\F... |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException as NotFoundHttpException;
use \Illuminate\Database\QueryException;
use Illumin... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/bigtable/admin/v2/bigtable_table_admin.proto
namespace Google\Cloud\Bigtable\Admin\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for
... |
<?php
namespace MongoDB\Tests\UnifiedSpecTests;
use MongoDB\Driver\Monitoring\CommandFailedEvent;
use MongoDB\Driver\Monitoring\CommandStartedEvent;
use MongoDB\Driver\Monitoring\CommandSubscriber;
use MongoDB\Driver\Monitoring\CommandSucceededEvent;
use MongoDB\Operation\DatabaseCommand;
use function MongoDB\Driver\... |
<?php
/**
* This file is part of the CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CodeIgniter\Test\Mock;
use CodeIgniter\Config\BaseSer... |
<?php
// meta tag robots
osc_add_hook('header', 'pop_nofollow_construct');
pop_add_body_class('recover');
osc_current_web_theme_path('header.php');
?>
<div class="form-container box">
<div class="header">
<h1><?php _e('Recover your password', 'pop'); ?></h1>
</div>
<div class="form-content">
... |
<section>
<div class="notificationDescription">
<div class="notificationDescription__img">
<div class="notificationDescription__img--block"></div>
</div>
<div class="notificationDescription__text">
<h3>Заявки</h3>
<p>здесь вы можете посмотреть все поступившие заявки с сайта.</p>
</div>
</div>
</sec... |
<?php
namespace Telegramapp\Telegram\AdminPanel\Providers;
use Telegramapp\Telegram\AdminPanel\User\Http\Middleware\GuestUser;
use Illuminate\Routing\Router;
use Illuminate\Support\ServiceProvider;
/**
* Class GuestUserServiceProvider.
*
* @package Telegramapp\Telegram\AdminPanel\User\Providers
*/
class GuestUse... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CustomerImportExport\Model\ResourceModel\Import\Customer;
use Magento\CustomerImportExport\Test\Unit\Model\Import\CustomerCompositeTest;
use Magento\Framework\DataObject;
use Magento\Framework\DB\S... |
@extends('College.layouts.master')
@section('title', 'College Merit')
@section('content')
<div class="content-overlay"></div>
<div class="content-wrapper">
<div class="row">
<div class="col-12">
</div>
</div>
<section id="basic-hidden-label-form-layouts">
... |
<h1>{{ config('app.name') }}</h1>
<p>Merhaba {{ $kullanici->adsoyad }}, kaydınız başarılı bir şekilde yapıldı.</p>
<p>Kaydınızı aktifleştirmek için <a href="{{ config('app.url') }}/kullanici/aktiflestir/{{ $kullanici->aktivasyon_anahtari }}">tıklayın</a> veya aşağıdaki bağlantıyı tarayıcınızda açın.</p>
<p>{{ config('a... |
<div class="modal fade" id="securityServiceConfirmDelete" tabindex="-1" role="dialog" aria-labelledby="securityServiceConfirmDelete">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="securityServiceConfi... |
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
display: table;
font-weight: 100;... |
<?php
namespace App\Http\Responses\Api\Schemes;
use App\Http\Responses\Api\Auth\DiscordProfileResponse;
use App\Http\Responses\Api\Auth\UserProfileResponse;
use JsonSerializable;
use Ome\Auth\Interfaces\Dto\UserProfile;
use Ome\Event\Entities\EventScheme;
class SchemeResponse implements JsonSerializable
{
privat... |
<?php
declare(strict_types=1);
namespace test\repositories;
/**
* @covers \SamIT\abac\repositories\CachedReadRepository
*/
class CachedReadRepositoryTest extends PermissionRepositoryTest
{
protected function getRepository(): \SamIT\abac\interfaces\PermissionRepository
{
return new \SamIT\abac\repos... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Track extends Model
{
protected $fillable = ['user_id', 'image_id', 'en_name', 'es_name', 'ru_name', 'slug', 'address', 'city_id', 'country_id', 'lat', 'lng', 'url', 'facebook', 'email', 'length', 'straight', 'curves', 'width', 'slope', 'paddock'... |
<?php
namespace GetCandy\Api\Core\Versioning;
use Illuminate\Support\Facades\Log;
abstract class BaseVersioner
{
protected $extendedVersionActions = [];
protected $extendedRestoreActions = [];
public function addVersionAction($action)
{
return $this->addAction('extendedVersionActions', $acti... |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use Illuminate\View\View;
class DashboardController extends Controller
{
/**
* DashboardController constructor.
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* @return ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTodosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('todos', function ... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenameProjectCredentialTypeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::rename('p... |
<?php
namespace ListOnce\Entity;
class AgentCollection extends EntityCollection
{
/**
* The property containing entities
*
* @var string
*/
protected $entityProperty = 'agents';
/**
* The data type of entities within this collection
*
* @var string
*/
protecte... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateReadAnnouncementTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('read_a... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sitemap\Test\Unit\Controller\Adminhtml\Sitemap;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
use Magento\Framework\Controller\ResultFactory;
class SaveTest... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "modelo_prefactura".
*
* @property integer $id
* @property integer $puesto_id
* @property integer $detalle_servicio_id
* @property integer $cantidad_servicios
* @property string $horas
* @property string $lunes
* @property string $... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Roles Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used in roles throughout the system.
| Regardless where it is... |
@extends('layouts.admin')
@section('content')
@include('alerts.request')
<div class="panel-body">
@foreach ($inscriptions as $inscription)
<br>
<h4>Carrera: {{$inscription->group->startclass->career->nombre}} Turno: {{$inscription->group->turno}}</h4>
<table class="sch">
<tbody>
<tr>
<th colspan="7">HORARI... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class RejectedChangeTeam extends Mailable
{
use Queueable, SerializesModels;
public $user;
public $text;
/**1
* Create a new me... |
<?php
namespace spec\psr0\namespace1;
use PhpSpec\ObjectBehavior;
class TestClassSpec extends ObjectBehavior
{
public function it_is_initializable()
{
$this->shouldHaveType('psr0\\namespace1\\TestClass');
}
} |
<?php
namespace App\Repositories;
class BaseRepository {
public function setOrder($model, $orders)
{
if ($orders != null) {
foreach($orders as $order) {
$model = $model->orderBy($order['column'], !empty($order['direction']) ? $order['direction'] : 'asc');
}
... |
<!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', 'Laravel') }}</tit... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
protected $table = 'comments';
protected $fillable = ['name','city','short_body','body','img_path','date'];
} |
<?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 maiorADV\eBaySDK\Trading\Types;
/**
*
*/
class SellerProvidedTitleSupportedDefinitionType extends \m... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<nav aria-label="breadcrumb primary">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page"><a href="... |
<?php
/**
* This file is part of the PropelBundle 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\Bundle\PropelBundle\Tests\DataFixtures\Loader;
use Propel\Bundle\PropelBundle\Te... |
<?php
use App\Pertanyaan;
use App\Kursus;
use App\Kelas;
use App\Mapel;
use App\Result;
use App\User;
use App\reset;
namespace App;
use Illuminate\Database\Eloquent\Model;
class Kuis extends Model
{
protected $fillable = ['user_id','kelas_id','mapel_id','kuis_name','kuis_desc','slug'];
public function pertan... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }} | @yield('title')</title>
<meta name="viewport" con... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace frontend\controllers;
use Yii;
use app\models\User;
use app\models\UserSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UserController implements the CRUD actions for User model.
*/
class UserController extends Controller
{
/**
* @inherit... |
<?php
namespace Coyote\Http\Controllers\Job;
use Coyote\Events\JobWasSaved;
use Coyote\Firm;
use Coyote\Firm\Benefit;
use Coyote\Http\Forms\Job\FirmForm;
use Coyote\Http\Forms\Job\JobForm;
use Coyote\Http\Transformers\FirmWithBenefits;
use Coyote\Job;
use Coyote\Http\Controllers\Controller;
use Coyote\Notifications\J... |
@extends('admin.homepage.master')
@section('title', 'List Product Book')
@section('content')
<div class="row">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Tables</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="col-... |
<?php
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
// Enable APC for autoloading to improve performance.
// You should change the ApcClassLoader first argument to a unique prefix
// in order to prevent ca... |
<table class="table table-bordered data-table tabel-data">
<thead>
<tr>
<th>No</th>
<th>Kegiatan Prioritas </th>
<th>Prioritas Kota </th>
<th>Jumlah/Vol </th>
<th>Pagu(Rp)</th>
<th>SKPD ... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* C:... |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\CustomerBundle\Tests\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.