text stringlengths 2 1.03M |
|---|
<?php namespace Anomaly\Streams\Platform\Ui\Tree\Event;
use Anomaly\Streams\Platform\Ui\Tree\TreeBuilder;
use Illuminate\Database\Eloquent\Builder;
/**
* Class TreeIsQuerying
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
* @author Ryan Thompson <ryan@pyrocms.com>
*/
class TreeIsQ... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddColumnIdTipoveiculoTablePrecoprodutofipe extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('precoprodutofipe', function (B... |
<?php
namespace Oro\Bundle\UserBundle\Tests\Unit\Placeholder;
use Oro\Bundle\SecurityBundle\Authentication\TokenAccessorInterface;
use Oro\Bundle\UserBundle\Placeholder\PlaceholderFilter;
use Oro\Bundle\UserBundle\Tests\Unit\Stub\UserStub as User;
class PlaceholderFilterTest extends \PHPUnit\Framework\TestCase
{
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsuariosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('usuarios', fun... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class AdminLogin extends Controller
{
public function index(){
return view('admin_login');
}
public function validate_login(Request $request){
$email=$request-... |
<?php
namespace App\Http\Middleware;
use Closure;
class AuthAdminMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (auth()->che... |
<?php
namespace app\factory\controller;
use app\common\controller\Servicer as adminServicer;
//服务商管理
class Servicer extends adminServicer
{
function _init()
{
$this->storeType = STORE_SERVICE;
$this->adminType = ADMIN_SERVICE;
$this->groupId = GROUP_SERVICE;
}
} |
<?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 App\User;
use Illuminate\Database\Eloquent\Model;
class Challenge extends Model
{
public function user()
{
return $this->belongsTo('App\User');
}
public function submission()
{
return $this->hasOne('App\Submission');
}
} |
<div class="page-breadcrumb">
<div class="row">
<div class="col-5 align-self-center">
<h4 class="page-title">Work Order</h4>
</div>
<div class="col-7 align-self-center">
<div class="d-flex align-items-center justify-content-end">
<nav aria-label="bread... |
<?php
namespace App\Http\Controllers\Api\Samples\Index;
use App\Http\Controllers\Controller;
use App\Models\Ambulator;
use App\Models\Samples\MicrobiologyExamination;
use Illuminate\Http\Request;
use App\Models\Patient;
use Illuminate\Support\Facades\Auth;
class PatientsManagementController extends Controller
{
... |
<?php
/* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
* Description: Return a formatted string
* Source code: ext/standard/formatted_print.c
*/
echo "*** Testing sprintf() : integer formats with string values ***\n";
// array of strings used to test the function
$string_values = array ... |
<?php
Class Adoption_model extends CI_Model {
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function insertadoption($nama_binatang,$jenisbinatang,$gender,$umur,$kondisi,$size,$gambar){
$this->db->query("INSERT INTO tb_binatang VALUES ('','$nama_binatang','$jenis... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddStatusColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('applicants', functi... |
<?php
$sg[0]="01.png";
$sg[1]="02.png";
$sg[2]="03.png";
$sg[3]="04.png";
$sg[4]="05.png";
$out=rand(0, 4);
header("location:$sg[$out]");
?> |
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\Geometry\Extents\BoundingBoxOnly;
/**
* Australasia and Oceania/New Caledonia - Belep, Grande Terre, Ile des Pins, Loyalty Islands.
* @internal
*/
class Extent3430
{
public function __invoke(): array
{
... |
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 19.05.2015
*/
namespace skeeks\cms\traits;
use skeeks\cms\helpers\UrlHelper;
use skeeks\cms\modules\admin\controllers\AdminModelEditorController;
use skeeks\widget\chosen\Chosen;
use yii\... |
<?php
/**
* Created by PhpStorm.
* User: petarpfc
* Date: 11/17/2016
* Time: 9:17 AM
*/
class PageFormat{
protected $params;
/**
* FormatPage constructor.
* @param array $params
*/
public function __construct(array $params)
{
$this->params = $params;
}
/**
* ... |
<?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... |
<?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 RectorPrefix20210828\Symfony\Component\HttpFoundation\Test\Constraint;
u... |
<?php
/*
* This file is part of the Sidus/EAVModelBundle package.
*
* Copyright (c) 2015-2019 Vincent Chalnot
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sidus\EAVModelBundle\Serializer;
use Sidus\EAVModelBundle\Ent... |
<?php
namespace App\Http\Resources;
use App\Models\ProductVariation;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductResource extends ProductIndexResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
pub... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Holowatcher\V20200730\Models;
use AlibabaCloud\Tea\Model;
class DeleteMaterialsResponseBody extends Model
{
/**
* @description Id of the request
*
* @var string
*/
public $requestId;
protected $_n... |
@extends('layouts.app')
@section('content')
<h1>Alterar Produto Identificação: {{$id}}</h1>
<form action="/produtos/alterar/{{$id}}" method="post" class="form form-produto">
<input type="hidden" name="_token" value="{{{csrf_token()}}}" />
<label>Nome</label>
<input name="nome" type="text" class="form-contr... |
@extends('layouts.admin.app')
@section('content')
<!-- Main content -->
<section class="content">
@include('layouts.errors-and-messages')
<!-- Default box -->
@if($app_users_orders)
<div class="box">
<div class="box-body">
<h2>App Orders</h2>
<!-- Trigger the modal wi... |
<?php
namespace nomado\Common;
use GuzzleHttp\Psr7\Request;
use nomado\Traits\ResponseTrait;
abstract class AbstractHttpClient
{
use ResponseTrait;
/**
* @var \GuzzleHttp\Client
*/
public $client;
/**
* @var Authentication
*/
public $Authentication;
protected $serverUrl;
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
protected $table = 'tags';
protected $fillable = ['id', 'name'];
public function posts()
{
return $this->belongsToMany(\App\Models\Post::class);
}
# function to use the tag name as the ident... |
<?php
return;
set_include_path( '../:./' );
global $page;
global $libs;
require_once 'libs/rabbit/rabbit.php';
Rabbit_Construct( 'HTML' );
$req = $_GET;
Rabbit_ClearPostGet();
$libs->Load( 'albums' );
function GetAllAlbums() {
global $db;
... |
<?php
/**
* @package redaxo\media-manager
*/
abstract class rex_effect_abstract
{
/**
* @var rex_managed_media
*/
public $media;
public $params = []; // effekt parameter
public function setMedia(rex_managed_media $media)
{
$this->media = $media;
}
public function setP... |
<?php namespace Bluschool\Dashboard\Http\Controllers;
use Bluschool\Dashboard\Http\Requests\DashboardRequest;
use Bluschool\Dashboard\Model\Dashboard;
use Illuminate\Support\Facades\Input;
use Intervention\Image\Facades\Image;
use Laracasts\Flash\Flash;
use Orchestra\Foundation\Http\Controllers\AdminController;
clas... |
<?php
namespace App\Http\Controllers\Loto\Games;
use App\Http\Controllers\Controller;
use Illuminate\Http\JsonResponse;
/**
*
*/
class GameController extends Controller
{
public function __construct()
{
$this->_getApi();
$this->_getToken();
}
public function index()
{
re... |
<?php
// +---------------------------------------------------------------------+
// | OneBase | [ WE CAN DO IT JUST THINK ] |
// +---------------------------------------------------------------------+
// | Licensed | http://www.apache.org/licenses/LICENSE-2.0 ) |
// +----------... |
<?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
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Workout</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMsCostDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ms_cost_d... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FrontendController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\CouponController;
use App\Http\Controllers\CustomerController;
//Frontend Route
Route::get('/',[FrontendController::c... |
<?php
declare(strict_types = 1);
namespace Innmind\AMQP\Exception;
use Innmind\AMQP\Transport\Frame\Method;
final class ConnectionClosed extends RuntimeException
{
private $cause;
public static function byServer(string $message, int $code, Method $cause): self
{
$self = new self($message, $code)... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRecruitersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recruiters',... |
<?php
namespace MacsiDigital\Xero\Accounting;
use MacsiDigital\Xero\Support\Model;
class Overpayment extends Model
{
const ENDPOINT = 'OverPayments';
const NODE_NAME = 'OverPayment';
const KEY_FIELD = 'OverPaymentID';
protected $methods = ['get', 'post', 'put'];
protected $attributes = [
... |
@extends('master')
@section('title','Hwly-blog | Manage Post' )
@section('content')
<div class="form-group row add">
<div class="col-md-6">
<h1>Postingan</h1>
</div>
<div class="col-md-6">
<form class="navbar-form navbar-left" url="" action="\blog" method="get" role="search">
<d... |
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ $user->name }}</h3>
</div>
<div class="card-body">
<img class="rounded img-fluid" src="{{ Gravatar::src($user->email, 500) }}" alt="">
</div>
</div>
@include('user_follow.follow_button', ['user' => $user]) |
<div class="row">
<div class="large-12 columns">
<div class="module yellow">
<h2>
<?php echo $current_page; ?> <a href="#"><?php echo $header; ?></a>
</h2>
</div>
</div>
</div>
<div class="row">
<div class="large-2 columns">
<?php echo $this->element('admin'.DS.'gallery_menu'); ?>
</div>
<div class... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace DTS\eBaySDK\PostOrder\Types;
/**
*
* @property \DTS\eBaySDK\PostOrder\Types\CancelActivityHistory[] ... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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/LICENS... |
<?php
/* SonataBasketBundle:Form:label.html.twig */
class __TwigTemplate_e2c8040631f69418e0cd64188cee99003e8eebc5a059011259b7a606895e9732 extends Sonata\CacheBundle\Twig\TwigTemplate14
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
... |
<!DOCTYPE html>
<html lang="ja">
<head>
<title>LaravelNews</title>
<link rel="stylesheet" href="{{ asset('css/app.css') }}" type='text/css'>
</head>
<body>
<h1>LaravelNews</h1>
<ul>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
<form action=... |
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
// Copyright (C) 2010-2016 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under the t... |
<?php
namespace App\Services;
use App\SiteHWorkItem;
use Illuminate\Support\Facades\Auth;
use Exception;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
use Laravel\Passport\Passport;
use Illuminate\Support\Facades\Notification;
class SiteHWorkItemService
{
public static function all($perPage = ... |
<?php
namespace SAASBoilerplate\Domain\Users\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Relations\Pivot;
class UserRole extends Pivot
{
protected $table = 'user_roles';
protected $dates = [
'expires_at'
];
/**
* Return true if role is still valid.
*
* @return... |
<?php
namespace BinshopsBlog\Middleware;
use App\Models\User;
use Brian2694\Toastr\Toastr;
use Closure;
use BinshopsBlog\Models\BinshopsLanguage;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class categoryMiddleware
{
public function handle($request, Closure $next)
{
... |
@extends('dashboard.layout.layout')
@section('content')
@push('styles')
<!-- datatables css-->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.0.3/css/buttons.dataTables.min.css">
@e... |
<div class="mt-8">
<a href="{{route('tv.show',$tv['id'])}}">
<img src="{{'https://image.tmdb.org/t/p/w500/'.$tv['poster_path']}}" alt="">
<div class="mt-2">
<a href="" class=" text-xl mt-2 hover:opacity-75 transition ease-in-out hover:text-gray-300">{{$tv['name']}}</a>
<div cl... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTicketsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tickets', funct... |
<?php self::load('common/header',['title' => '后台管理']); ?>
<?php self::load('admin/header_nav'); ?>
<div class="content">
<div class="namespace"><a href="/admin/page/">根分类</a> /
<?php
$namespace_path = '/';
foreach ($namespace_index as $item) {
$namespace_path .= $item . '/';
?>
... |
@extends('order backend.default')
@section('content')
<style>
input[type=radio] {
margin-top: 10px;
margin-left: 10px;
}
.img-container {
border-radius:50%;
overflow: hidden;
width:100px;
height:100px;
margin: 10px;
text-align: center;
}
... |
<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('JPATH_BASE') or die;
$params = $displayData->params;
?>
<?php $images = js... |
@extends('layouts.main')
@section('content')
<div class="movie-info border-b border-gray-800">
<div class="container mx-auto px-4 py-16 flex flex-col md:flex-row">
<img src="{{$movie['poster_path']}}" alt="Parasite" class="w-64 lg:w-96">
<div class="md:ml-24">
<h2 cl... |
<?php
namespace App\Http\Resources\Project;
use Illuminate\Http\Resources\Json\Resource;
class ProjectCollection extends Resource
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($reques... |
<!DOCTYPE html>
<html lang="en">
<?php require_once('head.php');
$_SESSION['USER_ID'] = $_GET['user'];
$USER_DEC = $_SESSION['USER_ID'];
$USER_ID = base64_decode($USER_DEC);
?>
<body>
<div id="wrapper">
<!-- Navigation -->
<?php require_once('nav.php'); ?>
<?PHP
Include('../../config/connect223... |
<?php
/* @Framework/Form/form_help.html.php */
class __TwigTemplate_ae326c3f5647f7ed69603fb17e6593629a1a8836ce71195eea51f3b7ba799e17 extends Twig_Template
{
private $source;
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceCon... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Specifies the default CMS theme.
|--------------------------------------------------------------------------
|
| This parameter value can be overridden by the CMS back-end settings.
|
*/
... |
<?php
/**
*
*
* @author Roman Piták <roman@pitak.net>
*
*/
namespace DotMailer\Api\DataTypes;
/**
* Class ApiResubscribeResult
*
* @property ApiContact contact
* @property ApiResubscribeStatuses status
*
*/
final class ApiResubscribeResult extends JsonObject
{
protected function getProperties()
{... |
<?php
use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$entry = new EntryEntity();
$author = new AuthorEntity();
$author->fromArray(array (
'id' => 'jdoe',
'name' => 'John Doe',
'email' => 'john@doe.com',
'url' => 'http://john.doe.com',
));
$entry->setId('4f8706cf6241b-post-name');
$entry->setTitle('4f87... |
<!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">
<title>@yield('judul')</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/c... |
@extends('layouts.main')
@section('title', 'Criar Evento')
@section('content')
<body>
<div id="event-create-container" class="col-md-6 offset-md-3">
<h1>Crie o seu evento</h1>
<form action="/events" method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
... |
<?php
namespace app\modules\Karir\models;
use Yii;
use yii\db\Expression;
/**
* This is the model class for table "m_pekerjaan_jenis".
*
* @property int $id
* @property string $code
* @property string $code_ikbu
* @property string $code_ikbu_asing
* @property string $nama
* @property int $is_delete
* @prope... |
<?php
namespace App\Http\Livewire;
use Illuminate\Support\Facades\DB;
use Livewire\Component;
class Reportes extends Component
{
public function render()
{
$registros=DB::table('servicios')
->select('servicios.*')
->get();
return view('livewire.reportes', [ 'reg' => $registros... |
<?php
namespace App\Common\Models\Weixin;
use App\Common\Models\Base\Base;
class SubscribeUser extends Base
{
function __construct()
{
$this->setModel(new \App\Common\Models\Weixin\Mysql\SubscribeUser());
}
} |
<?php
echo '27/3/04 = ' . strval(mktime(0,0,0,3,27,2004)) . "\n"; // 1080345600
echo '28/3/04 = ' . strval(mktime(0,0,0,3,28,2004)) . "\n"; // -3662 - should be 108043200
echo '28/3/04 = ' . strval(mktime(2,0,0,3,28,2004)) . "\n"; // 1080435600
echo '29/3/04 = ' . strval(mktime(0,0,0,3,29,2004)) . "\n"; // 108... |
<?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
/**
* PEL: PHP Exif Library.
* A library with support for reading and
* writing all Exif headers in JPEG and TIFF images using PHP.
*
* Copyright (C) 2004, 2005 Martin Geisler.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Models\User;
use App\Models\Role;
use App\Models\Patient;
use App\Models\Staff;
use App\Models\MedicalSpeciality;
use App\Models\Country;
use App\Models\PhonePrefix;
use Illuminate\Validation\Rule;
use Il... |
<?php
//071318
//this code is for destroying session and page if they access restricted page
$position_access = $this->session->userdata('get_position_access');
$access_content_nav = $position_access->access_content_nav;
$arr_ = explode(', ', $access_content_nav); //string comma separated to array
$get_url_content_db ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PersonalAccessToken extends Model
{
use HasFactory;
protected $table = 'personal_access_tokens';
} |
<?php
namespace Yiisoft\Yii\Web\User\Event;
use Yiisoft\Auth\IdentityInterface;
class BeforeLogin
{
private IdentityInterface $identity;
private int $duration;
private bool $isValid = true;
public function __construct(IdentityInterface $identity, int $duration)
{
$this->identity = $ident... |
<?php
namespace poprigun\LaravelInteractions\Console;
use Illuminate\Console\GeneratorCommand;
use Illuminate\Support\Str;
use Symfony\Component\Console\Input\InputArgument;
/**
* Class InteractionMakeCommand
* @package poprigun\LaravelInteractions\Console
*/
class InteractionMakeCommand extends GeneratorCommand
... |
<?php
namespace App\Http\Controllers;
use App\Article;
use App\User;
use Illuminate\Http\Request;
class ArticlesController extends Controller
{
public function __construct()
{
$this->middleware('auth')->only(['store','update','create','edit']);
}
/**
* Display a listing of the resource.... |
<?php
/**
* The Hero Framework.
*
* (c) Celso Luiz de F. Fernandes <celso@thephphero.com>
* Date: 27/11/16
* Time: 21:31
* Created by thePHPHero
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bundles\SecurityBundle\... |
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Customer;
use Illuminate\Support\Facades\Hash;
use\Carbon\Carbon;
class CustomerController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminat... |
<?php //00551
// --------------------------
// Created by Dodols Team
// --------------------------
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function... |
<?php
/**
* Adds hierarchy related columns to the legacy SQL share driver.
*
* Copyright 2011-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Michael J. Rubinsky <mrub... |
<?php
namespace App\Models\Core\Setting\Traits;
trait SettingRelationship
{
public function settingable()
{
return $tis->morphTo();
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@section('libs')
<script src="{{asset('js/lib/jquery-2.2.2.min.js')}}"></script>
<script src="{{asset('js/lib/jqueryui/jquery-ui.min.js... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Login extends CI_Model {
function __construct(){
parent::__construct();
$this->load->database();
$this->load->library('encrypt');
$this->load->model("test/profilo");
}
public function doLog... |
<?php
namespace Tests\Feature\Api;
use App\Models\User;
use App\Models\Contrato;
use App\Models\Cliente;
use App\Models\Mikrotik;
use App\Models\Endereco;
use App\Models\ContratoTermo;
use App\Models\StatusSituacao;
use Tests\TestCase;
use Laravel\Sanctum\Sanctum;
use Illuminate\Foundation\Testing\WithFaker;
use Il... |
@extends('admin.layout.layout')
@section('content')
<div style="border: 2px solid rgb(7, 238, 38)" class="container ">
<div class="row clearfix">
<div class="col-md-3">
<h2><strong>Course Page</strong></h2>
</div>
<div class="col-md-7">
<form action="{{url('admin/les... |
<?php
if (!defined('BASEPATH'))
exit('No direct access is allowed!');
class Module_model extends CI_Model {
function __construct()
{
$this->load->database();
}
public function get()
{
$result = $this->db->get_where('modules', array('active' => 1))->result();
$modules... |
<?php
namespace CottaCush\Cricket\Libs;
use Hashids\Hashids;
class Utils
{
/**
* @author Olawale Lawal <wale@cottacush.com>
* @param $message
* @param $params
* @return mixed
*/
public static function replaceTemplate($message, $params)
{
foreach ($params as $param => $val... |
<php?
$numero1=1;
$numero2=2;
echo "el primer numero es: $numero2 </br>";
?> |
<?php
namespace Tests\Controllers;
use App\Patient;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\User;
use Tests\TestCase;
class PatientControllerTest extends TestCase {
use DatabaseTrans... |
<?php
namespace App\Models;
use Illuminate\Auth\Authenticatable;
use Laravel\Lumen\Auth\Authorizable;
use Illuminate\Database\Eloquent\Model;
class Match extends Model
{
protected $table="Matches";
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $filla... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAccidentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('accidents', f... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Old</div>
<div class="panel-body">
... |
@extends('layouts')
@section('content')
<section style= "background: url('assets/img/about_us_bg.png');
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100vh ">
<div class="wrapper intro-header">
<di... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\policynoConnection;
use App\inscompanyConnection;
use Alert;
use Redirect;
class maint_policyNumberController extends Controller
{
public function __construct(inscompanyConnection $inscomp, policynoConnection $... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User_model extends PIXOLO_Model
{
//Write functions here
public function login($contact)
{
$query = $this->db->query("SELECT * FROM `users` WHERE `contact`=$contact");
if ($query->num_rows() > 0)
{
/*$query = ... |
<?php
/*=========================================================================
Program: CDash - Cross-Platform Dashboard System
Module: $Id$
Language: PHP
Date: $Date$
Version: $Revision$
Copyright (c) Kitware, Inc. All rights reserved.
See LICENSE or http://www.cdash.org/licensing/ for de... |
{{-- Sidebar --}}
<aside class="sidenav navbar navbar-vertical navbar-expand-xs border-0 border-radius-xl my-3 fixed-start ms-3 "
id="sidenav-main">
{{-- Logo --}}
<div class="sidenav-header">
<i class="fas fa-times p-3 cursor-pointer text-secondary opacity-5 position-absolute end-0 top-0 d-none d-x... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an even... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.