text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Pass extends Model
{
protected $filllable = [
'remarks',
'status'
];
public function user()
{
return $this->belongsTo(User::class);
}
public function driver()
{
return $this->belongsTo(Dri... |
<?php
return [
'1' => 'Hall',
'2' => 'Table'
]; |
<?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\Serializer\Tests\Encoder;
use PHPUnit\Framework\TestC... |
<?php
/* TwigBundle:Exception:trace.html.twig */
class __TwigTemplate_71135ebce51e7acbc6d45659b74226d6785d1ba3a751ad92e12ff3359e35cd96 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
use App\User;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$user = new User();
$user->username = 'imammufiid';
$user->firstname = 'Imam Mufii... |
<?php
/**
* @copyright (c) JTL-Software-GmbH
* @license http://jtl-url.de/jtlshoplicense
*/
ob_start();
require_once __DIR__ . '/syncinclude.php';
// configuration
require_once __DIR__ . '/../includes/config.JTL-Shop.ini.php';
require_once __DIR__ . '/../includes/defines.php';
error_reporting(SYNC_LOG_LEVEL);
// b... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\File;
use Validator;
class FilesController extends Controller
{
public function index()
{
return File::all();
}
public function store(Request $request)
{
// $validator = Validator::make($req... |
<?php
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/)
//
// 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://w... |
@extends('main')
@section('title', '| Edit question')
@section('stylesheets')
{!! Html::style('css/select2.min.css') !!}
<script src="{{ URL::to('src/js/vendor/tinymce/js/tinymce/tinymce.min.js') }}"></script>
<script>
var editor_config = {
height : "120",
path_absolute : "... |
<link href="<?php echo base_url(); ?>admin/assets/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url(); ?>admin/assets/css/core.css" rel="stylesheet" type="text/css" />
<script src="<?php echo base_url(); ?>admin/assets/js/jquery.dataTables.min.js"></script>
<s... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Invoices extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model("user_model");
$this->load->model("invoices_model");
$this->load->model("team_model");
$this->load->model("projects_... |
<?php
declare(strict_types=1);
namespace PTS\Validator\Validators;
class DateTimeValidator
{
public function __invoke($value): bool
{
return $value instanceof \DateTime;
}
} |
<?php
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=$namafile.xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:
collapse;width:201pt" width="267">
... |
<?php
if (\PHP_VERSION_ID < 70400) {
echo sprintf("Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is %d.%d.%d.\n", PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION);
exit(1);
}
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/... |
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
... |
<?php
namespace Kirimemail\Clearbit\Exceptions;
class ClearbitException extends \Exception
{
} |
<?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<int, class-string|string>
*/
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="panel panel-primary">
<div class="panel-heading">Terms of Service</div>
<div class="panel-body">
<p>
Welcome to the errorHandle service(the “Service”). Our Terms of Service are the rules tha... |
<?php
/**
* This is a Simox pagecontroller.
*
*/
// Include the essential config-file which also creates the $simox variable with its defaults.
include(__DIR__.'/config.php');
// Define what to include to make the plugin to work
$simox['stylesheets'][] = 'css/source.css';
// Create the object to display sourcec... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Api\V2010\Account\Call;
use Twilio\ListResource;
use Twilio\Options;
use Twilio\Values;
use Twilio\Version;
class NotificationList extends ListResource {
/**
* Construct ... |
<?php
namespace Transmissor\Traits;
use Transmissor\Models\Messenger\Message;
use Transmissor\Models\Messenger\Models;
use Transmissor\Models\Messenger\Participant;
use Transmissor\Models\Messenger\Thread;
use Illuminate\Database\Eloquent\Builder;
trait Messagable
{
/**
* Message relationship.
*
*... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Result extends Model
{
protected $fillable = [
'event_id',
'sport_id',
'category',
'teamA',
'teamB',
'a_set1',
'b_set1',
'a_set2',
'b_set2',
'a_set3',
'b_set3... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Pencatatan;
use App\Student;
use App\PaymentPeriodeDetail;
use App\FinancingCategory;
use App\PaymentPeriode;
use App\Payment;
use App\Major;
use PDF;
use DB;
class RekapController extends Controller
{
... |
<?php
declare(strict_types=1);
namespace Prooph\Bundle\EventStore\Factory;
use Prooph\EventStore\EventStore;
use Prooph\EventStore\Exception\RuntimeException;
use Prooph\EventStore\Plugin\Plugin;
use Psr\Container\ContainerInterface;
class DefaultEventStoreFactory implements EventStoreFactory
{
public function ... |
<?php
namespace Illuminate\Tests\Broadcasting;
use Exception;
use Illuminate\Broadcasting\Broadcasters\Broadcaster;
use Illuminate\Container\Container;
use Illuminate\Contracts\Routing\BindingRegistrar;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Mockery as m;
use PHPUnit\Framework\TestCa... |
<?php
if (file_exists(__DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php')) {
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'vendor' . \DIRECTORY_SEPARATOR . 'autoload.php';
}
spl_autoload_register(function ($class) {
$name = str_replace('AntChain\\IAM\\', '', $class);
$file ... |
<?php
namespace App\Http\Controllers;
use App\Company;
use App\UserTemplateField;
use App\UserTemplateModule;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class CompaniesController extends Controller
{
/**
* @var int clave del módulo
*/
private $module_key = 1;
/**
* ... |
<?php
/**
* ShellDispatcherTest file
*
* PHP 5
*
* CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
* Copyright 2005-2012, Cake Software Foundation, Inc.
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyrigh... |
<?php
function menu(){
add_theme_page(
'Shapely Child',
'Shapely Child',
'edit_theme_options',
'eclipse_recruitment_theme',
'my_plugin_function'
);
}
add_action('admin_menu','menu');
function my_theme_enqueue_styles() {
$parent_style = 'shapely-style';
wp_enqueue_style($parent_style,
get_... |
<?php
namespace App\Http\Requests\Api;
class FriendRequest extends BaseRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
"api_id" => "required",
"api_key" => "required",
... |
<?php
namespace app\api\service;
use think\Exception;
class WxMessage
{
private $sendUrl = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?" .
"access_token=%s";
private $touser;
//不让子类控制颜色
private $color = 'black';
protected $tplID;
protected $page;
protected $f... |
<?php
namespace App\Http\Requests\pengunjung;
use Illuminate\Foundation\Http\FormRequest;
class StoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
... |
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2014 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Component\Router;
defined('JPATH_PLATFORM') or die;
/**
* Component routing interface
*... |
<?php
namespace Pforret\PhpMarkdownWriter\Tests;
use Pforret\PhpMarkdownWriter\PhpMarkdownWriter;
use PHPUnit\Framework\TestCase;
class PhpMarkdownWriterTest extends TestCase
{
public function testMarkup()
{
$writer = new PhpMarkdownWriter();
$this->assertEquals(
"this is a [www.... |
{!! Form::open(array('url'=>'compras/ingreso','method'=>'GET','autocomplete'=>'off','rol'=>'search')) !!}
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" name="searchText" placeholder="Buscar..." value="{{$searchText}}">
<span class="input-group-btn">
<button type... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\tables\Tasks */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="tasks-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
... |
<!-- animsition-overlay start -->
<main class="animsition-overlay" data-animsition-overlay="true">
<!-- page-head start -->
<section id="up" class="page-head flex-min-height-box dark-bg-2">
<!-- page-head-bg -->
<div class="page-head-bg overlay-loading2" style="background-image: url(<?php echo base_url(... |
<?php
/**
* Created by PhpStorm.
* User: del
* Date: 1/8/2019
* Time: 3:53 PM
*/
namespace Modules\Tools\Traits;
trait HasName{
/**
* Get name by locale
* @param $value
* @return mixed
*/
public function getNameAttribute($value){
return $value ? $value : $this->{tool_title_lo... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRelationshipTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('relationship', function (Blueprint $table) {
... |
<?php
function maviTmViewbral($instance,$query){
$maviTm =& MaviTmLoads::factory('MaviTmLoads');
echo '<ul class="bral">';
while ($query->have_posts()) {
$query->the_post();
?><li class="brali"><a href="<?=get_permalink();?>" class="bralpostA" title="<?=the_title_attribute('echo=0');?>"><?=karakterKirp(ge... |
@extends('layouts/admin')
@section('content')
<h2 class="page-header">Export</h2>
<a href="{{url('member/export-member', $loggedin->company_id)}}" class="btn btn-primary">Export Members</a>
@stop |
<?php
namespace W3TC;
if ( !defined( 'W3TC' ) )
die();
?>
<?php include W3TC_INC_DIR . '/options/common/header.php'; ?>
<p>
<?php echo sprintf( __( 'The plugin is currently <span class="w3tc-%s">%s</span> in <strong>%s%s</strong> mode.', 'w3-total-cache' )
, $enabled ? "enabled" : "disabled"
, $enabled ? __( ... |
<?php
if (isset($_SESSION['id'])){
header('location: /home/homepage');
} else{
?>
<div class="main">
<div class="container">
<div class="wrapper">
<form id="submit-form" action="/login/login_submit" method="post">
<span class="heading">Account Log... |
<?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace JoliCode\Slack\Api\Model;
class ChatPostMessagePostResponse200 extends \ArrayObject
{
/**
* @var string
*/
protected $channel;
/**
* @var ObjsMessage
*/
pro... |
<?php
namespace Imbo\Image;
use Imbo\Image\InputLoader\InputLoaderInterface;
use Imbo\Exception\InvalidArgumentException;
use Imagick;
/**
* Loader manager
*
* This class manages loading of images by calling out to registered plugins to actually load the
* image.
*
* A plugin should return an Imagick instance w... |
@if ($paginator->hasPages())
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<ul class="pagination-list">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li><a disabled class="pagination-previous">«</a></li>
@else
... |
<?php
/**
* TestFailureType
*
* PHP version 5
*
* @category Class
* @package FrankHouweling\AzureDevOpsClient\Test
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Test
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-... |
<?php
/**
* The template for displaying Author info
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since 1.0.0
*/
if ( (bool) get_the_author_meta( 'description' ) ) : ?>
<div class="author-bio">
<h2 class="author-title">
<span class="author-heading"><?php echo esc_html( sprintf( __( 'Published by %s'... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Laporan extends CI_Model
{
public function getLaporanTahunan($tahun)
{
// SELECT * FROM peminjaman
$sql = "SELECT nama_prasarana as y,
diterima as a,
ditolak as b
FROM prasarana
LEFT OUTE... |
<?php
namespace common\modules\content\models;
use Yii;
/**
* This is the model class for table "shop".
*
* @property integer $id
* @property string $photo
* @property string $capture
* @property string $price
*/
class Shop extends CommonModel
{
/**
* @inheritdoc
*/
public static function ta... |
<?php
/**
* PHPExcel
*
* Copyright (C) 2006 - 2014 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... |
<?php
namespace App\Repositories;
use App\Employee;
class AttritionRepository
{
public static function monthly(int $months = 12)
{
$static = new self();
$data = [];
for ($i = $months - 1; $i >= 0; $i--) {
$date = now()->subMonths($i);
$actives = $static->activ... |
<?php
namespace Respect\Validation\Rules;
class PerfectSquare extends AbstractRule
{
public function validate($input)
{
return is_numeric($input) && floor(sqrt($input)) == sqrt($input);
}
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLikeDislikeAnswersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('like... |
<?php
/**
* This file is part of the Tracy (https://tracy.nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare (strict_types=1);
namespace RectorPrefix20211211\Tracy;
/**
* Logger.
*/
interface ILogger
{
const DEBUG = 'debug', INFO = 'info', WARNING = 'warning', ERROR = 'error', EX... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... |
<?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\cli\output\helpers;
use mako\cli\output\Output;
use RuntimeException;
/**
* Table helper.
*
* @author Frederic G. Østby
*/
class Table
{
/**
* Output instance.
*
* @var \mako\cli\output\Output... |
<div class="row">
<div class="col-md-12">
<div class="portlet box green">
<div class="portlet-title"><div class="caption"><?=$name?></div></div>
<div class="portlet-body">
<?php echo validation_errors();?>
<?=form_open(NULL, array('class' => 'form-h... |
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: spacecp_follow.php 32667 2013-02-28 07:07:30Z monkey $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
$ops = array('add', 'del', 'bkname', 'checkfeed', 'relay', 'getfeed', 'd... |
<?php
namespace App\DataFixtures;
use App\DataFixtures\LanguageFixtures;
use App\DataFixtures\ModeFixtures;
use App\DataFixtures\UserFixtures;
use App\Entity\ClassifiedCard;
use App\Entity\Card;
use App\Entity\Image;
use App\Entity\Nomenclature;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Common\Persisten... |
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class MRoomLib
{
protected $ci;
public function __construct()
{
$this->ci = &get_instance();
$this->ci->load->Model('BasicModel', 'Main');
$this->ci->Main->myConstruct('main');
$this->ci->load-... |
<div class="container">
<div class="row">
<div class="col-md-12">
<!-- DATA TABLE -->
<h3 class="title-5 m-b-35"><?php echo $page_title?></h3>
<div class="table-data__tool">
<div class="table-data__tool-left">
<div class="rs-select2--light rs-select2--md">
... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/csteuben/Github/grav-skeleton-boxify-site/system/languages/ca.yaml',
'modified' => 1508348582,
'data' => [
'FRONTMATTER_ERROR_PAGE' => '---
title: %1$s
---
# S\'ha produït un error: Frontmatter invàlid
Rut... |
<?php
namespace zikwall\easyonline\modules\core\assets\jquery;
use yii\web\AssetBundle;
class JqueryAutosizeAsset extends AssetBundle
{
/**
* @inheritdoc
*/
public $sourcePath = '@bower/autosize';
/**
* @inheritdoc
*/
public $js = ['jquery.autosize.min.js'];
/**
* @inh... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class KelolaRole extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model("model_role");
$this->load->model("model_barang");
$this->load->library("session");
$this->load->libr... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;
use App\Place;
use App\Products;
use App\ProductType;
use Illuminate\Http\Request;
class FrontController extends Controller
{
public function index(){
$news_list=DB::table('news')->orderBy('id','desc')->take(3)->get();
return... |
<?php
/*
* Copyright 2014 Google Inc.
*
* 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 required by applicable law or agreed t... |
<!DOCTYPE html>
<html lang="zh-cn">
<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="Author" contect="http://www.webqin.net">
<title>烨氏集团</title>
<link rel="shortcut icon" href="... |
<?php
namespace App\Http\Controllers\Api\Product;
use App\Http\Controllers\Controller;
use App\Models\Categories\Repositories\CategoryRepository;
use App\Models\Products\Repositories\ProductRepository;
class ProductController extends Controller{
private $productRepository;
public function __construct(Produc... |
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f)... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Objek extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('objek', function (Blueprint ... |
<?php
/**
* Class odbcsupp
*
* @package ToolkitApi
*/
class odbcsupp {
private $last_errorcode = ''; // SQL State
private $last_errormsg = ''; // SQL Code with message
/**
*
* @todo should perhaps handle this method differently if $options are not passed
*
* @param $database
* @param $user
* @param ... |
<?php
namespace L52\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class Authenticate
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
public fun... |
<?php
namespace sgkirby\Commentions\Formatter;
use HTMLPurifier_TagTransform;
class LinkTransformer extends HTMLPurifier_TagTransform {
public function transform($tag, $config, $context) {
$tag = clone $tag;
$siteHost = parse_url(url(), PHP_URL_HOST);
$hrefHost = parse_url($tag->attr['hre... |
<?php
namespace App\Http\Requests\Articles;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="d-flex justify-content-center">
<div class="card">
<form action={{ route('Cuenta.store') }} method="POST" >
@csrf
<div class="form-group">
... |
@extends('front.layouts.app')
@section('title', 'Add New Listing')
@section('content')
<x-editor element="#description" />
<div class="container py-4" style="max-width: 700px;margin:auto">
<div class="card mb-2">
<div class="card-header">
<span class="bold">Add New Listing</span>
</div>... |
<?php
namespace Code\Entities;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class ProjectFile extends Model implements Transformable
{
use TransformableTrait;
/**
* @var string
*/
protected $table = 'p... |
<?php
/*******************************************************************************
*
* filename : DirectoryReports.php
* last change : 2003-09-03
* description : form to invoke directory report
*
* http://www.churchcrm.io/
* Copyright 2003 Chris Gebhardt
* Copyright 2004-2012 Michael Wilt
*
* Ch... |
<!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">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title', 'LaraBBS') - Laravel 进阶教程</tit... |
<?php
namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
*... |
<?php
return [
'title' => '펜팔-타임라인',
'subject' =>'타임라인',
'intro' => '자신의 지금를 공유하세요',
'placeholder' => '타임라인에 글을 작성해보세요',
'registration' => '작성',
];
?> |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
protected $fillable = ['title', 'slug', 'body', 'category_id', 'thumbnail'];
protected $with = ['author', 'category', 'tags'];
public function scopeLatestFirst()
{
return $this->latest()->first();
}
... |
<?php
/*
* This file is part of the Solarium package.
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code.
*/
namespace Solarium\QueryType\Server\Collections\ResponseParser;
use Solarium\Core\Query\Result\ResultInterface;
use Solarium\Que... |
<?php
namespace Home\Model;
use Think\Model;
class ProductModel extends Model{
//获取数据列表
public function getList($page,$rows,$sort,$order,$keywords,$dateType,$dateFrom,$dateTo,$type,$alarm=false){
//搜索
$map=$keywords_map=array();
if($keywords){
$keywords_map['name']=array('li... |
<?php
declare (strict_types=1);
namespace RectorPrefix20211109;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$containerConfigurator->imp... |
<?php
use Illuminate\Database\Seeder;
class ApartmentDataSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$facilities = [];
// for ($i = 0; $i < 4; $i++){
$facilities['elevator'] = rand(0,1);
$facil... |
@extends('layouts.adminMaster')
@section('title')
Category | {{$category->name}}
@endsection
@section('content')
@section('header')
<b> Edit Category Name | </b> <small>{{$category->name}}</small>
@endsection
<div class="row">
<div class="col-md-8">
{{ Form::model($category, ['rou... |
<?php
/**
* @package FrameworkOnFramework
* @subpackage view
* @copyright Copyright (C) 2010 - 2015 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// Protect from unauthorized access
defined('FOF_INCLUDED') or die... |
<div class="py-4 container-fluid">
<div class="sidebar float-left" id="sidebar">
<div class="text-center">
<img src="https://via.placeholder.com/100" alt="" class="border-radius">
<h5>{{Auth::user()->name}}</h5>
</div>
<... |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class ModelMy_Admin extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
... |
<?php
namespace App\Policies;
use App\User;
use App\Equipment;
use Illuminate\Auth\Access\HandlesAuthorization;
class EquipmentPolicy
{
use HandlesAuthorization;
/**
* Administrator has all permissions
*/
public function before(User $user)
{
if($user->selectedUser->isRole('admin'))... |
<?php
class ExtractionTest1
{
/**
* A) How can this function be improved by using the principle of extraction?
*/
public function setCodeExamples(string $exampleBefore, string $exampleAfter)
{
$this->exampleBefore = file_get_contents(base_path("$exampleBefore.md"));
$this->example... |
@extends('layout')
@section('content')
<div id="slider_login" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#slider_login" data-slide-to="0" class="active"></li>
<li data-target="#slider_login" data-slide-to="1"></li>
<li data-t... |
<?php
declare(strict_types=1);
namespace Cycle\ORM\Tests\Functional\Driver\SQLServer\Inheritance\JTI;
// phpcs:ignore
use Cycle\ORM\Tests\Functional\Driver\Common\Inheritance\JTI\SingleTableTest as CommonClass;
/**
* @group driver
* @group driver-sqlserver
*/
class SingleTableTest extends CommonClass
{
publi... |
<?php
declare(strict_types = 1);
/**
* @var View $this
* @var array $data
*/
use dosamigos\chartjs\ChartJs;
use yii\web\View;
?>
<?= ChartJs::widget([
'type' => 'radar',
'options' => [
'height' => 200,
'width' => 600
],
'data' => $data
]) ?> |
<?php
// NOTIFIKASI EROR
echo validation_errors('<div class="alert alert-warning">','</div>');
// FORM OPEN
echo form_open(base_url('admin/gejala/edit/'.$gejala->id_gejala),' class="form-horizontal"');
?>
<div class="form-group">
<label class="col-md-2 control-label">ID Gejala</label>
<div class="col-md-5">
<inpu... |
<?php include('processCH.php');
if (isset($_GET['editVideoCH'])) {
$id = $_GET['editVideoCH'];
$edit_state = true;
$rec = mysqli_query($con, "SELECT * FROM tbl_christeningvideos WHERE id=$id");
$record = mysqli_fetch_array($rec);
$video_text = $record['video_text'];
$id = $record['id'];
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for yo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.