text stringlengths 2 1.03M |
|---|
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class TestRule implements Rule
{
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Determine if the validation rule passes.
*
* @param s... |
<?php
namespace App\Http\Controllers\Admin\System;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\System as Requests;
use App\Models\System\User;
use App\Models\System\Role;
use Mail;
class UserController extends Controller
{
/**
* 用户列表
* @param Request $r... |
<?php
namespace App\Http\Requests;
use App\Casino;
use Gate;
use Illuminate\Foundation\Http\FormRequest;
use Symfony\Component\HttpFoundation\Response;
class UpdateCasinoRequest extends FormRequest
{
public function authorize()
{
abort_if(Gate::denies('casino_edit'), Response::HTTP_FORBIDDEN, '403 Fo... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@inject('pt','App\Http\Controllers\Controller')
<title>{{ $pt->company()->name }}</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as... |
<?php
namespace backend\controllers;
use Yii;
use backend\models\Genre;
use backend\models\GenreSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* GenreController implements the CRUD actions for Genre model.
*/
class GenreController extends Controller
{
/**
... |
@extends('layouts.quizapp',[
'bodyClass'=>'construction-image'
])
@section('heads')
<link id="theme" rel="stylesheet" type="text/css" media="all" href="{{asset('assets/color-skins/color-skins/color10.css')}}" />
@endsection
@section('content')
<div class="page custom-pages" style="min-height: auto;">
<div class=" z... |
<?php
namespace app\common\model;
use think\Model;
class Register extends BaseModel
{
} |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCombined1539291458TaskStatusesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(! Schema::hasTable('task_statuses')) {
... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/tatiana.perry/Documents/grav-testing/grav-admin/user/accounts/tjperry07.yaml',
'modified' => 1557931392,
'data' => [
'state' => 'enabled',
'email' => 'tatiana.perry@bigcommerce.com',
'fullnam... |
<style>
a:hover {
text-decoration: underline;
}
</style>
<!-- page content -->
<div class="right_col" role="main">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Questions </h2>
<a href="<?php echo base_url(); ?>admin/ad... |
<?php
//Get all project service and sorting option
$tg_project_filterable = kirki_get_option('tg_project_filterable');
//Check filterable link option
$tg_project_filterable_link = kirki_get_option('tg_project_filterable_link');
if(!empty($tg_project_filterable_link) && !empty($term))
{
$tg_project_filterable = 1;... |
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Simpanan;
use App\User;
class NasabahController extends Controller
{
public function index(Request $request)
{
return User::role('nasabah')->search($request->q)->orderBy('id', 'desc')->... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
================================================== -->
<meta charset="utf-8">
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>G... |
<?php
namespace Inteve\AssetsManager;
class Bundler
{
/** @var array<string, IAssetsBundle> */
private $assetsBundles;
/** @var array<string, Bundle> */
private $requiredBundles = [];
/** @var Bundle[]|NULL */
private $sortedBundles;
/**
* @param IAssetsBundle[] $assetsBundles
*/
public... |
@component('mail::message')
# Introduction
-List1
-List2
The body of your message.
@component('mail::button', ['url' => ''])
Button Text
@endcomponent
Thanks,<br>
{{ config('app.name') }}
@endcomponent |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Classes extends Model
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fill... |
<?php
/**
* ShippingRateFirstItemRateTest
*
* PHP version 7.2
*
* @category Class
* @package Phobetor\Allegro
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Allegro REST API
*
* https://developer.allegro.pl/about Documentation is generated from [this](https://devel... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Actadetalle_model extends CI_Model{
var $compania;
var $table;
public function __construct(){
parent::__construct();
$this->usuario = $this->session->userdata('codusu');
$this->table = "an... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class EditProfile
{
private $auth;
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($req... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use Session;
use App\Http\Requests;
use Illuminate\Support\Facades\Redirect;
session_start();
class PhieuNhap extends Controller
{
function index()
{
$phieunhap = DB::table('phieunhap')
->join('nhacungcap', 'phie... |
<div class="py-5">
<div class="container-fluid">
<div class="row">
<div class="col-md-3 p-3">
<form class="p-3 shadowed" action="<?php echo base_url();?>beranda/katalog" method="GET">
<div class="form-group">
<label>Pencarian</label>
<input type="text"... |
<?php
namespace Fixture;
use Fixture\Logger;
class ErrorHandler
{
private $logger;
public function __construct(Logger $logger)
{
$this->setLogger($logger);
}
public function setLogger(Logger $logger)
{
$this->logger = $logger;
return $this;
}
public functio... |
<?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2021 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Net\Tests\Http\Headers;
use Aphiria\Collections\IImmutableDictionary;
use Aphiria\Collections... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SubCategory extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'subcates';
/**
* The attributes that are mass assignable.
*
* @var array
*/
pro... |
<?php
echo "hola que tal";
?> |
<?php
/**
* KirySaaS--------||bai T o o Y ||
* =========================================================
* ----------------------------------------------
* User Mack Qin
* Copy right 2019-2029 kiry 保留所有权利。
* ----------------------------------------------
* ========================================================... |
<?php
/**
* This file is part of the SevenShores/NetSuite library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://githu... |
@extends('layouts.app')
@section('contenido')
<div class="card">
<div class="card-header">
<h3 class="text-center"> Listado de facturas pendientes de pago</h3>
</div>
<div class="card-body">
<table id="tablavivienda" class="table table-striped table-condensed">... |
<?php
/**
* Memcached HealthCheckInterface client
*
* @author Ian.H <ian@ianh.io>
*/
namespace Giffgaff\ServiceHealthCheck;
use Giffgaff\ServiceHealthCheck\Exceptions\InvalidOperationException;
use Giffgaff\ServiceHealthCheck\Interfaces\HealthCheckInterface;
use GuzzleHttp\Psr7\Response;
use Memcached;
use Psr\Lo... |
<?php
declare(strict_types=1);
namespace muqsit\vanillagenerator\generator\object\tree;
use pocketmine\block\Block;
use pocketmine\block\BlockLegacyIds;
use pocketmine\block\utils\TreeType;
use pocketmine\block\VanillaBlocks;
use pocketmine\math\Facing;
use pocketmine\utils\Random;
use pocketmine\world\BlockTransact... |
<?php
/*
* This file is part of the symfony package.
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Initialization for propel and i18n propel integration.
*
*... |
<?php
namespace SoliDry\Helpers;
use SoliDry\Extension\JSONApiInterface;
/**
* Class Errors
*
* @package SoliDry\Helpers
*/
class Errors
{
/**
* @param string $entity
* @param $id
* @return array
*/
public function getModelNotFound(string $entity, $id): array
{
return [
... |
<?php
namespace Bow\Http;
use Bow\Session\Session;
use Bow\Support\Collection;
use Bow\Support\Str;
use Bow\Validation\Validate;
use Bow\Validation\Validator;
class Request
{
/**
* The Request instance
*
* @static self
*/
private static $instance;
/**
* All php instance
*
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Document extends Model
{
protected $fillable = ['title','description', 'file', 'course_name_id'];
} |
<?php
namespace PHPJava\Tests\Cases;
use PHPJava\IO\Standard\Output;
class OuterClassTest extends Base
{
protected $fixtures = [
'OuterClassTestOuterClass',
'OuterClassTest',
];
public function testCallMain()
{
$calculatedValue = static::$initiatedJavaClasses['OuterClassTest']... |
<?php
require 'config.php';
require 'inc/session.php';
require 'inc/items_core.php';
if($_session->isLogged() == false)
header('Location: index.php');
$_items->set_session_obj($_session);
$_page = 5;
if(isset($_POST['act'])) {
// Search count
if($_POST['act'] == '1') {
if(!isset($_POST['val']) || $_POST['val'] =... |
<?php
namespace Rabpack\Routing\Api\Traits;
trait HasBuildMethod
{
/**
* @param string $route
* @param string $actions
* @param string $httpVerb
*/
private function addRoute(string $route, string $actions, string $httpVerb): void
{
$routeFill = implode('/',$this->prefix).'/'... |
<?php
declare(strict_types=1);
/*
* This file is part of the Doctrine Behavioral Extensions package.
* (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
... |
<?php
/**
* Constraints for the System (sys_*) table island.
*
* @package inc/system/db/constraints.sys
* @since 2006-06-06
* @version 2006-06-06
* @copyright Cylab 2006
* @author Lukas Kalinski
*/
//define('CONSTR_SYS__ERRID_REGEX', '/[a-z0-9_]{1,100}/');
?> |
<div>
<div>
<img src="{{$logo}}">
</div>
</div> |
<?php
namespace app\services\user\contract\exception\repository;
class NotFound extends \Exception
{
} |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call([
Cate... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class GrupoController extends Controller
{
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('admin.grupo');
}
} |
<?php
namespace Acme\DesignBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->asse... |
<?php
session_start();
if ( $_SESSION["auth"] != true ) {
header("HTTP/1.0 403 Forbidden");
die;
}
$htmlfiles = glob("../../*.html");
$response = [];
foreach ($htmlfiles as $file) {
array_push($response, basename($file));
}
echo json_encode($response); |
<?php
namespace Agna\Yii2\Db;
use Yii;
/**
* Active record extensions
*
* Changes:
* + Configurable active query class, no need to override find().
* + Configurable database connection.
*
* @author Agoston Nagy
*/
trait ActiveRecordTrait
{
/**
* Database connection to use (default: '')
*
*... |
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\PreUpdate;
use Doctrine\ORM\Mapping\PrePersist;
use App\Repository\QuestionAnswerRepository;
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
/**
* @ORM\Entity(repositoryClass=QuestionAnswerRepository::class)
* @ORM\HasLifecycleCa... |
<?php
use App\Helpers\Path;
use Dotenv\Dotenv;
$dotenv = new Dotenv(Path::root());
$dotenv->load(); |
<?php
require 'Predis/Autoloader.php';
Predis\Autoloader::register();
function getrand() {
// $fd = fopen("/dev/urandom","r");
// $data = fread($fd,16);
// fclose($fd);
$data = microtime();
return md5($data);
}
function isLoggedIn() {
global $User, $_COOKIE;
if (isset($User)) return true;... |
<?php
namespace Common\Model;
use Common\Model\BaseModel;
/**
* 调拨单日志表模型
*/
class ErpAllocationOrderLogModel extends BaseModel
{
/**
* @param array $where
* @param string $field
* @param int $limit
* @param int $offset
* @param string $order
* @return array
* @author senpai
... |
<div class="mt-5 md:mt-0 md:col-span-2">
<div class="px-4 py-5 bg-white sm:p-6 shadow rounded-md">
<div class="grid grid-cols- gap-6 mt-0">
<div class="col-span-6 sm:col-span-4">
<label class="block font-medium text-sm text-gray-700" for="name">1日目か2日目どっち?(2020/02/26 or 2020/02/2... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateRatesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('rates', function (... |
@extends('layouts.app')
@section('body-class','login-page')
@section('title','Login')
@section('content')
<div class="page-header header-filter" style="background-image: url('{{asset('/images/server.jpg')}}'); background-size: cover; background-position: top center;">
<div class="container">
<di... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call('AuthSeeder');
app('cache')->flush();
}
} |
@extends('main')
@section('title','| Create New Post')
@section('stylesheets')
{!! Html::style('css/parsley.css') !!}
@endsection
@section('content')
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Create Post</h1><hr>
{!! Form::open(['route' => 'posts.store','data-parsley-validate' => '']) !... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ExemplaireController extends Controller
{
//
} |
<?php
//$skrg = date('Y-m-d');
include_once '../../lib/config.php';
$id_barang = $_GET['id_barang'];
# HAPUS DATA
$hapusbarang = "DELETE FROM t_barang WHERE id_barang='$id_barang'";
mysql_query( $hapusbarang );
?> |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\Auth;
use App\TinTuc;
use App\UserAdmin;
class Authcontroller extends Controller
{
//
public function getLogin(){
return view('admin.dangnhap');
}
public function postLo... |
<?php
/* @WebProfiler/Collector/form.html.twig */
class __TwigTemplate_8a40544c7694b0ab23f13ea21215a4ae3ec824320256469207974f25c839fe22 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("@WebProfiler... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Buyer extends User
{
use HasFactory;
public function transactions(){
return $this->hasMany(Transaction::class);
}
} |
<?php
/**
* Platine Cache
*
* Platine Cache is the implementation of PSR 16 simple cache
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2020 Platine Cache
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... |
@extends('layouts.index')
@section('content')
<!-- Main content -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<!-- Form Element sizes -->
<div class="card card-success">
<div cl... |
<?php
declare(strict_types=1);
namespace App\Event\Api;
class ApiArgumentPreDeleteEvent extends ApiArgumentEvent
{
} |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Menu extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('Menu_model', 'menu');
}
public function index()
{
... |
<?php
namespace net\authorize\api\contract\v1;
/**
* Class representing AuthenticateTestResponse
*/
class AuthenticateTestResponse extends ANetApiResponseType
{
} |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%user}}`.
*/
class m200220_180044_create_user_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%user}}', [
'id' => $this->primaryKey(),
'email' => $this->s... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class DoctoresTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('doctores')->insert([
[
'nombre'=>'juan1',
... |
<?php
namespace Webkul\Attribute\Http\Controllers;
use Webkul\Admin\DataGrids\AttributeFamilyDataGrid;
use Webkul\Attribute\Repositories\AttributeFamilyRepository;
use Webkul\Attribute\Repositories\AttributeRepository;
class AttributeFamilyController extends Controller
{
/**
* Contains route related configu... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
namespace App\Http\Resources\Product;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integri... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTripSchedulesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('trip_sche... |
<?php
namespace MoneyPag\JsValidation\Test\Facades;
use MoneyPag\JsValidation\Tests\TestCase;
use MoneyPag\JsValidation\Facades\JsValidatorFacade;
class JsValidatorFacadeTest extends TestCase
{
function testGetFacadeAccessor()
{
/*
|------------------------------------------------------------... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Certificado extends CI_Controller {
public function index() {
//load database libray manually
$this->load->database();
$this->load->helper('url');
//load Model
$this->load->model('CertificadoModel');
//load regis... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class ViradianConfirmation extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @retur... |
<div class="w3-top" style="z-index: 1">
<!-- large screen navbar -->
<nav class="navbar navbar-default w3-hide-small w3-hide-medium w3-border-blue w3-bottombar" style="padding: 0 50px 0 20px; height: 60px">
<div class="container-fluid row">
<!--sub menu trigger-->
<d... |
<?php
include "koneksi.php";
$nick=trim($_POST['nick']);
$email=trim($_POST['email']);
$pass=md5($_POST['pass']);
if ($nick == "" || $email == "" || $pass == ""){
echo "no";
exit();
}
$periksadulu=$koneksi->prepare("select * from user where nick=:nick || email=:email");
$periksadulu->BindParam(":nick",$nick);
$periks... |
<?php
/**
* VserversserverNamestatusApiTest
* PHP version 5
*
* @category Class
* @package WowzaApi
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* OpenAPI sp... |
<?php
namespace App\Exports;
use App\anticipo;
use App\provision;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\FromQuery;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Maatwebsite\Excel\Concerns\WithHeadings;
class AnticipoExport implements... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostRepliesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('post_replie... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTaskStatusesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('task_statu... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="shortcut icon" href="favicon.png">
<title>Entre em contato</title>
<!-- METATAGS -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="des... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php
/*
* Class for enabling profiler through out the application
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author Zeeshan M
*/
class ProfilerEnabler
{
// enable or disable profiling based on config values
function enableProfiler(){
$CI = &get_instan... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
use MillionsSaving\Models\Accounts\SharesAccSetting;
$factory->define(SharesAccSetting::class, function (Faker $faker) {
return [
'setting_key' => $faker->text($maxNbChars = 5),
'setting_value' => $fa... |
<div>
<div
class="flex px-2 py-1 mt-2 bg-gray-700 border border-gray-200 rounded-t-md"
:class="{ 'rounded-b-md' : open === false }"
>
<svg
class="w-6 mr-2 text-green-500 bg-white rounded-full"
x-show="editMode"
xmlns="http://www.w3.org/2000/svg"
... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Admin Bug Cinema</title>
<link rel="stylesheet" href="https://cd... |
<?php
//============================================================+
// File name : tcpdf_static.php
// Version : 1.1.4
// Begin : 2002-08-03
// Last Update : 2019-11-01
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/cop... |
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title>
<!-- Fonts -->
<link href... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Partido extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'partidos';
/**
* The database primary key value.
*
* @var string
*/
protected $primaryKey ... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use Auth;
use Session;
use App\User;
use DB;
class LoginController extends Controller
{
/*
|----------------------------------------------------------... |
<?php
namespace MigrateToFlarum\FakeData\Validators;
use Flarum\Foundation\AbstractValidator;
class FakeDataParametersValidator extends AbstractValidator
{
protected function getRules(): array
{
return [
'user_count' => 'required|integer|min:0',
'user_ids' => 'nullable|array',... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Курс';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="course-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Добав... |
@extends('layouts.admin-master')
@section('title', 'System Users')
@section('content')
<!--inner block start here-->
<div class="inner-block">
<div class="col-md-8 align-self-center">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url('/admin') }}"> Administrator </a></li>
... |
<?php
class HTMLPurifier_AttrDef_CSS_PercentageTest extends HTMLPurifier_AttrDefHarness
{
function test() {
$this->def = new HTMLPurifier_AttrDef_CSS_Percentage();
$this->assertDef('10%');
$this->assertDef('1.607%');
$this->assertDef('-567%');
$this->assertDef(' 100% ', ... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
<?php
require_once 'vendor/autoload.php';
$user = '';
$pass = '';
$host = '';
$ping_text = '';
$client = new JAXL(array(
'log_path' => './jaxl.log',
'jid' => $user.'@'.$host,
'pass' => $pass,
'log_level' => JAXL_DEBUG
... |
<?php
class RecipeParser_Parser_Elanaspantrycom {
static public function parse($html, $url) {
$recipe = RecipeParser_Parser_Microformat::parse($html, $url);
libxml_use_internal_errors(true);
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
$doc = new DOMDocument();
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Item extends Model {
protected $fillable = [
'name', 'description', 'price', 'num', 'category', 'image'
];
public $timestamps = false;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.