text stringlengths 2 1.03M |
|---|
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Doujinshi;
use Faker\Generator as Faker;
$factory->define(Doujinshi::class, function (Faker $faker) {
return [
//
];
}); |
<?php
/*
* This file is part of the core-bundle package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle\Twig\Extension\Asset;
use WBW\Bundle\CoreBundle\Icon\MaterialDesignIco... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>The Burger House</title>
<... |
<style>
.checkbox {
padding: 10px;
}
</style>
<div class="card">
<div class="card-body">
<canvas id="businesses_by_status" width="400" height="100"></canvas>
<script>
var checked = false;
function getAnalytics(data)
{
$.ajax({
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class WelcomeController extends Controller
{
public function index($name) {
return view('user.welcome', ['name' => $name]);
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Brimedika</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" /... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateObatTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('obat', function (B... |
@extends('one.layout.base')
@section('content')
<div class="container-fluid">
<div class="fade-in">
@if ($errors->any())
<div class="alert alert-danger" id="divMessages">
<ul>
@foreach ($errors->all() as $error)
... |
<?php
namespace ContainerNpGbrYw;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getSecurity_AccessMapService ext... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use APP\Products;
use APP\Order;
class OrderItem extends Model
{
protected $fillable = [
'id', 'qty'
];
public function products()
{
return $this->hasMany(Products::class);
}
public function orders()
{
... |
<?php
namespace App\Http\Controllers;
use App\Models\TodoList;
use Illuminate\Http\Request;
class TodoListController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$todo = TodoList::all();
... |
<?php
/**
* Base Class for all \phpseclib3\Crypt\* cipher classes
*
* PHP version 5
*
* Internally for phpseclib developers:
* If you plan to add a new cipher class, please note following rules:
*
* - The new \phpseclib3\Crypt\* cipher class should extend \phpseclib3\Crypt\Common\SymmetricKey
*
* - Follow... |
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\HttpServer\Exception\Handler;
use Hyperf\Contract\StdoutLoggerIn... |
<style>
#caret:hover{
background:#F89406;
}
</style>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown" style="margin-top:8px;">
<a href="#" id="caret" class="dropdown-toggle" data-toggle="dropdown" ><b style="color:white; font-size:15pt">Login</b> <span class="caret" style="... |
<div class="box">
<h1>Modpack Settings</h1>
<div class="box-body">
<form method="post" action="/modpacks/{{ $modpack->slug }}" enctype="multipart/form-data">
{{ csrf_field() }}
{{ method_field('patch') }}
<div class="field is-horizontal">
<div class="... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `dose`.
* Has foreign keys to the tables:
*
* - `medication`
*/
class m180227_153104_create_dose_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('dose', [
'id' ... |
<?php
namespace AlipayAop\request;
/**
* ALIPAY API: mybank.credit.loanapply.promotion.dynamicurl.get request
*
* @author auto create
* @since 1.0, 2021-03-30 20:15:17
*/
class MybankCreditLoanapplyPromotionDynamicurlGetRequest
{
/**
* 获取推广活动的动态链接
**/
private $bizContent;
private $apiParas = array();
pr... |
@extends('layout.header')
@section('content')
<div class="am-content">
<div class="page-head">
<h2>Samples List</h2>
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">Site Configuration</a></li>
<li><a href="#">S... |
<div class="mt-8">
<a href="{{ route('movies.show', $movies['id']) }}">
<img src="{{ $movies['poster_path'] }}" alt="parasite" class="hover:opacity-75 transition ease-in-out duration-150">
</a>
<div class="mt-2">
<a href="{{ route('movies.show', $movies['id']) }}" class="text-lg mt-2 hover:t... |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
$list = $displayData['list'];
$pages =... |
<!DOCTYPE html>
<html>
<head>
<title>REMPAH WANGI - AMG GROUP</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="icon" type="image/ico" href="<?php echo config_item('base_img');?>favicon.ico">
<link rel="stylesheet" type="text/css" href="<?php echo config_item('base_tema');?>">
... |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ManagedDevice File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @li... |
<?php
namespace AppBundle\Service;
use AppBundle\Entity\Adventure;
use AppBundle\Entity\RelatedEntityInterface;
use AppBundle\Field\FieldProvider;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\PropertyAccess\PropertyAccessor;
class AdventureSerializer
{
/**
* @var FieldProvider
*/
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Stelag */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="stelag-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'number_stelag')->textInput() ?>
<?= $form->f... |
<?php
/**
* @file
* https://encoding.spec.whatwg.org/index-windows-1257.txt
*/
return array (
0 => 8364,
1 => 129,
2 => 8218,
3 => 131,
4 => 8222,
5 => 8230,
6 => 8224,
7 => 8225,
8 => 136,
9 => 8240,
10 => 138,
11 => 8249,
12 => 140,
13 => 168,
14 => 711,
15 => 184,
16 => 144,
... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AntChain\MS\Models;
use AlibabaCloud\Tea\Model;
class DeleteRcSynctaskResponse extends Model
{
// 请求唯一ID,用于链路跟踪和问题排查
/**
* @var string
*/
public $reqMsgId;
// 结果码,一般OK表示调用成功
/**
* @var string
*/
publi... |
<?php return array (
'facade/ignition' =>
array (
'providers' =>
array (
0 => 'Facade\\Ignition\\IgnitionServiceProvider',
),
'aliases' =>
array (
'Flare' => 'Facade\\Ignition\\Facades\\Flare',
),
),
'fideloper/proxy' =>
array (
'providers' =>
array (
0 =... |
@extends('index')
@section('header')
<link rel="stylesheet" href="{{asset('assets/last/style.css?cssv=4')}}">
<link rel="stylesheet" href="{{asset('assets/home/style.css?cssv=4')}}">
<link rel="stylesheet" href="{{asset('assets/css/common.css?cssv=4')}}">
<link rel="stylesheet" href="{{asset('assets/re... |
<?php
//000000604800s:103:"{"session_key":"gtHI9mDrKUl67qSmYF4CJA==","openid":"oPweb5aCb6pscUIQ7zuoHnSePXfI","uid":358,"scope":16}";
?> |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $table ='categories';
Protected $fillable=['name','slug','rank','status','meta_keyword','meta_description','created_by','updated_by','image'];
}
function events(){
return $this->hasMany(Event::clas... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
/**
* Core User API
*
* @package WordPress
* @subpackage Users
*/
/**
* Authenticates and logs a user in with 'remember' capability.
*
* The credentials is an array that has 'user_login', 'user_password', and
* 'remember' indices. If the credentials is not given, then the log in form
* will be assumed ... |
<?php namespace app\Models;
use App\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Auth;
class BaseModel extends Model{
use SoftDeletes;
protected $dates = ['deleted_at'];
//static $id_user = Auth::user()->id;
public static ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AdvertisementCategory extends Model {
protected $table = 'woke_advertisement_category';
protected $fillable = ['ad_height', 'ad_width', 'category_name', 'category_desc'];
public function ads(){
return $this->hasMany('App\Advertis... |
<?php
namespace App\Services;
class EncryptService
{
private $encryptMethod;
private $secretKey;
private $secretIV;
public function __construct()
{
$this->encryptMethod = config('encrypt.encrypt_method');
$this->secretKey = hash('sha256', config('encrypt.secret_key'));
$th... |
<?php
namespace SocialNetwork\app\controller;
use SocialNetwork\app\lib\BaseController;
use SocialNetwork\app\lib\Config;
use SocialNetwork\app\lib\Helper;
use SocialNetwork\app\model\Comment;
use SocialNetwork\app\model\Content;
use SocialNetwork\app\model\Notification;
use SocialNetwork\app\model\User;
use WebSocke... |
<?php
namespace backend\modules\api\models;
/**
* This is the ActiveQuery class for [[Answeroption]].
*
* @see Answeroption
*/
class AnsweroptionQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* @inheritdoc
* @retu... |
<div class="card mb-6 box-shadow">
<div class="card-header">
<h4 class="my-0 font-weight-normal">Create Genre</h4>
</div>
<div class="card-body">
<form action="{{ route('genres.store') }}" method="POST" class="form-signin">
{{ csrf_field() }}
<div class="form-label-group">
<input type... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
use App\Notifications\PasswordResetConfirmationNotification;
use Illuminate\Support\Facades\Auth;
class ResetPasswordController extends Controller
{
/*
|----------------------------... |
<?php
//
// Copyright (C) 2004-2006 Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will b... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\UnitMediaModel;
use App\ProvinceModel;
use App\CityModel;
use App\DistrictModel;
use App\SubDistrictModel;
use App\User;
class UnitModel extends Model
{
//
protected $table='unit';
protected $fillable=['*'];
public function _media... |
<?php
namespace App\Imports;
use App\Personne;
use App\Repositories\PersonneRepository;
use App\Repositories\RatioRepository;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\ToCollection;
use Maatwebsite\Excel\Concerns\WithBatchInserts;
use Maatwebsite\Excel\Concerns\WithChunkReading;
use Maatwebsit... |
<?php
// Language definitions used in help.php
$lang_help = array(
'Help' => 'Pomoc',
'produces' => 'tworzy',
'BBCode info 1' => 'BBCode jest kolekcją sformatowanych tagów, które są używane do zmiany wyglądu tekstu na tym forum. BBCode bazuje na tych samych regułach i jest bardzo podobny do języka HTML. Pon... |
<div class="rev_slider_wrapper fullwidth-container dark-spinner dark-nav">
<div id="slider11" class="rev_slider fullwidthbanner" data-version="5.4.7">
<ul>
{{-- SLIDE 1 --}}
<li data-transition="fade" data-thumb=""><img src="style/images/dummy.png" alt="" />
<div class="tp-caption font-weight-600 color-dar... |
<?php
include('../../inc/conexion.php');
$tmp_num_venta=$_POST['tmp_num_venta'];
$sqlDatosVenta = "SELECT * FROM ventas_tmp WHERE Id_Venta_Tmp = '$tmp_num_venta'";
$queryVentaDetalles=mysqli_query($db, $sqlDatosVenta) or die(mysqli_error());
$rowVentaDetalles=mysqli_fetch_array($queryVentaDetall... |
<?php
namespace SilverStripe\CMS\Controllers;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Director;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Core\ClassInfo;
use SilverStripe\Core\Config\Config;
use SilverStripe... |
<?php
require_once 'UserIcon.php';
class PersonIcon extends UserIcon{
public function __construct() {
parent::__construct(true);
$this->size = 25;
}
protected function isMultiple(){
return false;
}
} |
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected... |
<?php defined('SYSPATH') or die('No direct script access.');
class MControllerUser extends Controller_Template { //Только для авторизовавшегося пользователя
public function before()
{
date_default_timezone_set('UTC');
$auth = Auth::instance();
if ($auth->logged_in() == 0) throw HTTP_Exception::factory(404, 'F... |
<ul class="listado_categorias collapsible" style=" border: none;">
@foreach($categorias as $cat)
@if($categoria->id==$cat->id)
<li class="active">
@else
<li>
@endif
<a href="{{ route('productos', $cat->id)}}">
<div class="c... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class OrderWalletLogs extends Model
{
protected $fillable = ['wallet_txn_id', 'note', 'type', 'amount', 'balance'];
} |
@extends('master')
@section('title', 'dathang')
@section('content')
<div class="inner-header">
<div class="container">
<div class="pull-left">
<h6 class="inner-title">{{ trans('home.addToCart') }}</h6>
</div>
<div class="pull-right">
<div class... |
@extends('products.layout');
@section('content')
<div class="row">
<div class="col-lg-12">
<div class="pull-left">
<h2>Laravel 8 CRUD</h2>
</div>
<div class="pull-right">
<a href="{{ route('products.create') }}" class="btn btn-success"> C... |
<?php
use yii\bootstrap4\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Vuelos */
$this->title = 'Create Vuelos';
$this->params['breadcrumbs'][] = ['label' => 'Vuelos', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="vuelos-create">
<h1><?= Html::encode($this->t... |
<?php
declare(strict_types=1);
namespace OpenSpout\Reader\ODS;
final class Options
{
public bool $SHOULD_FORMAT_DATES = false;
public bool $SHOULD_PRESERVE_EMPTY_ROWS = false;
} |
<?php
namespace Biz\CloudPlatform;
use Symfony\Component\Filesystem\Filesystem;
class UpgradeLock
{
public static function lock()
{
$filePath = self::_getFile();
$time = time();
file_put_contents($filePath, (string) $time);
}
public static function unlock()
{
$f... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Locacao extends Model
{
use HasFactory;
protected $table = 'locacoes';
protected $fillable = [
'cliente_id',
'carro_id',
'data_inicio_periodo',
... |
<?php
namespace App\Transformers\Brand;
use App\Brand;
use App\Transformers\Category\CategoryTransformer;
use App\Transformers\Category\SubCategoryTransformer;
use App\Transformers\GeneralTransformer;
use Mockery\Matcher\Subset;
class BrandTransformer extends GeneralTransformer
{
protected $defaultIncludes = [
... |
<?php
namespace Admin\Logic;
/**
* ModelLogic
*/
class ModelLogic extends CommonLogic {
/**
* 写出菜单配置
* @param array $menu 菜单数组
* @return mixed
*/
public function writeMenu(array $menu) {
// 删除缓存
delDirAndFile(RUNTIME_PATH . '~runtime.php');
return fast_cache('mod... |
<?php
namespace App\Traits;
use App\Models\Like;
trait HasLikes
{
public function likes()
{
return $this->morphMany(Like::class, 'likeable');
}
public function like()
{
$this->likes()->firstOrCreate([
'user_id' => auth()->id()
]);
}
public function unlike()
{
$this->likes()->whe... |
<?php
/**
* Bitcoin classes
*
* By Mike Gogulski - All rights reversed http://www.unlicense.org/ (public domain)
*
* If you find this library useful, your donation of Bitcoins to address
* 1E3d6EWLgwisXY2CWXDcdQQP2ivRN7e9r9 would be greatly appreciated. Thanks!
*
* PHPDoc is available at http://code.gogulski.co... |
@extends('layouts.app')
@section('content')
<div class="page-header"><h2> {{ $pageTitle }} <small> {{ $pageNote }} </small> </h2></div>
<div class="toolbar-nav" >
<div class="row">
<div class="col-md-8">
@if($access['is_add'] ==1)
<a href="{{ url('ourmission/create?return='.$return) }}" class="btn btn-de... |
<?php
namespace App\Http\Controllers\Web;
use App\User;
/**
* Created by PhpStorm.
* User: PC
* Date: 3/23/2017
* Time: 4:18 PM
*/
class MapController extends \App\Http\Controllers\Controller
{
public function display(){
$title = 'Vị trí nhân viên';
$total = User::all()->count();
retur... |
<?php
namespace Gt\Csrf;
use Gt\Csrf\Exception\CsrfTokenInvalidException;
use Gt\Csrf\Exception\CsrfTokenSpentException;
use Gt\Session\SessionStore;
class SessionTokenStore extends TokenStore {
const SESSION_KEY = "tokenList";
/** @var SessionStore */
protected $session;
public function __construct(
SessionS... |
<?php
require("lib/ParmsException.class.php");
require("lib/fonctions_parms.php");
require("lib/fonctions_clock.php");
/**
* IMPORTANT :
* Ce script n'est qu'une ébauche.
*
* En l'état actuel son fonctionnement n'est pas satisfaisant
*
*
* Utiliser directement les variable du tableau $_GET peut ê... |
<?php
declare(strict_types=1);
namespace Blog\Factory;
use Blog\Handler\PostDetailHandler;
use Blog\Model\PostRepositoryInterface;
use Psr\Container\ContainerInterface;
use Zend\Expressive\Template\TemplateRendererInterface;
class PostDetailHandlerFactory
{
public function __invoke(ContainerInterface $container... |
@extends('layouts.seller')
@section('content')
<h3>Order Summary</h3>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Qty</th>
<th>Price</th>
</tr>
</thead>
<tbody>
@foreach ($items as $item)
<tr>
<td scope="row">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateClientesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clientes', fun... |
<?php
declare(strict_types=1);
/**User: Celio Natti... */
namespace natoxCore\validators;
/**
* Class Validator
*
* @author Celio Natti <Celionatti@gmail.com>
* @package natoxCore\validtors
*/
abstract class Validator
{
public $success = true, $msg = '', $field, $additionalFieldData = [], $rule, $include... |
<?php
namespace RectorPrefix20210719;
if (\class_exists('t3lib_tree_AbstractTree')) {
return;
}
class t3lib_tree_AbstractTree
{
}
\class_alias('t3lib_tree_AbstractTree', 't3lib_tree_AbstractTree', \false); |
<?php
class PagesController extends BaseController {
public static $admin_menu = array(
array(
'title' => 'Quản lý Trang',
'url' => 'pages',
'permissions' => array(
'admin_pages'
),
)
);
public function __construct() {
pa... |
<?php
namespace Alf\Interfaces\Properties;
use Alf\Enums\AlfCharEncodings;
use Alf\Types\Selects\AlfCharEncoding;
use JetBrains\PhpStorm\Pure;
interface AlfCharEncodingProperty {
#[Pure]
public function refCharset() : ?AlfCharEncoding;
#[Pure]
public function getCharsetValue() : ?AlfCharEncodings;
... |
<?php
namespace Database\Seeders;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\Seeder;
class AddTracks extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{//khoa-ChiDan
DB::table('tracks')->insert([
'nameTrack' => ... |
<?php
/**
* UpdateLeadPartitionRequest
*
* @category Class
* @package NecLimDul\MarketoRest\Lead
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Marketo Rest API
*
* Marketo Rest API
*
* OpenAPI spec version: 1.0
* Contact: developerfeedback@marketo.co... |
<?php
namespace App\Http\Controllers\Api;
use App\Services\Line\Event\RecieveLocationService;
use App\Services\Line\Event\RecieveTextService;
use App\Services\Line\Event\RecieveImageService;
use App\Services\Line\Event\RecieveStickerService;
use App\Services\Line\Event\FollowService;
use App\Services\Line\Event\JoinS... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Jurnal extends Model
{
protected $fillable = [
'tanggal',
'periode_id',
'rombel_id',
'butir_sikap',
'aspek',
'siswa_id',
'catatan',
'nilai'
];
public function siswas()
{... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPhotoIdToUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function ... |
<?php
namespace App\Glossary;
class QuestionType{
// const GENDER = ['display'=>'Giới tính', 'value'=>'1'];
const COMPARE = ['display'=>'Điểm chung', 'value'=>'2'];
const POINT = ['display'=>'Tính điểm', 'value'=>'3'];
public static function getAll() {
$oClass = new \ReflectionClass(__CLASS_... |
<?php
$lang['base_15_minute_load'] = '15 Minute Load';
$lang['base_1_minute_load'] = '1 Minute Load';
$lang['base_5_minute_load'] = '5 Minute Load';
$lang['base_access_denied'] = 'Access Denied';
$lang['base_access_denied_help'] = 'You do not have permission to view this page.';
$lang['base_account'] = 'Account';
$lan... |
<?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\redactor\widgets\Redactor as Redactor;
use yii\helpers\HtmlPurifier;
/* @var $this yii\web\View */
/* @var $model frontend\models\SetkabActivity */
$this->title = Yii::t('app', 'Kekuatan {modelClass}: ', [
'modelClass' => 'Setka... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
class RegistrationsController extends Controller
{
public function register(){
return view('registration.index');
}
public function store(Request $request){
$request->validate([
'name' => 'requi... |
<?php
namespace App\Http\Controllers\Admin;
use App\Event;
use App\Feedback;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\TalkRequest;
use App\Speaker;
use App\Talk;
class TalkController extends Controller
{
public function __construct()
{
$this->middleware('permission:talks');
... |
<?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license inf... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserNews extends Model
{
protected $table = 'news';
protected $fillable = ['category', 'news', 'img_id', 'news_views', 'name_id'];
public function getUserImgAttribute()
{
return "/storage/uploads/". $this->img_id;
}
... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace backend\controllers;
use Yii;
use backend\models\Goods;
use backend\models\GoodsSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use moonland\phpexcel\Excel;
use PHPExcel;
/**
* GoodsController implements the CRUD actions for Goods model.
*/
class Goods... |
<?php
namespace App\Http\Controllers;
use App\Discount;
use App\Item;
use App\ItemDetail;
use Illuminate\Http\Request;
use Cart;
class CartController extends Controller
{
function addToCart (Request $req)
{
try
{
$product = ItemDetail::with('item')->where('id', '=', $req->product_... |
<?php
declare(strict_types=1);
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... |
<?php
/**
* @var string $content
*/
echo '<html><body>' . $content . '</body></html>'; |
<?php
/*
* Dependencies
*/
// common
require_once 'common.php';
// base
require_once 'dom_reader.class.php';
class LibIMDB_ParserException extends LibIMDB_Exception {}
class LibIMDB_Parser extends LibIMDB_DOMReader
{
/*
* INTERNAL
* ===============================================
*/
/**
* Keys
*
... |
<?php
namespace App\Providers;
use Laravel\Passport\Passport;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
... |
<?php
require_once "checklogin.php";
if (isset($_POST['btnSitemap'])==true){
require_once "sett_seo_ajax.php";
header("location:main.php?p=sett_seo");
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<... |
<?php declare(strict_types = 1);
namespace Contributte\OAuth2Server\Scope;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
class DefaultScopeFinalizer implements IScopeFinalizer
{
/**
* @param ScopeEntityInterface[] $scopes
* @return ScopeEntityI... |
@extends('layouts.app')
@section('content')
<div class="flex justify-center">
<div class="w-8/12 bg-white p-6 rounded-lg">
<form action="{{route('posts')}}" method="POST" class="mb-4">
@csrf
<div class="mb-4">
<label for="body... |
<?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.
*/
return array(
'year' => ':count godina|:count godine|:count godina',
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/enums/conversion_action_counting_type.proto
namespace Google\Ads\GoogleAds\V1\Enums\ConversionActionCountingTypeEnum;
/**
* Indicates how conversions for this action will be counted. For more
* information, see https:... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>BM Shop admin</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="Preview page of Metronic Admin Theme #4 ... |
<div class="modal fade" id="newTicketModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document" style="width: 800px">
<div class="modal-content">
<div class="modal-header py-2" style="background: #abebc6 ">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class Currency
*
**/
class Currency extends Model
{
use SoftDeletes;
protected $fillable = ['country', 'symbol', 'code'];
} |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.