text stringlengths 2 1.03M |
|---|
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dypnsapi\V20170525\Models;
use AlibabaCloud\SDK\Dypnsapi\V20170525\Models\GetAuthTokenResponseBody\tokenInfo;
use AlibabaCloud\Tea\Model;
class GetAuthTokenResponseBody extends Model
{
/**
* @var string
*/
publ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductServiceUnit extends Model
{
protected $fillable = [
'name',
'created_by',
];
} |
@extends('layouts.master')
@section('title', 'トップページ')
@section('header')
@parent
@endsection
@section('content')
<main class="l-main">
<div class="p-top">
<div class="p-top__imgContainer"><img src=" {{ asset('img/business.jpeg') }}" alt="" class="p-top__imgContainer--img">
<p class="p-top__s... |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<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>Laravel</title>
<!-- Fonts -->
<link href="https://... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLogsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logs', function (B... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
class AdminController extends Controller
{
/**
* Display a listing of the resource.
*
* @return void
*/
public function __construct(){
$this->middleware('auth');
}
public function index()
{... |
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class Slug implements Rule
{
protected $message;
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Determine if the validation rule passes.
... |
<?php
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;
class PaketWisataSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker::create('id_ID');
// membuat data dummy sebanyak 10 record
for($... |
<?php
final class Braintree_PaymentInstrumentType
{
const PAYPAL_ACCOUNT = 'paypal_account';
const COINBASE_ACCOUNT = 'coinbase_account';
const EUROPE_BANK_ACCOUNT = 'europe_bank_account';
const CREDIT_CARD = 'credit_card';
const APPLE_PAY_CARD = 'apple_pay_card';
} |
@extends('layouts.master')
@section('title')
Listagem de Tipo de Público
@endsection
@section('content')
<div class="row">
<div class="col-md-8 col-sm-8">
<div class="table table-responsive">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Nome</th>
</tr>
... |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit527c34a4a2f8e0309eebc23e0a7aff2b
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... |
<?php
$scripts = [
'assets/javascripts/jquery-1.11.3.min.js',
'assets/javascripts/app.min.js',
];
?>
@section('script')
@foreach ($scripts as $key => $value)
<script src="{{ asset($value) }}"></script>
@endforeach
@show
<script src="{{ asset('assets/javascripts/init.js') }}"></script> |
<?php
session_start();
require_once('../../mysqli_connect.inc.php');
$page_title = "Contact Us";
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$subject = mysqli_real_escape_string($dbc, trim($_POST['subject']));
$body = mysqli_real_escape_string($dbc, trim($_POST['body']));
$email = mysqli_real_escape_string($dbc, t... |
<?php
/**
* @file
* Stub file for bootstrap_mark().
*/
/**
* Returns HTML for a marker for new or updated content.
*
* @param array $variables
* An associative array containing:
* - type: Number representing the marker type to display. See MARK_NEW,
* MARK_UPDATED, MARK_READ.
*
* @return string
* ... |
<?php
require_once('cons/path.php');
new path(); |
<?php
namespace App\Models;
use App\Support\Models\HasUuid;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* App\Models\Vendor
*
* @property string $id
* @property string|null $name
* @property string|null $slug
* @property bool $active
* @property int $site_max
* @... |
@extends('frontend.common.layout')
@section('content')
<section class="page_breadcrumbs cs background_cover section_padding_top_40 section_padding_bottom_40">
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<h2>Search Page</h2>
<ol ... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class RolesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$roles = [
['name' => 'admin', 'display_name' => 'Administrator', 'description' => 'A... |
<?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\Notifier\Tests\Channel;
use PHPUnit\Framework\TestCas... |
<?php
/**
* Copyright 2021 Jeremy Presutti <Jeremy@Presutti.us>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<?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\Cache\Tests\Marshaller;
use PHPUnit\Framework\TestCas... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php include ('includes/header.php'); ?>
<!-- loader -->
<div id="loading">
</div>
<!-- loader -->
<div class="wrapper">
<!-- navbar -->
<?php include ('includes/navbar.php'); ?>
<!-- loader -->
<div id="loading">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
protected $guarded = [];
} |
@extends('admin.layouts.master')
@section('title')
Danh sách loại phòng
@endsection
@section('content')
<div class="card shadow mb-4">
<div style="padding-top: 20px;margin-left: 8px" class="col-md-3 add">
<button class="btn btn-success" data-toggle="modal" data-target="#myModal"><i class="fas fa-plus-cir... |
<?php
declare(strict_types=1);
/**
* Copyright (c) 2020 Anatoly Pashin
*
* For the full copyright and license information, please view
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/b1rdex/farpost-test-task
*/
require __DIR__ . '/vendor/autoload.php';
use App\Lo... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Users extends Model
{
protected $table = 'users';
protected $fillable = ['fname', 'lname', 'email', 'password'];
} |
@extends('admin.layouts.app')
@section('panel')
@if(@$section->content)
<div class="row">
<div class="col-lg-12 col-md-12 mb-30">
<div class="card">
<div class="card-body">
<form action="{{ route('admin.frontend.sections.content', $key... |
<?php
namespace apinew\models\video;
class ActorArea extends \common\models\video\ActorArea
{
public function fields()
{
return [
'area_id' => 'id',
'area_label' => 'area'
];
}
public static function find()
{
return parent::find()->addOrderBy(['di... |
<?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
class MemcacheAntiDos
{
public $cache;
public $rate_limit_this_request = false;
public $rate_limit_api_request = false;
public $rate_limit_site_request = false;
public function __construct($config, &$memcache, $request='') {
$thi... |
<?php
namespace DDTrace\Tests\Integrations\Custom\NotAutoloaded;
use DDTrace\Tests\Common\SpanAssertion;
use DDTrace\Tests\Common\WebFrameworkTestCase;
final class IncomingUserInfoTest extends WebFrameworkTestCase
{
protected static function getAppIndexScript()
{
return __DIR__ . '/../../../Framework... |
<?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 App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = [
'text',
'author',
'category_id',
'img'
];
public function category() {
return $this -> belongsTo(Category::class);
}
public function tags() {
retur... |
<?php
namespace App\Imports;
use App\Uom;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\ToCollection;
use Illuminate\Support\Facades\Auth;
//use Maatwebsite\Excel\Concerns\ToModel;
class UomImport implements ToCollection
{
/**
* @param array $row
*
* @return \Illuminate\Database\E... |
<!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">
<title>Home</title>
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.ico">
<link href... |
<?php
declare(strict_types=1);
namespace Stk2k\PhitFlyer\Exception;
use Exception;
class WebApiCallException extends Exception implements PhitFlyerClientExceptionInterface
{
/**
* construct
*
* @param string $message
* @param Exception|null $prev
*/
public function __construct(string... |
<nav class="navbar navbar-expand-lg navbar-light" id="mainNav">
<div class="container px-4 px-lg-5">
<a class="navbar-brand" href="index.html">Start Bootstrap</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive... |
<?php declare(strict_types=1);
/**
* This file is part of the Graph-UML package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @since Release 1.2.0
* @author Laurent Laville
*/
use Bartlett\GraphUml\ClassDiagramBuilder;
use Ba... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">
<script src="{{asset('/static/admin/js/jquery-3... |
<?php
namespace Wooter\Wooter\Exceptions\Team;
use Exception;
class TeamNotFound extends Exception{
protected $message = 'Team not found';
} |
@extends('layouts.app')
@section('content')
@foreach ($posts as $post)
<div class="well">
<a href="/posts/{{$post->id}}">{{$post->title}}--> {{$post->body}}<br>{{$post->created_at}}</a>
</div>
@endforeach
{{$posts -> links()}}
@endsection |
<?php
declare(strict_types=1);
namespace Denpa\Levin\Tests\Notifications;
use Denpa\Levin\Notifications\RequestGetObjects;
class RequestGetObjectsTest extends NotificationTest
{
/**
* @var string
*/
protected $classname = RequestGetObjects::class;
/**
* @return void
*/
public fu... |
<?php
/*
* The MIT License
*
* Copyright 2021 Austrian Centre for Digital Humanities.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitati... |
<!-- Sidebar Menu -->
<nav class="mt-2">
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
<!-- Add icons to the links using the .nav-icon class
with font-awesome or any other icon font library -->
<li class="nav-item ... |
<?php
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
/* @var $this yii\web\View */
/* @var $generator yii\gii\generators\crud\Generator */
$urlParams = $generator->generateUrlParams();
$nameAttribute = $generator->getNameAttribute();
echo "<?php\n";
?>
use yii\helpers\Html;
use <?= $generator->indexWidget... |
<?php
namespace Ecotone\Messaging\Store\Document;
class InMemoryDocumentStore implements DocumentStore
{
public function dropCollection(string $collectionName): void
{
// TODO: Implement dropCollection() method.
}
public function addDocument(string $collectionName, string $documentId, object|... |
<?php
/**
* shopping portal services
*
*/
class Home extends MY_Controller {
public function index()
{
$this->load->view('includes/header');
$this->load->view('product/index');
$this->load->view('includes/footer');
}
} |
--TEST--
SPL: spl_autoload() with static methods
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--INI--
include_path=.
--FILE--
<?php
class MyAutoLoader {
static function autoLoad($className) {
echo __METHOD__ . "($className)\n";
}
}
spl_autoload_register('MyAutoLoader::auto... |
<?php
class model_barang extends ci_model{
function tampil_data()
{
$query= "SELECT b.barang_id,b.nama_barang,b.harga,kb.nama_kategori
FROM barang as b,kategori_barang as kb
WHERE b.kategori_id=kb.kategori_id";
return $this->db->query($query);
}
... |
<?php
class TestIterator2 implements Iterator
{
protected $data;
public function __construct(array $array)
{
$this->data = $array;
}
public function current()
{
return current($this->data);
}
public function next()
{
next($this->data);
}
public fu... |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
$pageId = "group_users";
include("util_group_menu.php");
include("util_group_profile.php");
?>
<?
$APPLICATION->IncludeComponent(
"bitrix:socialnetwork.group_users.ex",
"",
Array(
"PATH_TO_USER" => $arResult["PATH_TO_USER"],
"PATH_TO_G... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tags', function (B... |
<?php
include_once 'Conexao.class.php';
include_once 'Funcoes.class.php';
class Sala {
private $con;
private $objFuncoes;
private $idsala;
private $sala;
private $qtdMaxAlunos;
/**
*
*/
public function __construct() {
$this->con = new Conexao();
$this->objFunco... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBidsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bids', function (B... |
<?php
include '../../../sysconfig.php';
include MDL.'login/session.php';
if (isset($_GET['tampil_data'])) :
if ($_GET['distributor'] != '') {
$dis=$conn->query("SELECT kode, pengguna FROM mst_hak_akses WHERE kode='".$_GET['distributor']."'")->fetch_array();
$distributor=$dis[0];
$nama_distributor=$dis[1];
} else ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class DesaController extends Controller
{
public function index(Request $request){
$data_desa = \App\Desa::all();
return view('panel.desa.index',['data_desa'=> $data_desa]);
}
public function sejarahdesa(Request $requ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>
Payouts
</title>
<... |
<?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('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>{!! @trans('admin/category.page_title') !!} - {!! @trans('admin/category.create') !!}</h2>
<br>
<ul class="nav nav-tabs">
... |
<?php
//
// Description
// -----------
//
// Arguments
// ---------
//
// Returns
// -------
//
function ciniki_marketplaces_sync_objects($ciniki, &$sync, $tnid, $args) {
ciniki_core_loadMethod($ciniki, 'ciniki', 'marketplaces', 'private', 'objects');
return ciniki_marketplaces_objects($ciniki);
}
?> |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Newsletter;
use App\Http\Requests\Newsletter\ContactRequest;
use Illuminate\Support\Facades\Mail;
use App\Mail\ContactFormMail;
class NewsletterController extends Controller
{
/**
* Display a listing of the resource.
*
* @retur... |
<?php
/**
* [Laike System] Copyright (c) 2017-2020 laiketui.com
* Laike is not a free software, it under the license terms, visited http://www.laiketui.com/ for more details.
*/
require_once 'BaseAction.class.php';
class addFavoritesAction extends BaseAction
{
// 点击收藏
public function index()
{
... |
<?php
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com
*/
defined('BASEPATH') OR exit('No di... |
<?php
namespace App\Http\Controllers\API;
use Illuminate\Http\Request;
class PasswordResetController extends Controller
{
/**
* Write code on Method
*
* @return response()
*/
public function submitForgetPasswordForm(Request $request)
{
$request->validate([
... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'App\\Author' => $baseDir . '/app/Author.php',
'App\\Book' => $baseDir . '/app/Book.php',
'App\\BookCategory' => $baseDir . '/app/BookCategory.php',
'App\\BookC... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePortfoliosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('portfolios',... |
<?php
declare(strict_types=1);
namespace App\Models;
use Laravel\Jetstream\Membership as JetstreamMembership;
/**
* App\Models\Membership
*
* @property int $id
* @property int $team_id
* @property int $user_id
* @property string|null $role
* @property \Illuminate\Support\Carbon|null $created_at
* @property ... |
<?php
/**
* BaconQrCode
*
* @link http://github.com/Bacon/BaconQrCode For the canonical source repository
* @copyright 2013 Ben 'DASPRiD' Scholzen
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace BaconQrCode\Encoder;
use BaconQrCode\Common\BitArray;
use BaconQrCo... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session(... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', fun... |
<?php /* Smarty version Smarty-3.1.19-dev, created on 2016-06-02 06:55:02
compiled from "x/html/~widgets/ajax.form.tpl" */ ?>
<?php /*%%SmartyHeaderCode:191946530574bf4349d1323-59232843%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_depe... |
@extends('layouts.student')
@section('main')
<div class="relative min-h-screen bg-gray-100">
<!--
When the mobile menu is open, add `overflow-hidden` to the `body` element to prevent double scrollbars
Menu open: "fixed inset-0 z-40 overflow-y-auto", Menu closed: ""
-->
... |
<?php
use Illuminate\Database\Seeder;
use App\CnTipoImpuesto;
use Illuminate\Support\Facades\DB;
class cn_tipo_impuestoTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// Borramos los datos de la tabla
DB::table('cn_... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class thanhvien extends Model
{
protected $table = "thanhviens";
public function detai(){
return $this->belongsTo('App\detai','iddetai','id');
}
public function giangvien(){
return $this->belongsTo('App\giangvien','idgv','i... |
@extends('_layouts._layout_site')
@include('_layouts._includes._head')
@section('head')
@endsection
@section('titulo')
@lang('proprietarios.proprietarios')
@endsection
@section('topo_detalhe')
<div class="container-fluid topo">
<div class="row align-items-start">
{{-- Titlle --}}
... |
@include('admin.layouts.header')
<div id="wrapper">
@include('admin.layouts.sidebar')
<div id="content-wrapper" class="d-flex flex-column">
<div id="content">
<!-- TopBar -->
@include('admin.layouts.navbar')
@include('admin.layouts.container')
</div>
<!-- Footer -->
@include('ad... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
public function
} |
<?php
namespace luya\cms\widgets;
use luya\admin\helpers\I18n;
use luya\admin\ngrest\base\NgRestModel;
use Yii;
use luya\web\Composition;
use yii\helpers\Html;
use luya\helpers\ArrayHelper;
use luya\cms\models\NavItem;
use luya\helpers\Json;
use luya\helpers\Url;
/**
* CMS Lang Switcher Widget.
*
* This widget wi... |
<!-- //Footer -->
<!--contact -->
<div class="contact" id="contact">
<div class="container">
<h3 class="title clr title-fale">FALE CONOSCO</h3>
<div class=" contact-form col-lg-12 col-md-12 col-sm-12">
<form action="enviarMensagem.php" method="post">
... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model frontend\models\ShareUser */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Share Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="share-user-view">... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class tb_area extends Model
{
use HasFactory;
protected $fillable = [
'nome'
];
} |
<?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
{
... |
@extends('admin/layouts/default')
{{-- Page title --}}
@section('title')
Form Elements
@parent
@stop
{{-- page level styles --}}
@section('header_styles')
<!-- daterange picker -->
<link href="{{ asset('assets/vendors/daterangepicker/css/daterangepicker-bs3.css') }}" rel="stylesheet" type="text/css" />
... |
<?php namespace Fiftytwo\Edex;
use Illuminate\Support\ServiceProvider;
class EdexServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Bootstrap the application events
*
* @return void
*/
public function... |
<div class="titulo">Include vs Require</div>
<?php
ini_set('display_errors', 1);
echo 'Usando include com arquivo inexistente...<br>';
include('arquivo_inexistente.php');
echo 'Usando require com arquivo inexistente...<br>';
require('arquivo_inexistente.php');
echo 'Não achou mesmo... <br>'; |
<?php
namespace Adianti\Base\Lib\Validator;
use Adianti\Base\Lib\Core\AdiantiCoreTranslator;
use Exception;
/**
* CNPJ validation (Valid only in Brazil)
*
* @version 5.5
* @package validator
* @author Pablo Dall'Oglio
* @copyright Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)
... |
<?php
(defined('BASEPATH')) OR exit('No direct script access allowed');
/**
* Description of site
*
* @author Deepak
* This is Home file of Agent Module
* All Agent related activities are handled in this module
*/
class Agent extends MY_Controller {
function __construct()
{
parent::__construct()... |
<?php
//****************************************************************************************
//Description:
// Creates a permission of the specified type for the given token and property
//
// PARAMETERS:
// propertyID: ID of the property related to the permission
// token: token to associate the permi... |
<?php
if(!empty($items))
$count = count($items);
else
$count = 0;
?>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">
... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class BaseMailable extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void... |
<?php
namespace app\common\library\token\driver;
use app\common\library\token\Driver;
/**
* Token操作类
*/
class Mysql extends Driver
{
/**
* 默认配置
* @var array
*/
protected $options = [
'table' => 'user_token',
'expire' => 2592000,
'connection' => [],
];
... |
<script>
jQuery(document).ready(function() {
var $validator = jQuery("#edit_form").validate({
rules: {
@foreach ($def->getFields() as $field)
@if ($field->isPattern())
@continue
@endif
{!! $field->getClientsideV... |
<?php
/* TwigBundle:Exception:trace.html.twig */
class __TwigTemplate_06e37e1295de8d12c7a57e1d68b960d65917a4bd6af5a01a68dba2564bc9b9d8 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CapituloRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get t... |
@extends('layouts.global')
@section('title') Trashed Books @endsection
@section('content')
<div class="row">
<div class="col-md-12">
@if(session('status'))
<div class="alert alert-success">
{{session('status')}}
</div>
@endif
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCartItemsTable extends Migration
{
public function up()
{
Schema::create('cart_items', function (Blueprint $table) {
$table->bigIncrements('id');
$table... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Cita extends Model
{
use HasFactory;
protected $fillable = [
'fecha',
'estado',
'acceso_cliente',
'acceso_profesional',
'id_turno',
... |
@extends('frontend.layouts.app')
@section('content')
<div class="container">
<!--start responsive menu-->
@include('frontend.layouts.components.header')
<!-- Main Header -->
@include('frontend.layouts.components.navbar')
<div class="row equal-height">
<div class... |
<?php
namespace JMS\TranslationBundle\Tests\DependencyInjection\Compiler;
use JMS\TranslationBundle\DependencyInjection\Compiler\MountLoadersPass;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Depende... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta na... |
<?php
/**
* QualificationType
*
* PHP version 5
*
* @category Class
* @package TencentAds
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Marketing API
*
* Marketing API
*
* OpenAPI spec version: 1.3
*
* Generated by: https://github.com/swagger-api... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.