text stringlengths 2 1.03M |
|---|
@extends('admin.layouts.master')
@section('content')
<div class="row">
<div class="col-sm-10 col-sm-offset-2">
<h1>{{ trans('quickadmin::templates.templates-view_edit-edit') }}</h1>
@if ($errors->any())
<div class="alert alert-danger">
<ul>
{!! implode(''... |
<?php
/* проверка данных */
if (isset($_POST['name'])) {$name = $_POST['name'];}
if (isset($_POST['phone'])) {$phone = $_POST['phone'];}
if (isset($_POST['email'])) {$email = $_POST['email'];}
if (isset($_POST['address'])) {$address = $_POST['address'];}
$name = stripslashes($name);
$name = htmlspecialchars($name);
$e... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MenuGroup_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
function get_all_menugroup()
{
$query = $this->db->query("SELECT * FROM pos_menugroup");
return $query->result();
}
function menugroup_sa... |
<?php
namespace Airam\Template\Render;
use LightnCandy\Runtime;
class RuntimeProcessor extends Runtime
{
static public function raw($cx, $v, $ex = 0)
{
return '[[DEBUG:raw()=>' . var_export($v, true) . ']]';
}
} |
<?php
class Denkmal_Paging_Tag_VenueUserLatestTest extends CMTest_TestCase {
public function tearDown() {
CMTest_TH::clearEnv();
}
public function testGetTags() {
$user = Denkmal_Model_User::create('foo@example.com', 'foo', 'pass');
$tag1 = Denkmal_Model_Tag::create('foo');
... |
<?php
use Illuminate\Database\Seeder;
/**
* Class DatabaseSeeder
*
* @author Tim Joosten <topairy@gmail.com>
* @copyright 2018 Tim Joosten
*/
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run(): void
{
$comma... |
<?php
return [
'name' => 'ModuleBase'
]; |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\City;
use App\Models\Department;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
class CityController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\... |
<?php
/**
* Z-Blog with PHP.
*
* @author Z-BlogPHP Team
* @version 1.0 2020-03-26
*/
require '../function/c_system_base.php';
require '../function/c_system_admin.php';
$zbp->Load();
Add_Filter_Plugin('Filter_Plugin_Zbp_ShowError', 'JsonError4ShowErrorHook', PLUGIN_EXITSIGNAL_RETURN);
if (!$zbp->CheckRights('r... |
<?php
namespace App\Http\Controllers\API\Donations;
use App\Http\Controllers\Controller;
use App\Http\Resources\DonationResource;
use App\Models\DonationLink;
class GetSingleDonationController extends Controller
{
public function __invoke($donation)
{
return new DonationResource(
Donation... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit6fb780e7b6584e905dbfbdecd6e7637b
{
public static $files = array (
'aaf5b53a99b4de51dadc23016def253f' => __DIR__ . '/..' . '/webimpress/http-middleware-compatibility/autoload/http-middleware.php',
... |
<?php
/**
* Created by PhpStorm.
* User: robot5
* Date: 18-9-2
* Time: 下午5:28
*/ |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Cs extends Model
{
protected $table ='cs';
public $timestamps = false;
protected $fillable = ['nama_cs', 'gender', 'tanggal_lahir', 'alamat'];
} |
<div class="job_suggest">
<p><strong>VIỆC LÀM ĐỀ XUẤT BẠN SẼ THÍCH</strong></p>
@for($i=1;$i<=8;$i++)
<div class="job_suggest-item row no-gape">
<div class="job_suggest-item-logo col-3 p-0">
<a href=""><img class="lazy" data-original="/uploads/company_default.png" src="/uploads/giphy.gif" alt="logo" width="80px... |
<?php
namespace console\controllers;
use backend\modules\settlement\models\CalculationProblemStatusForm;
use common\components\DbManager;
use common\helpers\StringHelper;
use common\models\issue\IssueMeet;
use common\models\issue\IssueNote;
use common\models\issue\IssuePay;
use common\models\issue\IssuePayCalculation... |
<?php
namespace AppBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class MediaControllerTest extends WebTestCase
{
} |
<?php
$n = (int)readline("Enter the value of n : ");
for ($i=1; $i<=$n; $i++) {
for ($j=1; $j<=$i; $j++) {
if (($i + $j) % 2 == 0) {
echo 1 . " ";
}
else {
echo 0 . " ";
}
}
echo "\n";
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserAnalytics extends Model
{
protected $table = "user_analytics";
public $primaryKey = "user_id";
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class RawMaterialStock extends Model
{
Use SoftDeletes;
protected $fillable = [
'material_number', 'material_description', 'storage_location', 'quantity', 'stock_date', 'created_by'
];
public function u... |
<?php
$filepath = realpath(dirname(__DIR__));
include_once ($filepath.'/lib/Database.php');
include_once ($filepath.'/lib/Helper.php');
include_once ($filepath.'/lib/Session.php');
?>
<?php
class User{
private $db;
private $helper;
public function __construct()
{
$this->db = new Database();
... |
<?php
declare(strict_types=1);
namespace MarcAndreAppel\LaravelAutoForms\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use MarcAndreAppel\LaravelUuids\WithUuids;
/**
* @property string name
* @property string id
*/... |
<?php
namespace Database\Seeders;
use App\Models\Director;
use Illuminate\Database\Seeder;
use SebastianBergmann\CodeCoverage\Driver\Driver;
class DirectorSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$m1=Director::create(['i... |
<?= $this->insert('fields.label') ?>
<input class="file-input" id="file-uploader" type="file" name="<?= $field->formName() ?>" accept="<?= $field->get('accept') ?>">
<label for="file-uploader" class="file-input-label">
<span><?= $this->label('pages.files.upload-label') ?></span>
</label> |
@extends('layouts.email')
@section('content-email')
<tr>
<td class="bg_dark email-section" style="text-align:center;background:#fff !important;">
<div class="heading-section heading-section-white">
<span class="subheading" style="color:#0B0909 !important;">@if(Config::get('a... |
<?php
namespace App\Domain\Structures\Interfaces;
interface AbstractCollectionInterface
{
public function add($element): bool;
public function remove($element): bool;
public function map(callable $callback): self;
public function filter(callable $callback): self;
public function first();
publi... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="justify-content-center">
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Opps!</strong> Something went wrong, please check below errors.<br><br>
... |
@extends('app')
@section('content')
<div class="container">
<h3>Editando produto: {{$product->name}}</h3>
@include('errors._check')
{!! Form::model($product, ['route'=>['admin.products.update', $product->id], 'class'=>'form']) !!}
@include('admin.products._form')
... |
<?php
return [
'title' => 'Activity Log',
'fields' =>
[
'log_name' => 'Log Name',
'description' => 'Description',
'subject_id' => 'Subject Id',
'subject_type' => 'Subject Type',
'causer_id' => 'Causer Id',
... |
<?php
class m_api extends CI_Model
{
public function get_token(){
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERPWD,"buu_profile:profile_999");
curl_setopt($ch, CURLOPT_HTTPAUTH,CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_URL, 'http://autolab.informatics.buu.ac.th... |
<?php
namespace App\Domain\User\Service;
use App\Domain\Exceptions\ForbiddenException;
use App\Domain\Factory\LoggerFactory;
use App\Domain\User\DTO\User;
use App\Infrastructure\Authentication\UserRoleFinderRepository;
use App\Infrastructure\User\UserUpdaterRepository;
use Psr\Log\LoggerInterface;
final class User... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\Sluggable;
class Post extends Model
{
use HasFactory;
use Sluggable;
protected $fillable = ['title', 'description', 'content', 'ca... |
<?php
/**
* Interface metafad_common_importer_functions_joiners_JoinerInterface
* Serve a fare la join di array di array per restituirne uno singolo.
*/
interface metafad_common_importer_functions_joiners_JoinerInterface
{
/**
* @param $arrays array
* @return mixed
*/
function joinArrays($arr... |
<?php
namespace App\Http\Controllers\Friend;
use App\Model\FriendModel;
use App\Model\UserModel;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class FriendController extends Controller
{
public function show(Request $request){
$uid=$request->input('uid');
$info=UserModel::get();... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
@extends('layouts.default')
@section('title', 'home title')
@section('content')
<h1>home page</h1>
@stop |
<?php
/*
* This file is part of the FOSElasticaBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\ElasticaBundle\Transformer;
use Elastica... |
<?php
/* ------------------------------------------------------------------
Objet de base pour manipuler la base de données.
--------------------------------------------------------------------- */
class DB {
public static $pdo = null;
// connect to the database
public static function connect($host, $db_name, $... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito... |
<?php
namespace Google\AdsApi\Dfp\v201802;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class SubmitOrdersForApprovalAndOverbook extends \Google\AdsApi\Dfp\v201802\SubmitOrdersForApproval
{
/**
* @param boolean $skipInventoryCheck
*/
public function __construct($skipInventoryCheck = ... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Privacy;
class PrivacyController extends Controller
{
public function add_privacy()
{
return view('admin.privacy.add_privacy');
}
public function save_privacy(Request $request)
... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace Tea\PHP\Tests;
use AlibabaCloud\Tea\Exception\TeaError;
use Source\SourceClient;
use Source\Models\RuntimeObject;
use Source\Models\Request;
class Client {
protected $_id;
protected $_str;
public function __construct($id, $str){
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" name="viewport">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title')</title>
<!-- Favicons -->
<link href="{{asset('landing/assets/i... |
<?php
/**
* config.php
*
* Konfiguration für den pr0gramm inbox autoresponse Bot.
*/
/**
* Einbinden des apiCalls.
* Download: https://github.com/RundesBalli/pr0gramm-apiCall
*
* Beispielwert: /home/user/apiCall/apiCall.php
*
* @param string
*/
require_once("");
/**
* Username an den die Nachricht weit... |
<?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... |
@extends('layouts.default')
@section('title', 'Title - About')
@section('content')
<h1>About page</h1>
@stop |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAuctionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('auctions', function (Blueprint $table) {
... |
<?php
/**
* The task view file of dashboard module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package dash... |
<?php $proposal_mode = (isset($proposal_mode)) ? $proposal_mode : false; ?>
<li class="proposal-item">
<a target="_self" href="{{ action('UserController@profile', $pollOption->user) }}" title="{{ $pollOption->user['name'] }}" class="poll-option-user" style="background-image: url('{{ ResourceImage::getProfileImage($p... |
<?php
namespace App\Http\Controllers;
use App\Country;
use Illuminate\Http\Request;
class CountryController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form f... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
<title>Vybbz - Sign Up</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- Place favic... |
@extends('template.master')
@section('title','Edit Category')
@section('heading','Edit Category')
@section('content')
<div class="row justify-content-center">
<div class="col-6">
<form action="" method="POST">
@csrf
<div class="form-group">
<label for="" class="form-label"> Name</label... |
<?php
date_default_timezone_set('Asia/Jakarta');
$list=$this->db->query("SELECT a.*,(SELECT count(b.id) from detail_jaldis b where b.id_anggota=a.id) as jumlah_jaldis from anggota a where a.status='1' and a.keterangan='bukan anggota legislatif'")->result();
?>
<div class='entry'>
<table border='1' align='left' width=... |
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
require "../".LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$... |
<?php
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); yo... |
<?php
/* @WebProfiler/Profiler/search.html.twig */
class __TwigTemplate_fe42133995f41be120ba65c8eb03b8342bfec0fd8fa45a02b13e88641386f458 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array... |
<?php
declare(strict_types=1);
namespace GeoNamesApp\State\Handler;
use Psr\Container\ContainerInterface;
use GeoNamesApp\State\Service\GetStateService;
class GetStateByIdHandlerFactory
{
public function __invoke(ContainerInterface $container): GetStateByIdHandler
{
$getState = $container->get(GetSt... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Horasextras */
$this->title = 'Ingresar Horasextras';
$this->params['breadcrumbs'][] = ['label' => 'Horasextras', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div>
<?= $this->render('_form', [
... |
<?php
/**
* @file
* Default theme implementation to display a node.
*
* Available variables:
* - $title: the (sanitized) title of the node.
* - $content: An array of node items. Use render($content) to print them all,
* or print a subset such as render($content['field_example']). Use
* hide($content['field_... |
<?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.
*/
declare(strict_types=1);
namespace Sylius\Bundle\GridBundle\Tests\DependencyInjection\Compiler;
use ... |
<?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\Bundle\FrameworkBundle\DataCollector;
use Symfony\Component\Eve... |
<?php
namespace Microsoft\BingAds\V13\Reporting;
{
/**
* Defines the ascending or descending sort order of values within the specified report column.
* @link https://docs.microsoft.com/en-us/advertising/reporting-service/sortorder?view=bingads-13 SortOrder Value Set
*
* @used-by KeywordPerfor... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Two Factor Authentication</div>
<div class="panel-body">
<p>Two factor authentication (2FA) strengthens access security by requiring t... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Maatwebsite\Excel\Facades\Excel;
use App\Imports\CiudadImport;
class CiudadSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Excel::import(new CiudadImport, '... |
<?php namespace app\Http\Controllers\v1;
use App\Http\Controllers\ApiController;
use Illuminate\Http\JsonResponse;
class WordController extends ApiController
{
const DEFAULT_MANY = 3;
/**
* Get a single word from a random set.
*
* @return JsonResponse
*/
public function word()
{
$word = $this... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class HChart2 extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form','email','url'));
$this->clientip = $_SERVER['REMOTE_ADDR'];
}
public function index()
{
//echo base_url();... |
<header id="header">
<div id="logo-group">
<!-- PLACE YOUR LOGO HERE -->
<span id="logo"> <?php echo $this->config->item('app_name');?> <span id="running-que-counts" class="hidden"></span></span>
<!-- END LOGO PLACEHOLDER -->
<!-- Note: The activity badge color changes when clicked and resets the number to 0... |
<!-- BEGIN: Main Menu-->
<div class="main-menu menu-fixed menu-light menu-accordion menu-shadow" data-scroll-to-active="true">
<div class="navbar-header">
<ul class="nav navbar-nav flex-row">
<li class="nav-item mr-auto"><a class="navbar-brand" href="index.html">
<div class="brand-logo">
... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.mi... |
<div class="modal fade" id="ajax_error_modal" tabindex="-1" role="dialog" aria-labelledby="ajaxErrorModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="ajaxErrorModalLabel">О... |
<?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... |
<?php
declare(strict_types=1);
namespace Archman\Velcro\Converters;
use Archman\Velcro\Property;
use Archman\Velcro\TypeHelper;
use Attribute;
use TypeError;
#[Attribute]
class IntConverter implements ConverterInterface
{
private Property $boundProperty;
public function __construct(private array $expectTyp... |
<?php
$connection_string = 'mysql:host=localhost;dbname=store';
// this is bad, but we don't have time for the good things
$username = 'store';
$password = 'test'; // don't do this in real life
try {
$database = new PDO($connection_string, $username, $password);
} catch (Exception $ex) {
$error_message = $ex-... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders', functio... |
<?php
//
// Description
// -----------
// This method will return the list of Stations for a tenant.
//
// Arguments
// ---------
// api_key:
// auth_token:
// tnid: The ID of the tenant to get Station for.
//
// Returns
// -------
//
function qruqsp_weather_stationList($ciniki) {
//
// Find all the requ... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use DB;
use File;
use App\Alert;
use Illuminate\Support\Facades\Storage;
use App\Http\Controllers\ProcessleadcsvController;
class DownloadCSV extends Command
{
protected $signature = 'downloadcsv2:download';
protected $description = 'Downl... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Book extends Model
{
protected $fillable = [
'name', 'details',
];
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="../assets/img/apple-icon.png" />
<link rel="icon" type="image/png" href="../assets/img/favicon.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>ubiAttendance</title>
</he... |
<?php
namespace Illuminate\Http\Resources\Json;
use Countable;
use Illuminate\Http\Resources\CollectsResources;
use Illuminate\Pagination\AbstractPaginator;
use IteratorAggregate;
class ResourceCollection extends JsonResource implements Countable, IteratorAggregate
{
use CollectsResources;
/**
* The re... |
<?php
declare(strict_types=1);
require_once('weak.inc');
require_once('strict.inc');
require_once('fix_exceptions.inc');
function check($kind, $user_fn) {
echo "\n$kind\n";
foreach ([True, 1, 3.14, "abc", [1, 2, 3], null] as $k => $v) {
try {
$user_fn($v);
printf("No Error\n");
} catch(TypeErr... |
<?php
use PHPUnit\Framework\TestCase;
use Garp\Functional as f;
/**
* @package Garp\Functional
* @author Harmen Janssen <harmen@grrr.nl>
* @license https://github.com/grrr-amsterdam/garp-functional/blob/master/LICENSE.md BSD-3-Clause
*/
class RepeatTest extends TestCase {
public function test_should_repea... |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>upload</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlS... |
<?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 Illuminate\Support\Facades\Auth;
class User extends Authenticatable
{
use HasFacto... |
<?php
/**
* Created by PhpStorm.
* User: hebin
* Date: 2017-09-15
* Time: 13:11
*/
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Reservations;
use App\Floors;
use App\Tables;
use App\Wechat;
use Response;
use Session;
... |
<?php
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password', 'role_id', 'photo_id', 'is_active','',
];
... |
<?php
declare(strict_types=1);
namespace Rector\NetteKdyby\Tests\Rector\MethodCall\ReplaceMagicPropertyEventWithEventClassRector;
use Rector\Core\Testing\PHPUnit\AbstractRectorTestCase;
use Rector\NetteKdyby\Rector\MethodCall\ReplaceMagicPropertyEventWithEventClassRector;
final class ReplaceMagicPropertyEventWithEv... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
class SessionsController extends Controller
{
public function __construct() {
$this->middleware('guest', [
'only' => ['create'],
]);
}
public function create() {
return view('sessions.create'... |
<?php
namespace App\Http\Controllers;
use App\Subject;
use Illuminate\Http\Request;
use App\Http\Repositories\BaseRepository;
use App\Http\Repositories\SubjectRepository;
class SubjectController extends Controller
{
//
public function __construct(){
$this->middleware('auth');
}
public functi... |
<?php
namespace Tn\Bundle\PathNavigationBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Configuration.
*
* @author Jonathan Bouzekri <jonathan.bouzekri@gmail.com>
*/
class Configuration implements Confi... |
--TEST--
IntlCalendar::isEquivalentTo() basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$intlcal1 = IntlCalendar::createInstance('Europe/Amsterdam');
$intlcal2 = IntlCalendar... |
<?php
namespace Spatie\Health\Exceptions;
use Exception;
use Spatie\Health\Checks\Check;
final class CheckDidNotComplete extends Exception
{
public static function make(Check $check, Exception $exception): self
{
return new self(
message: "The check named `{$check->name()}` did not comple... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{$page_title}}</title>
@include('web._components.styles')
<style type="text/css">
.auth .brand-logo img {width: 250px... |
<?php
/**
* Flight: An extensible micro-framework.
*
* @copyright Copyright (c) 2011, Mike Cao <mike@mikecao.com>
* @license MIT, http://flightphp.com/license
*/
require_once 'vendor/autoload.php';
require_once __DIR__.'/../flight/autoload.php';
class RouterTest extends \PHPUnit\Framework\TestCase
{
/*... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class RolesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('roles')->insert([
'id' => '1',
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Sindicatos_model extends CI_Model {
function __construct(){
parent::__construct();
}
public function editar_sindicato($data){
$this->db->where("id_sindicato",$data["id_sindicato"]);
if ($this->db->update('sge_sindicato', $data))... |
<?php
namespace OC\PlatformBundle\Antispam;
/**
*
*/
class OCAntispam
{
private $mailer;
private $locale;
private $minLength;
public function __construct(\Swift_Mailer $mailer, $locale, $minLength)
{
$this->mailer = $mailer;
$this->locale = $locale;
$this->minLength = (int) $minLength;
}
/... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Contact - Company Bootstrap Template</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/favic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.