text
stringlengths
2
1.03M
<?php namespace Doctrine\Tests\Models\DDC1987; /** * @Table(name="ddc1987_item") * @Entity */ class DDC1987Item { const CLASSNAME = __CLASS__; /** * @Id * @GeneratedValue * @Column(type="integer") */ public $id; /** * @Column(type="decimal", scale=4, precision=15, nullabl...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> DEBUG - 2019-10-18 06:29:51 --> UTF-8 Support Enabled DEBUG - 2019-10-18 06:29:51 --> Global POST, GET and COOKIE data sanitized DEBUG - 2019-10-18 06:29:52 --> Session: "sess_save_path" is empty; using "session.save_path" value from php.ini. DEB...
<!doctype html> <html lang="{{ app()->getLocale() }}"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel-sw</title> <link rel="stylesheet" href="{{asset('css/...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Vendor extends CI_Controller { public function __construct() { parent::__construct(); $this->support_lib->check_login(); $this->load->helper('flexigrid'); $this->load->library('flexigrid'); $this->...
<?php namespace App\Http\Controllers\Admin\User; use Illuminate\Http\Request; use Gufy\PdfToHtml\Config; use setasign\Fpdi\Fpdi; use setasign\Fpdi\PdfReader; use App\Http\Controllers\Controller; use Validator; use App\Form; use App\Notifications; use App\PageType; use App\User; use App\Permission; class ViewControll...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Migration_Activation_template extends CI_Migration { public function up() { $this->db->delete('email_templates', array('slug' => 'activation')); $this->db->insert('email_templates', array( 'slug' => 'activation', 'name' => 'A...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> @include('admin.sidebar') <div class="col-md-9"> <div class="card"> <div class="card-header">Edit Slider #{{ $slider->id }}</div> <div class...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class TambahKolomDiTabelUser extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', function...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class InvoiceMail extends Mailable { use Queueable, SerializesModels; public $data; public function __construct($data) { $t...
@extends('layout') @section('content') <h1>Selling Something?</h1> <hr> {!! Form::model($flyer, ['method' => 'PATCH', 'route' => ['flyers.update', $flyer->id ]]) !!} @include('flyers.form', ['submit_text' => 'Update Flyer']) {!! Form::close() !!} {!! Form::model($flyer, ['method' => 'DELE...
<?php $config = [ 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => '7JHrJHDckDMQBMclAptaC2WSE5HQrF3D', ], ], ]; if (!YII_ENV_TEST) { // configuration adjust...
<?php $params = array_merge( require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php') ); return [ 'id' => 'app-frontend', 'basePath' => dirname(__DIR__), 'bootst...
<section class="py-5 wow fadeIn section" id="FromTheBirthdayGirl"> <h3 class="h3 text-center mb-5 mt-3 wow fadeIn section-heading">From the Birthday Girl</h3> <div class="row"> <div class="col-md-12 mb-4 text-center wow fadeIn"> <img src="{{ asset('images/DSCF5394.jpg') }}" class="img-flu...
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Validation\Rule; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use App\Http\Resources\User a...
<?php namespace common\models; class Seo extends \common\models\base\BaseModel { /** * {@inheritdoc} */ public static function tableName() { return '{{%seo}}'; } /** * {@inheritdoc} */ public function rules() { return [ [['action', 'name', 't...
<?php /** ************************************************************************ * * !ATENCION! * * * * Este codigo es generado automáticamente. Si lo modificas, tus cambios ...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\SDK_DATA_1598238000612\Models; use AlibabaCloud\Tea\Model; use AlibabaCloud\SDK\SDK_DATA_1598238000612\Models\ListOapiReportReceiverResponseBody\result; class ListOapiReportReceiverResponseBody extends Model { protected $_na...
<?php namespace AragornYang\Onix\Tests\Features\V30; use AragornYang\Onix\Composites\Product; use AragornYang\Onix\Composites\SupplyDetail; /** * @property Product $product */ trait SampleOnixFile30 { /** @test */ public function it_can_parse_the_sample_file(): void { $this->assertCount(1, stat...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\modules\admin\models\Insert */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Inserts', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="insert-view">...
<?php session_start(); include "../conf/conn.php"; if (isset($_POST['btntambahkayumasuk'])) { $nama = $_POST['nama']; $seri = $_POST['seri']; $panjang = $_POST['panjang']; $jenis = $_POST['jenis']; $lahan = $_POST['lahan']; $banyak = $_POST['banyak']; $m3 = $_POST['m3']; $uang = $_POST['uang']; ...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateGalleriesTable extends Migration { public function up() { Schema::create('galleries', function(Blueprint $table) { $table->increments('id'); $table->string('name'); ...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAttachmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('attachments', function (Blueprint $table) { ...
<?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\CoreBundle\EmailManager; use Sylius\Bundle\CoreBundle\Mailer\Emails; use Syli...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; use App\Unit; use App\Storage; use App\Product; use App\ProductPrice; use App\Storage_Product; use App\ImageProduct; use App\Admin_Action_Storage_Product; use App\Admin_Action_Product; use App\Admin_Action_Product_Price; use App\Comm...
<?php namespace App\Http\Controllers; use App\Models\ViolatorExtraProperty; use Illuminate\Http\Request; class ViolatorExtraPropertyController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // ...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Kelas extends CI_Controller { public function __construct() { parent::__construct(); } public function index(){ $this->data['sites'] = 'Dashboard'; $this->data['kelas'] = $this->Mkelas->getData()...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
<!DOCTYPE html> <html id="classes" class="account"> <?php require_once( 'includes/head.php'); ?> <div class="page-header"> <h1>My Classes</h1> </div> <div class="page-content"> <div class="pagination pagination-right"> <ul> <li class="active"><a>1</a></li> <li><a href="#2">2</a>...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <div class="page-bar"> <div class="page-title-breadcrumb"> <div class=" pull-left"> <div class="page-title"><?= $title; ?></div> </div> <ol class="breadcrumb page-breadcrumb pull-right"> <li><i class="fa fa-home"></i>&nbsp;<a class="p...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use app\models\general\GeneralLabel; /* @var $this yii\web\View */ /* @var $model app\models\RefRatingSoalanPenilaianPeserta */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="ref-rating-soalan-penilaian-peserta-form"> <p class="text-muted"><span st...
@extends('layouts.app') @section('content') @if(count($people)) <ul> @foreach($people as $person) <li>{{$person}}</li> @endforeach </ul> @endif @endsection
<?php namespace App\Web\Actions\KnownDevice; use App\Database\Exceptions\ForeignKeyFailedException; use App\Database\Exceptions\UniqueFailedException; use App\Database\KnownDevice; use App\Web\Actions\Action; use App\Web\Exceptions\NoResultException; use Jinya\PDOx\Exceptions\InvalidQueryException; use Psr\Http\Messa...
<?php use App\Http\Controllers\MealController; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register A...
<!-- breadcrumb --> <div class="container"> <div class="bread-crumb flex-w p-l-25 p-r-15 p-t-30 p-lr-0-lg"> <a href="index.html" class="stext-109 cl8 hov-cl1 trans-04"> Home <i class="fa fa-angle-right m-l-9 m-r-10" aria-hidden="true"></i> </a> <span class="stext-109 cl4"> Shoping Cart </spa...
@extends('layouts.master') @section('titulo', 'Restablecer') @section('content') <div class="m-default"> <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header ...
<?php /** * Template part for displaying single posts. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package ljohnsonsolutions */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <div c...
@extends('layouts.index') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-10"> <div class="card"> <div class="card-header">{{ __('Data Kelurahan') }}</div> <div class="card-body"> <form act...
@extends('layouts.app') @section('title', 'Blind MeetUp | Hochschule Furtwangen') @section('content') <div id="app"></div> @endsection
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Task; // 追加 class TasksController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // メッセージ一覧を取得 $tasks = Task...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> New Invoice </div> <div class="panel-body"> ...
<?php namespace LaravelSwagger\OpenApi; /** * Class FoundRoute * @package LaravelSwagger\OpenApi */ class FoundRoute { protected string $path; protected Method $method; public static function fromPathAndOpenApiMethodName(string $path, string $openApiMethodName) : self { $instance = new se...
<div class="form-group"> <label>Name</label> <input type="text" class="form-control" placeholder="Name" name="name" value="{{old('name')}}"> @error('name') <div class="mt-2 text-danger">{{ $message }}</div> @enderror </div> <div class="form-group"> <label>Username</label> <input type="us...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var app\modules\m1\models\aOrganization $model * @var yii\widgets\ActiveForm $form */ ?> <div class="a-organization-form"> <?php $form = ActiveForm::begin([ 'options' => [ 'class' => 'form-horizontal' ], 'f...
<?php // Heading $_['heading_title'] = 'Забыли пароль?'; // Text $_['text_account'] = 'Личный Кабинет'; $_['text_forgotten'] = 'Забытый пароль?'; $_['text_your_email'] = 'Ваш E-Mail'; $_['text_email'] = 'Введите E-Mail Вашей учетной записи. Нажмите кнопку Вперед, чтобы получить пароль по электронной почте.'...
@extends('layouts.master') @section('title', 'Home') @section('content') <!-- Breadcrumb Section Begin --> <section class="breadcrumb-section set-bg" data-setbg="img/breadcrumb.jpg"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> ...
<?php $DATABASE_URL = parse_url('postgres://bupkfksfufxmwz:1787daf8afd2aac327c6f6810e2c580bd80868e67234c3b6f29929b12b046b2c@ec2-52-202-185-87.compute-1.amazonaws.com:5432/d7bdgmrkaamlln'); use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- ...
<?php namespace App\Http\Controllers\ControlPanel\Pages; use Illuminate\Http\Request; use App\Database\AdminOwner; use App\Database\Customer; use App\Database\DeveloperUser as Developer; use App\Database\MarketingUser as Marketing; use App\Database\ProjectRequest; use App\Database\ProjectList; use App\Database\Projec...
@extends('layouts.page.app') @section('content') <section class="page-title-light breadcrumb_section parallax_bg overlay_bg_50" data-parallax-bg-image="assets/images/about_bg.jpg"> <div class="container"> <div class="row align-items-center"> <div class="col-sm-6"> <div class="page-title"> ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AdminLTE 2 | Data Tables</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="...
<?php if (isset($texto[1])) { if (isset($mensagens['message']['chat']['id'])) { $chatID = $mensagens['message']['chat']['id']; $mensagemID = $mensagens['message']['message_id']; } else { $chatID = $mensagens['message']['reply_to_message']['chat']['id']; $mensagemID = $mensagens['message']['reply_to...
<?php /** * @package Grav\Common\User * * @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Common\User\Traits; use Grav\Common\Grav; use Grav\Common\Page\Medium\ImageMedium; use Grav\Common\User\Authentica...
@extends('system-mgmt.member-tool-admin.base') @section('action-content') <!-- Main content --> <section class="content"> <div class="box"> <div class="box-header"> <div class="row"> <div class="col-sm-8"> <h3 class="box-title">List of Member Tool</h3> </div> <div...
<?php namespace domain\Services\Package; use App\Models\Package\PackageDay; class PackageDayService { protected $package_days; public function __construct() { $this->package_days = new PackageDay(); } public function get($id) { return $this->package_days::find($id); ...
<?php namespace Model; class Tools { static public function trim($str, $len) { if(strlen($str) > $len) { $str = preg_replace("/^(.{1,$len})(\s.*|$)/s", '\\1...', $str); } return($str); } public static function makedirs($dirpath, $mode=0777) { return is_...
<?php namespace tests\codeception\unit\models; use yii\codeception\TestCase; class UserTest extends TestCase { protected function setUp() { parent::setUp(); // uncomment the following to load fixtures for user table //$this->loadFixtures(['user']); } } ?>
<?php declare(strict_types=1); namespace Neighborhoods\Kojo\Db\TearDown\Schema; use Neighborhoods\Kojo\Db\Schema\VersionAbstract; use Neighborhoods\Kojo\Db\Schema\VersionInterface; use Neighborhoods\Kojo\JobStateChange; class Version_6_0_0 extends VersionAbstract { protected function _assembleSchemaChanges(): Ve...
<?php namespace api\modules\canting\controllers; use api\modules\canting\components\ShopCart; use api\modules\canting\filters\ShopFilter; use api\modules\canting\models\ShopMenu; use app\models\ext\ShopActiveDesk; use app\models\ext\ShopDesk; use app\models\ext\ShopShop; use app\models\ext\UserOrder; use app\models\ex...
<?php $mapping = array( 'React\Promise\CancellablePromiseInterface' => __DIR__ . '/React/Promise/CancellablePromiseInterface.php', 'React\Promise\Deferred' => __DIR__ . '/React/Promise/Deferred.php', 'React\Promise\ExtendedPromiseInterface' => __DIR__ . '/React/Promise/ExtendedPromiseInterface.php', 'R...
test @can('添加商家') 添加按钮 (添加商家权限) @endcan @can('修改商家') 修改按钮(修改商家权限) @endcan @can('删除商家') 删除按钮 (删除商家权限) @endcan
@extends('adminlte::page') @section('title', 'Funções') @section('content_header') <h1>Lista de Funções</h1> <div class="container"> <form action="{{route('roles.index')}}" method="get" class="sidebar-form"> <div class="input-group"> <input type="text" name="search" class="form-control" placeholder="P...
@extends('layouts.admin') @section('title', 'SubCategoryPage') @section('content') <div class="header bg-primary pb-6"> <div class="container-fluid"> <div class="header-body"> <div class="row align-items-center py-4"> <div class="col-lg-6 col-7"> <h6 class="...
<?php /** * Created by IntelliJ IDEA. * User: Malesela * Date: 2019/10/19 * Time: 1:12 AM */ spl_autoload_register(function ($class){ $arr=['models/goods', 'models/orders', 'models/reviews', 'models/customer', 'models/admin']; foreach ($arr as $val) { $path=__DIR__...
<?php namespace app\controllers; use Yii; use app\models\Consultorio; use app\models\ConsultorioSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * ConsultorioController implements the CRUD actions for Consultorio model. */ class ConsultorioController extends Contro...
<?php namespace App\Http\Controllers\Seller; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class WithdrawController extends Controller { public function __construct() { $this->middleware('auth:seller'); } public function index () { return view('sellerDashboard....
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTblListOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tbl_list_...
<!DOCTYPE html> <html> <head> <title><?php echo SITE_NAME; ?> - Cloudflare Partners</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"/> <meta name="renderer" content="webkit"/> <meta name="viewport" content="...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Restaurants extends Model { public function contacts(){ $this->hasMany('App\Rest_Language', 'restaurant_id', 'id'); } public function languages() { return $this->belongsToMany(Languages::class, 'rest_language', 'res...
<?php namespace App\Http\Middleware; use Closure; class LoginMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if(session('uid')...
<?php namespace App\Exceptions; use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Session\TokenMismatchException; class Handler extends ExceptionHandler { /** * A list of the exception types that should not be reporte...
<?php namespace Admin\Model\Table; use Cake\ORM\Query; use Cake\ORM\RulesChecker; use Cake\ORM\Table; use Cake\Validation\Validator; /** * Categorias Model * * @property \Cake\ORM\Association\BelongsToMany $Cursos * * @method \Admin\Model\Entity\Categoria get($primaryKey, $options = []) * @method \Admin\Model\E...
@extends('app') @section('content') <h1 class="registro">Hola</h1> @endsection
<?php namespace Wookieb\ZorroDataSchema\Schema\Type\TypeCheck; use Wookieb\TypeCheck\TypeCheckInterface; use Wookieb\ZorroDataSchema\Schema\Type\EnumType; /** * @author Łukasz Kużyński "wookieb" <lukasz.kuzynski@gmail.com> */ class EnumTypeCheck implements TypeCheckInterface { /** * @var \Wookieb\ZorroData...
<?php namespace HTTPQuest\Exceptions; class DecodeException extends \Exception { }
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Nette\DI\Config\Adapters; use Nette; use Nette\DI\Config\Helpers; /** * Reading and generating INI files. */ final class IniAdapter implemen...
<?php namespace Elementor; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor embed class. * * Elementor embed handler class is responsible for Elementor embed functionality. * The class holds the supported providers with their embed patters, and handles * their custom propert...
<?php return [ 'class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ // Pages ['pattern' => 'page/<slug>', 'route' => 'page/view'], // Articles ['pattern' => 'article/index', 'route' => 'article/index'], ['pattern' =>...
@extends('admin.master') @section('tittle','Dinner | edit Dinner') @section('content') <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> ...
<div class="container-fluid"> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800"><?php echo $title ?></h1> </div> <!-- Filter Start--> <div class="card mb-3"> <div class="card-header bg-primary text-white"> Filter Data G...
<?php /** * Description of ActivoType * * @author Gabriel Toledo */ namespace App\BaseBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ActivoType extends AbstractType{ public function setDefaultOptions(OptionsResolverInterface...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCampweeksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('campweeks', f...
<?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 maiorADV\eBaySDK\PostOrder\Types; /** * * @property string $caseId * @property \maiorADV\eBaySDK\Po...
<?php class Admin_ServiceMasterController extends Zend_Controller_Action { protected $_auth; public function init() { $this->_auth = new My_Auth("admin"); if (!$this->_auth->hasIdentity()) { $this->_helper->redirector('index', 'auth'); } $this->_helper->layout()-...
<?php namespace frontend\models; use Yii; /** * This is the model class for table "favorits". * * @property int $id * @property int $master_user_id * @property int $slave_user_id * * @property User $masterUser * @property User $slaveUser */ class Favorits extends \yii\db\ActiveRecord { /** * {@inhe...
<?php session_start(); include('admin_auth.php'); $conn = mysqli_connect('localhost', 'root', '', 'invoice'); $user_check = $_SESSION['email']; $sql = mysqli_query($conn, "SELECT username,admin_image FROM admin WHERE email='$user_check'"); $row = mysqli_fetch_assoc($sql); $login_session1 = $row['username']; $image = ...
<?php /** * Copyright 2013, Campai Business Solutions B.V. (http://www.campai.nl) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2013, Campai Business Solutions B.V. (http://www.campai.nl) * @link http://autotask...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLogsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('logs', function (B...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Like extends Model { protected $fillable = [ 'post_id', 'user_id' ]; }
<?php declare(strict_types=1); namespace Kirameki\Database\Query\Statements; use Kirameki\Database\Query\Support\Range; use Kirameki\Support\Concerns\Tappable; class ConditionDefinition { use Tappable; public ?string $column; public ?string $operator; public bool $negated; public Range|array|...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateIncludesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('includes', fun...
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="an...
<?php namespace jayfir\basics\backend\modules\sys\controllers; use yii; use yii\helpers\Html; use common\helpers\SysArrayHelper; use jayfir\basics\common\models\sys\ConfigCate; use jayfir\basics\backend\controllers\MController; /** * 配置分类控制器 * * Class ConfigCateController * @package jayfir\basics\backend\modules\...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddPriceMiddleToBotSettingsTable extends Migration { public function up() { Schema::table('bot_settings', function (Blueprint $table) { DB::table('bot_...
<?php /** * This file is part of the CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ // RESTful language settings return [ 'notImplemented' => '"{0}...
<?php namespace App\Http\Controllers\Api\Settings; use App\Http\Controllers\Controller; use App\Models\Vps\EmploymentType; use Illuminate\Http\Request; class EmploymentTypeController extends Controller { public function index() { $employment = EmploymentType::all(); return response()->json($...
<?php use Illuminate\Database\Seeder; /** * Created by PhpStorm. * User: waqas * Date: 4/14/2016 * Time: 4:53 PM */ class LandUnitTable extends Seeder { public function run() { DB::table('land_units')->insert([ ['unit'=>'usa'], ['unit'=>'usa1'], ['unit'=>'usa2'], ]); } }
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class EventUserComboResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) ...
<?php namespace EasyCorp\Bundle\EasyAdminBundle\Tests\Controller; use EasyCorp\Bundle\EasyAdminBundle\Tests\Fixtures\AbstractTestCase; class CustomMenuTest extends AbstractTestCase { public function setUp() { parent::setUp(); $this->initClient(['environment' => 'custom_menu']); } pu...
<?php namespace Tests\Feature; use App\Models\Client; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Auth; use Tests\TestCase; class AuthenticationTest extends TestCase { use RefreshDatabase; public function test...
<?php namespace UAM\Tests\Unit\Exceptions\Cloud\AccessDenied; use UAM\Exceptions\Cloud\AccessDenied\InvalidToken; use UAM\Tests\Unit\Exceptions\ExceptionsTestCase; class InvalidTokenTest extends ExceptionsTestCase { protected $exceptionClass = InvalidToken::class; protected $exceptionMessage = 'Access denied:...