text stringlengths 2 1.03M |
|---|
<?php
namespace App\Admin\Controllers;
use App\Admin\Traits\CategoryTrait;
use App\Models\Category;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
class CategoryController extends AdminController
{
use CategoryTrait;
/**
* Title for cu... |
@extends('layouts.app')
@section('content')
<section class="content-header">
<h1>
Player Position
</h1>
</section>
<div class="content">
@include('adminlte-templates::common.errors')
<div class="box box-primary">
<div class="box-body">
... |
<?php
namespace Ejetar\ApiResponseFormatter\Http\Middleware;
use Ejetar\ApiResponseFormatter\Responses\CsvResponse;
use Ejetar\ApiResponseFormatter\Responses\XmlResponse;
use Ejetar\ApiResponseFormatter\Responses\YamlResponse;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class ApiResponseFormatter ... |
@extends('layouts.app')
@section('content')
<h1>Create Post</h1>
{!! Form::open(['action' => 'PostsController@store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) !!}
<div class="form-group">
{{ Form::label('title', 'Title') }}
{{ Form::text('title', '', ['class' =>... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\ResourceCollection;
class Tickets extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($requ... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2015-11-04 01:36:25 --> Severity: 8192 --> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead C:\xampp\htdocs\Floreria\system\database\drivers\mysql\mysql_driver.php 92
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TaskList</title>
<!-- Roboto font embadded -->
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">
<link rel="stylesheet" href="{{ asset('css/reset.css') }}">
<link rel="stylesheet" href="{{ asset('css/s... |
<?php include "classes.php" ?>
<?php
$customerId = SessionManager::getCustomerId();
$securityuserId = SessionManager::getSecurityUserId();
if($_SERVER["REQUEST_METHOD"] == "GET"){
if(isset($_GET["id"]) && is_numeric($_GET["id"]) && $_GET["id"] > 0){
$itemtypeid = $_GET["id"];
$itemList = Item::sear... |
<?php
session_start();
include("includes/main.php");
include_once("class/contactxuser.php");
$ocontactxuser=new contactxuser($conn);
$ocontactxuser->updateGroup($idContact,$tgroup);
$destino="location:favorites.php";
header($destino);
?> |
@extends('admin.layouts.main')
@section('title', $title)
@section('content')
@include('admin.resume.form', [
'title' => $title,
'action' => route('admin.manage.resume.store'),
'method' => 'POST',
])
@endsection |
<?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\bootstrap\Alert;
$this->title = '审核资料';
$this->params['breadcrumbs'][] = ['label'=>'租赁资料','url'=>['list']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="alert alert-info" role="alert">
<?=$tips?>
</div>
<?php
if( Yii::$app->s... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
namespace Bolt\Extension\TwoKings\HierarchicalRoutes\Routing;
use Silex\Application;
use Symfony\Component\Routing\Generator\ConfigurableRequirementsInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RequestContext;
/**
* Wraps a UrlGenerator to override UR... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact-app</title>
<link href="{{ asset('css/app.css') }}" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
@yield('main')
</div>
<script src="{{ asset('js/app... |
<?php
/**
*
* @package acp
* @version $Id: acp_thanks_reput.php,v 133 2011-12-04 10:02:51 Палыч$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
if (!defined('IN_PHPBB'))
{
exit;
}
class acp_thanks_reput_info
{
fu... |
<?php
/**
* modDevTools
*
* Copyright 2014 by Vitaly Kireev <kireevvit@gmail.com>
*
* @package moddevtools
*
* @var modX $modx
* @var int $id
* @var string $mode
*/
/**
* @var modx $modx
*/
$path = $modx->getOption('moddevtools_core_path',null,$modx->getOption('core_path').'components/moddevtools/').'mode... |
<?php
/**
* Sabel_Logger_File
*
* @category Logger
* @package org.sabel.logger
* @author Ebine Yutaka <ebine.yutaka@sabel.jp>
* @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp>
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*/
class Sabel_Logger_File extends Sabel_Obje... |
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light">
<div class="container">
<a class="navbar-brand" href="<?= base_url() ?>">CI Shop</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="f... |
<?php
/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Cache;
class IndenxInterview
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure ... |
<?php
function sql_raeume_create(
$mysqli,
$nr,
$bezeichnung,
$notiz
)
{
$sql = "insert into tbl_raeume(r_nr, r_bezeichnung, r_notiz)
values (?, ?, ?)";
if (!($stmt = $mysqli->prepare($sql))) {
echo "Prepare failed: (" . $mysqli->errno . ") " . $mysqli->error;
}
if (!$stmt->b... |
@extends('frontend/shared/one_column')
@section('content')
<div class="site_content">
<div class="site_width">
<div class="site_content_left_account">
@include('frontend.user.navigation_account')
</div>
<div class="site_content_right_account">
... |
<?php
/**
* UsersApiTest
* PHP version 5
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Signing Today Web
*
* *Signing Today* is the perfect Digital Signature Gateway. Whenever in Your workflow You need to add one or more... |
@extends('layouts.main')
<title>{{$consult->name}}-马陆葡萄网</title>
<meta name="keywords" content="{{$consult->meta_keyword}}" />
<meta name="description" content="{{$consult->meta_description}}" />
@section('content')
<link rel="stylesheet" href="/css/details.css">
@include('layouts.header')
<div class="news ... |
<br/>
{!! Form::open(['route'=>['authorization.role.user.store',$user->id]]) !!}
<div class="row">
<div class="form-group col-lg-6">
{!! Form::select('role_id',$roles,null,['class'=>'form-control text-uppercase','placeholder' => 'Selecionar Cargo'])!!}
</div>
<div class="form-group col-lg-4">
... |
<?php
namespace ModuleBZ\SchemaOrg\Thing\Place\Landform\BodyOfWater;
use ModuleBZ\SchemaOrg\Thing;
use ModuleBZ\SchemaOrg\Traits\TThing;
use ModuleBZ\SchemaOrg\Traits\Thing\TPlace;
use ModuleBZ\SchemaOrg\Traits\Thing\Place\TLandform;
use ModuleBZ\SchemaOrg\Traits\Thing\Place\Landform\TBodyOfWater;
use ModuleBZ\Schema... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2017 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* WPBakery WPBakery Page Builder shortcodes
*
* @package WPBakeryPageBuilder
*
*/
class WPBakeryShortCode_Vc_Cta_Button2 extends WPBakeryShortCode {
} |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "unit_pengolah".
*
* @property integer $kode
* @property string $unit_pengolah
* @property string $keterangan
*
* @property ArsipInaktif[] $arsipInaktifs
*/
class UnitPengolah extends \yii\db\ActiveRecord
{
/**
* @inhe... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Library\Log as MailLog;
class UserController extends Controller
{
/**
* Render user image.
*/
public function avatar(Request $request)
{
// Get current user
if ($request->uid != '0') {
$user ... |
<?php namespace App\Http\Requests\Finances;
use App\Http\Requests\Request;
class FormExchangeRequest extends Request {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the re... |
<?php
class BinaryInfixCondition extends ComplexCondition {
const OP_AND = "AND"; // PUEDE DEPENDER DEL DBMS
const OP_OR = "OR"; // PUEDE DEPENDER DEL DBMS
private $operator;
function BinaryInfixCondition( $op )
{
// CHECK 1: operador valido.
$this->operator = $op;
}
... |
<?php
namespace Admin\Repository\Question;
use Base\Repository\BaseDbRepository;
use Admin\Repository\Contract\Question\PaperRepositoryInterface as QuestionPaperRepositoryInterface;
class PaperRepository extends BaseDbRepository implements QuestionPaperRepositoryInterface
{
/*
* (non-PHPdoc)
* @see \Ad... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Jazzcash extends Model
{
use HasFactory;
private $merchant_id;
private $password;
private $integrity_salt;
private $currency;
private $language;
private $post_url;
fun... |
<?php
namespace Doctrine\Tests\ORM\Functional;
/**
* @group DDC-93
*/
class ValueObjectsTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
public function setUp()
{
parent::setUp();
try {
$this->_schemaTool->createSchema(array(
$this->_em->getClassMetadata(__NA... |
<?php
namespace App\Http\Controllers;
use App\Note;
use Illuminate\Http\Request;
use App\User;
use App\Appointement;
class NoteController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
... |
<?php
namespace CWM\BroadWorksConnector\Ocip\Models;
/**
* GroupCallCenterSupervisorReportingGetResponse
*
* Response to the GroupCallCenterSupervisorReportingGetRequest.
* Contains a table with column headings: "User Id", "Last Name",
* "First Name", "Hiragana Last Name", "Hiragana First Name".
... |
<svg <?php if(isset($class)) { echo "class=\"{$class}\" "; } ?>viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21ZM1 12C1 5.92487 5.92487 1 12... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Add New Film</div>
<div class="card-body">
<form method="POST" act... |
<?php
namespace Texlab\View;
class View implements ViewInterface
{
public $viewName;
public $viewData;
public $layout;
public $patternsPath;
public function setLayout($layout): View
{
$this->layout = $layout;
return $this;
}
public function setPatternsPath($patternsP... |
<!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>
<title>O'Hara Genogram</title>
<script src="Graphs/gen.js" type="text/javascript"></script>
</head>
<body bgcolor="#F0F0F0">
<br/>
<h1><center>O'H... |
<?php
// +---------------------------------------------------------------------+
// | OneBase | [ WE CAN DO IT JUST THINK ] |
// +---------------------------------------------------------------------+
// | Licensed | http://www.apache.org/licenses/LICENSE-2.0 ) |
// +----------... |
<?php
namespace Deskpro\API\GraphQL;
/**
* Class Type
*/
abstract class Type
{
/**
* @var bool
*/
protected $nullable;
/**
* @param bool $nullable
*
* @return TypeID
*/
public static function id($nullable = true)
{
return new TypeID($nullable);
}
/*... |
<?php
/**
* Facilitates adding of the WordPress editor as used on the Write and Edit screens.
*
* @package WordPress
* @since 3.3.0
*
* Private, not included by default. See wp_editor() in wp-includes/general-template.php.
*/
final class _WP_Editors {
public static $mce_locale;
private static $mce_settings =... |
@extends('layouts.appAlumno')
@section('content')
<html>
<head>
<title>FreeCAD model</title>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r50/three.min.js"></script>
<script>
var camera, cont... |
@extends('pages.layout.public')
@section('main-content')
<div class="container">
<div class="section-header">
<h1>Filter</h1>
<li class="nav-link nav-link-lg message-toggle beep"><i class="fas fa-filter"></i></a>
</li>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-6 col-m... |
<div id="kt_header" class="kt-header kt-grid__item kt-header--fixed ">
<!-- begin:: Header Menu -->
<!-- Uncomment this to display the close button of the panel
<button class="kt-header-menu-wrapper-close" id="kt_header_menu_mobile_close_btn"><i class="la la-close"></i></button>
-->
<div class="kt-header... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UsersController extends Controller
{
public function create() {
return view('admin.users.create');
}
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Auth extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('m_laporan');
$this->load->library('Pdf');
}
... |
<?php
namespace Bantenprov\User\Contracts;
/**
* The UserInterface interface
*
* @package Bantenprov\User
* @author bantenprov <developer.bantenprov@gmail.com>
*/
interface UserInterface
{
//
} |
<?php
/**
* Created by PhpStorm.
* User: hoanltm
* Date: 19/11/2018
* Time: 09:18
*/
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class Task extends Model
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
... |
<table class="action" align="center" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td>
<a... |
@extends('admin.panel')
@section('menu')
@include('admin.predictivo.menuPredictivo')
@endsection
@section('panel-contenido')
@endsection |
<?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\AdminBundle\Form;
us... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PersonController extends Controller
{
/**
* Create a new instance
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Return a view add person
*
... |
<!--MODAL-DETAILS-->
<div class="modal fade" id="edit-modal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header text-center d-block">
<button type="button" class="close" data-dismiss="modal" aria-labe... |
<?php
declare(strict_types=1);
namespace Tests\Runtime\Functions\Collection;
use PHPUnit\Framework\TestCase;
use function Fp\Collection\group;
final class GroupTest extends TestCase
{
public function testGroup(): void
{
$c = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4];
$this->assertEquals(
... |
<?php
namespace App\Console\Commands;
use App\Models\EcocashPayment;
use Http;
use Illuminate\Console\Command;
class CheckEcocashPayments extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'ecocash-payments:check';
/**
... |
<?php
namespace Tsubasarcs\Privacier\Tests;
use Orchestra\Testbench\TestCase as LaravelTestCase;
class TestCase extends LaravelTestCase
{
public function setUp()
{
parent::setUp();
$this->loadMigrationsFrom([
'--database' => 'testing',
'--realpath' => realpath(__DIR__... |
<?php
namespace App\Http\Requests\Loans;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class ClientUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
... |
<!-- Modal Dialog -->
<div id="whistoryModal" class="modal fade" tabindex="-1" role="dialog" data-backdrop="static">
<div class="modal-dialog" >
<div class="modal-content">
<div class="modal-header">
<h5>Work History Details </h5>
<button type="button" class="close" ... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\TranslationBundle\GedmoHandler;
use Doctrine\Common\Persistence\Mapping\Class... |
<?php namespace MotxApp\Events;
abstract class Event {
//
} |
<?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvide... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Eventclip extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this cont... |
<section class="content-header">
<h2>Stock In</h2>
<ol class="breadcrumb text-right">
<li><a href="#"></a></li>
<li class="active">Barang Masuk</li>
</ol>
</section>
<!-- Page Heading -->
<section class="content">
<p class="mb-4"></p>
<!-- DataTales Example -->
<div class="card shadow ">
<div class="card-h... |
@extends('layouts.app')
@section('title')
Store Detail Page
@endsection
@section('content')
<div class="page-content page-details">
<section
class="store-breadcrumbs mb-4"
data-aos="fade-down"
data-aos-delay="100"
>
<div class="container">
<div class="row">
... |
<?php
$tr_lib_dir = dirname(dirname(__FILE__)) . '/telerivet.php';
?>
<html>
<body style='padding:30px'>
<ul>
<li><a href='send_sms.php'>Send am SMS message</a></li>
<li><a href='add_contact.php'>Add or update a Telerivet contact via a web form</a></li>
</ul>
</body>
</html> |
<?php declare(strict_types=1);
/**
* This file is part of the Sarif-PHP-SDK package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bartlett\Sarif\Definition;
use Bartlett\Sarif\Internal\JsonSerializable;
use Bartlett\Sar... |
<upgrade>
<settings>
<setting>
<group>cache</group>
<module_id>profile</module_id>
<is_hidden>0</is_hidden>
<type>boolean</type>
<var_name>cache_blocks_design</var_name>
<phrase_var_name>setting_cache_blocks_design</phrase_var_name>
<ordering>1</ordering>
<version_id>3.6.0rc1</version_id>
... |
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <info@softlab24.com>
* @copyright (C) SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwor... |
<?php
define('EMAIL_FOR_REPORTS', '');
define('RECAPTCHA_PRIVATE_KEY', '@privatekey@');
define('FINISH_URI', 'http://');
define('FINISH_ACTION', 'message');
define('FINISH_MESSAGE', 'Thanks for Signing Up!
Welcome To Codesr Stack');
define('UPLOAD_ALLOWED_FILE_TYPES', 'doc, docx, xls, csv, txt, rtf, html, zip, jpg, jp... |
<?php
use Illuminate\Database\Seeder;
use App\Parroquias as Parroquia;
class ParroquiasTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Parroquia::create( [
'id'=>1,
'parroquia'=>' BELLAVISTA ',
'cod_parr'=... |
<?php $this->load->view('admin/partials/header'); ?>
<body class="bg-gradient-primary">
<div class="container">
<!-- Outer Row -->
<div class="row justify-content-center">
<div class="col-lg-6">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\ProCat */
$this->title = Yii::t('app', 'Update Pro Cat: {name}', [
'name' => $model->id,
]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Pro Cats'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label... |
<?= $this->render('/admin/partials/_edit', [
'model' => $model,
'model_name' => 'colour',
'default' => false,
]) ?> |
<div id="modal"
class="fixed z-20 top-0 left-0 w-screen h-screen flex items-center justify-center bg-gray-300 bg-opacity-60 transform scale-0 transition-transform duration-300">
<!-- Modal content -->
<div class="bg-white w-1/3 h-50 p-12">
<!--Close modal button-->
<button id="closebutton" ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Notify extends Model
{
protected $table = 'notify';
function getUser()
{
return $this->hasOne('App\Models\User', 'email', 'creator');
}
function getArticle()
{
return $this->hasOne('App\Models\Article'... |
<?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... |
<?php
namespace IMathAS\assess2\questions\answerboxes;
require_once __DIR__ . '/AnswerBox.php';
use Sanitize;
class MatrixAnswerBox implements AnswerBox
{
private $answerBoxParams;
private $answerBox;
private $jsParams;
private $entryTip;
private $correctAnswerForPart;
private $previewLocat... |
<?php
namespace Cheremhovo1990\Faker\Provider\nl_NL;
class Company extends \Cheremhovo1990\Faker\Provider\Company
{
/**
* @see https://nl.wikipedia.org/wiki/Lijst_van_beroepen
*/
protected static $jobTitleFormat = array(
'Aankondiger', 'Acceptant', 'Accountant', 'Accountmanager', 'Acrobaat',... |
<?php
namespace OtaInterface\Otaconnect\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for ItinTotalFare StructType
* Meta informations extracted from the WSDL
* - documentation: Total price of the itinerary
* @subpackage Structs
*/
class ItinTotalFare extends FareType
{
... |
<header x-data="{ mobileMenuOpen: false }" class="relative z-30 @if(Request::is('/')){{ 'bg-white' }}@else{{ 'bg-gray-50' }}@endif">
<div class="px-8 mx-auto xl:px-5 max-w-7xl">
<div class="flex items-center justify-between h-24 border-b-2 border-gray-100 md:justify-start md:space-x-6">
<div cla... |
<?php
namespace api\modules\v1\controllers;
use common\models\Collection;
use common\models\Photo;
use Yii;
use yii\filters\auth\CompositeAuth;
use yii\filters\auth\HttpBearerAuth;
use yii\helpers\ArrayHelper;
use yii\rest\ActiveController;
use yii\web\ForbiddenHttpException;
use yii\web\NotFoundHttpException;
use yi... |
<?php
namespace backend\controllers;
class AppController extends \yii\web\Controller
{
public function actionIndex()
{
return $this->render('index');
}
} |
<?php
namespace App\Repositories;
use App\Models\Pizza;
class PizzaRepository extends BaseRepository
{
/**
* @return string
*/
function model()
{
return Pizza::class;
}
} |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<br>
<!-- Main content -->
<div class="content">
<!-- Default box -->
<div class="container-fluid">
<div class="row">
<div class="col-md">
<!-- Profile Image -->
<div class="card... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-3">
@include('admin.layout.sidebar')
</div>
<div class="col-md-9">
<div class="card">
<div... |
<?php
/* @Security/Collector/security.html.twig */
class __TwigTemplate_1db63791325093b9da93b572bf929cc70761da67fb7dd8b89c3eb483a0b207b2 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("@WebProfile... |
<div class="pt-5">
<?php
if (is_array(@$btn)): ?>
<?php foreach ($btn as $key => $value): ?>
<a href="<?= $value['href'];?>" class="btn bg-white font-weight-bold mt-3 float-right text-dark"><?= $value['text']; ?></a>
<?php endforeach ?>
<?php endif ?>
<?... |
<?php
namespace App\Nova;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\ID;
use Illuminate\Http\Request;
use Laravel\Nova\Http\Requests\NovaRequest;
class OfferBranches extends Resource
{
public static $displayInNavigation = false;
/**
* The model the resource corresponds to.
*
*... |
<!-- Main content -->
<div class="main-content">
<!-- Top navbar -->
<nav class="navbar navbar-top navbar-expand-md navbar-dark" id="navbar-main">
<div class="container-fluid">
<!-- Brand -->
<a class="h4 mb-0 text-white text-uppercase d-none d-lg-inline-block" href="./index.html">Buku B... |
<?php
namespace App\Http\Controllers;
use App\Models\Company;
use App\Models\Employee;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller ... |
<!DOCTYPE html>
<?php
$__WS_ROOT__ = dirname(__FILE__, 3);
$__ROOT__ = dirname(__FILE__, 2);
require_once ($__WS_ROOT__ . '/common-php/library/global.php');
require_once ($__WS_ROOT__ . '/common-php/library/abap_ui.php');
GLOBAL_UTIL::UpdateSAPDescLangu();
$GLOBALS['TITLE_TEXT'] = 'Site Privacy';
?>
<html>
<head>... |
<?php
require_once('../../src/pdf-sign-cli.php');
$pdfSigner = new BSrE_PDF_Signer_Cli();
$pdfSigner->setDocument('../pdf/example.pdf');
$pdfSigner->readCertificateFromFile(
'../cert/devel-desember2019.p12',
'1234'
);
if(!$pdfSigner->sign())
echo $pdfSigner->getError(); |
<?php
namespace App\Presenters;
use App\Transformers\ElementSetTransformer;
use Prettus\Repository\Presenter\FractalPresenter;
/**
* Class ElementSetPresenter
*
* @package namespace App\Presenters;
*/
class ElementSetPresenter extends FractalPresenter
{
/**
* Transformer
*
* @return \League\Fr... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderProductTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_prod... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class TeamCtrl extends CI_Controller{
public function listteam(){
$this->load->model('my_team');
$data['team'] = $this->my_team->selectAll();
$this->load->view('templates/header');
$this->load->view('pages/team/list_team',$data);... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Debugbar Settings
|--------------------------------------------------------------------------
|
| Debugbar is enabled by default, when debug is set to true in app.php.
| You can overr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.