text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Requests;
use App\Models\BouquetCategory;
use Gate;
use Illuminate\Foundation\Http\FormRequest;
use Symfony\Component\HttpFoundation\Response;
class MassDestroyBouquetCategoryRequest extends FormRequest
{
public function authorize()
{
abort_if(Gate::denies('bouquet_category_d... |
@if($configData["mainLayoutType"] == 'horizontal' && isset($configData["mainLayoutType"]))
<nav class="header-navbar navbar-expand-lg navbar navbar-with-menu {{ $configData['navbarColor'] }} navbar-fixed">
<div class="navbar-header d-xl-block d-none">
<ul class="nav navbar-nav flex-row">
<li class="nav-item... |
<?php
/**
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, a... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class subject extends Model
{
use HasFactory;
public function createdByTeacherUser()
{
return $this->hasOne(User::class, 'userId', 'userId');
//return $this->hasMany... |
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* CharacterRaces Controller
*
* @property \App\Model\Table\CharacterRacesTable $CharacterRaces
*
* @method \App\Model\Entity\CharacterRace[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = [])
*/
class Character... |
<?php
namespace AlibabaCloud\Client\Tests\Mock\Services\Slb;
use AlibabaCloud\Client\Result\Result;
use GuzzleHttp\Psr7\Response;
/**
* Class DescribeRulesRequestMock
*
* @package AlibabaCloud\Client\Tests\Mock\Services\Slb
*/
class DescribeRulesRequestMock extends DescribeRulesRequest
{
/**
* @param... |
<?php
namespace common\components;
use Yii;
class CommonFunctionController extends \yii\web\Controller
{
public function init(){
parent::init();
}
public function getMaxId($Model_Name='', $Field_Name=''){
$command = (new \yii\db\Query())
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFollowsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('follows', funct... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Ens\V20171110\Models\DescribeDataDistResultResponseBody;
use AlibabaCloud\SDK\Ens\V20171110\Models\DescribeDataDistResultResponseBody\distResults\distResult;
use AlibabaCloud\Tea\Model;
class distResults extends Model
{
/**
... |
<?php
namespace Gedmo\Translatable;
use Doctrine\Common\EventArgs;
use Gedmo\Tool\Wrapper\AbstractWrapper;
use Gedmo\Mapping\MappedEventSubscriber;
use Gedmo\Translatable\Mapping\Event\TranslatableAdapter;
/**
* The translation listener handles the generation and
* loading of translations for entities which implem... |
<?php
/**
* @author Nickolay Mikhaylov <sonny@milton.pro>
* @copyright Copyright (c) 2019, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\DBAL\Types;
... |
<?php
namespace backend\components\validators;
use yii\validators\Validator;
use Yii;
class EavUniqueValidator extends Validator {
/**
* @var string the name of the ActiveRecord class that should be used to validate the uniqueness
* of the current attribute value. If not set, it will use the ActiveRec... |
@extends('layouts.admin_layouts.master')
@section('content')
<!-- Hero -->
<div class="bg-image bg-image-bottom" style="background-image: url({{ asset('assets/media/photos/photo34@2x.jpg') }});">
<div class="bg-primary-dark-op">
<div class="content content-top text-center overflow-hidden">
<div... |
<?php
use mrstroz\wavecms\page\components\helpers\Front;
use mrstroz\wavecms\page\models\PageItem;
/** @var PageItem $item */
?>
<div class="row">
<div class="col-md-4">
<?= Front::img($item->image, false, ['class' => 'img-responsive thumbnail']); ?>
</div>
<div class="col-md-8">
<h3><?=... |
<?php
namespace App\Http\Livewire\Market;
use Livewire\Component;
use Livewire\WithFileUploads;
use Livewire\WithPagination;
class FormCreatePromocion extends Component
{
use WithFileUploads;
use WithPagination;
public $titulo;
public $descripcion;
public $seccion_index = 'SUPERIOR';
public... |
<?php
use \Model\Users;
use Firebase\JWT\JWT;
class Controller_Stories extends Controller_Base
{
public function post_create()
{
$authenticated = $this->authenticate();
$arrayAuthenticated = json_decode($authenticated, true);
if($arrayAuthenticated['authenticated'])
{
$decodedToken = J... |
<?php
class maxiPago_XmlBuilder extends maxiPago_RequestBase
{
protected $xml;
public function __construct($array)
{
$this->merchantId = $array["merchantId"];
$this->merchantKey = $array["merchantKey"];
}
protected function setBoleto()
{
$this->setRequest();
$... |
@extends('userlayout')
@section('content')
<!-- header begin -->
<header class="transparent">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="de-flex sm-pt10">
<div class="de-flex-col">
<div class="de-fle... |
<?php
namespace Oro\Bundle\NavigationBundle\Tests\Behat\Context;
use Behat\Symfony2Extension\Context\KernelAwareContext;
use Behat\Symfony2Extension\Context\KernelDictionary;
use Oro\Bundle\NavigationBundle\Tests\Behat\Element\PinPageButton;
use Oro\Bundle\TestFrameworkBundle\Behat\Context\OroFeatureContext;
use Oro\... |
<?php
declare(strict_types=1);
/*
* @author Martin Fris <rasta@lj.sk>
*/
namespace BetterSerializer\DataBind\MetaData\Reader\PropertyReader\TypeResolver;
use BetterSerializer\DataBind\MetaData\Reader\PropertyReader\Context\PropertyContextInterface;
use BetterSerializer\DataBind\MetaData\Type\TypeInterface;
/**
*... |
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <info@softlab24.com>
* @copyright 2014-2017 SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(UsersTableSeeder::class);
$this->call(ConfigurationsTableSeeder::class);
}
} |
<?php
declare(strict_types=1);
namespace Simplette\Loader;
class Loader
{
/** @var bool */
private $debugMode;
/** @var string */
private $wwwDir;
/** @var AssetsCompiler */
private $loaderCompiler;
/** @var PathCompiler */
private $pathCompiler;
/** @var FilesProvider */
private $filesProvider;
/**... |
<?php
declare (strict_types=1);
namespace Rector\Transform\Rector\Attribute;
use PhpParser\Node;
use PhpParser\Node\Attribute;
use PhpParser\Node\Identifier;
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Transform\ValueObject\AttributeKeyToClassConstFet... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddImageToBook extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('books', function (Bl... |
<?php
namespace DanBallance\OasLumen\Http;
use Psr\Http\Message\ServerRequestInterface;
class RequestHeaders
{
protected $headerFactory;
protected $request;
protected $headers = [];
public function __construct(
HeaderFactory $headerFactory,
ServerRequestInterface $request
) {
... |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integr... |
<?php
/**
* @author Viktar Dubiniuk <dubiniuk@owncloud.com>
*
* @copyright Copyright (c) 2018, ownCloud GmbH
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Fou... |
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200822150159 extends AbstractMigration
{
public function getDescription() : string
{... |
<?php
class Login_model extends CI_Model {
public function check_user($login, $pwd)
{
$this->db->select();
$this->db->from("admin");
$this->db->where("email", $login);
$this->db->where("mdp", $pwd);
$query = $this->db->get();
$query = $query->row();
r... |
<?php
namespace App\Console\Commands;
use App\Models\Order;
use App\Models\Product;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Throwable;
class QueryProductStock extends Command
{
/**
* The name and signature of the console command.
*
... |
<?php
declare(strict_types=1);
namespace AbterPhp\Admin\Service\Execute;
use AbterPhp\Admin\Domain\Entities\AdminResource;
use AbterPhp\Admin\Domain\Entities\ApiClient as Entity;
use AbterPhp\Admin\Orm\ApiClientRepo as GridRepo;
use AbterPhp\Admin\Validation\Factory\ApiClient as ValidatorFactory;
use AbterPhp\Framew... |
@extends('layouts.owner')
@section('content')
<div class="container">
<div class="table-wrapper">
<div class="card-body">
<div class="row">
<div class="col-md-12"><h2>Khách sạn: {{$hotel->name}}</h2></div>
... |
<?php
/**
* Created by PhpStorm.
* User: ELL
* Date: 02/11/2017
* Time: 11.37
*/
namespace backend\models;
class Agama extends BaseModel
{
public function behaviors()
{
return [];
}
public static function tableName()
{
return 'agama';
}
public static function primar... |
<?php
namespace backend\controllers;
use backend\models\Translation;
use Yii;
use backend\models\User;
use backend\models\SearchUser;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
use frontend\models\Language;
//use frontend\models\SignupForm;
/*... |
<?php
/**
* The Mail_mimePart class is used to create MIME E-mail messages
*
* This class enables you to manipulate and build a mime email
* from the ground up. The Mail_Mime class is a userfriendly api
* to this class for people who aren't interested in the internals
* of mime mail.
* This class however allows ... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Zizaco\\Confide\\' => array($vendorDir . '/zizaco/confide/src/Confide'),
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
'League\\Fractal\\' => arra... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repository\UserRepository;
use Validator;
use Exception;
use Session;
use Mail;
use DB;
use Hash;
use Cookie;
use Segment;
use DateTime;
class BuyerController extends Controller
{
private $users_... |
<?php
use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('fr', array (
'validators' =>
array (
'This value should be false.' => 'Cette valeur doit être fausse.',
'This value should be true.' => 'Cette valeur doit être vraie.',
'This value should be of type {{ type }... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class WcCustomerLookup extends Model
{
protected $connection = 'mysql_wp';
protected $table = 'wc_customer_lookup';
} |
<?php
namespace CEPROZAC\Http\Requests;
use CEPROZAC\Http\Requests\Request;
class RecepcionCompraRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get ... |
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. T... |
<?php
namespace firstborn\migrationmanager\services;
use Craft;
use craft\models\Section;
use craft\models\Section_SiteSettings;
use craft\models\EntryType;
use craft\models\Entry;
use firstborn\migrationmanager\events\ExportEvent;
class Sections extends BaseMigration
{
/**
* @var string
*/
protec... |
<!DOCTYPE html>
<html dir="{{ App()->getLocale() == 'ar'? 'rtl' : 'ltr' }}">
<head>
@php
if (auth()->guard('admin')->check()){
$admin = \App\Admin\Admin::find(auth()->guard('admin')->user()->id);
}
@endphp
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tb_komentar extends Model
{
//
protected $table = 'tb_komentar';
protected $fillable = ['kd_komentar','kd_aduan','kd_admin','status','komentar'];
} |
<?php
// $Id: edit_entry_handler.php,v 1.22.2.5 2007/02/13 12:53:27 jberanek Exp $
require_once "grab_globals.inc.php";
include "config.inc.php";
include "functions.inc";
include "$dbsys.inc";
include "mrbs_auth.inc";
include "mrbs_sql.inc";
# Capitalise name of booker & creator
$name = ucwords ($name) ;
$create_by =... |
@extends('templateblog.content')
@section('contents')
<!-- row -->
<!-- post -->
<div class="col-md-8 hot-post-left">
<div class="post post-thumb">
<a class="post-img" href="blog-post.html"><img src="{{ asset('public/frontend/img/hot-post-1.jpg') }}" alt=""></a>
<div class="post-body">
... |
<?php
namespace App\Http\Services\Product;
use Illuminate\Support\Facades\Session;
use App\Models\Product;
use Illuminate\Support\Facades\DB;
class ProductServices
{
public function create($request,$file){
try{
Product::create([
'name_pro'=>(string) $request->input('name_pro'),... |
<?php $this->view('message') ?>
<!-- Page Heading -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Data Pelanggan</h6>
</div>
<div class="card-body">
<div class="my-2">
<a href="<?php echo site_url('pelanggan/add') ?>... |
<?php
declare(strict_types=1);
namespace Wirgen\LaravelMfa\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
/**
* Class MfaOtp
* @package Wirgen\LaravelMfa\Models
*
* @property int $id
* @property int $mfa_id
* @property Collection $passwords
*... |
<?php
/*
* Copyright 2011 Johannes M. Schmitt <schmittjoh@gmail.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://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTransactionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transactio... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ServiceDetail extends Model
{
use HasFactory;
} |
<?php
/**
* States.
*
* LICENSE
*
* This source file is subject to the MIT license
* license that are bundled with this package in the folder licences
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to richarddeloge@gmail.com so w... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Empresas';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="empresa-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('... |
<?
$code = $_GET['c'];
if($code){
include "config.php";
$data = array_pop( R::find( 'redirecttable', 'code = ?', array($code)) );
echo '<script> location="'.$data->link.'" </script>';
}
?> |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = ['name', 'slug'];
public function blog(){
return $this->belongsToMany(Blog::class);
}
} |
<?php
namespace App\Models;
class Post extends BaseModel
{
//protected $guarded = [];//不可以注入的数据字段
/* protected $fillable = ['title','content'];//可以注入的数据字段*/
//关联用户
public function user(){
return $this->belongsTo('App\Models\User','user_id','id');
}
//评论模型
public function comment()... |
<!-- Nav Item - Dashboard -->
<li class="nav-item active">
<a class="nav-link" href="<?= base_url('dashboard'); ?>">
<i class="fas fa-fw fa-tachometer-alt"></i>
<span>Dashboard</span></a>
</li>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Heading -->
<div class="sidebar-heading">
Menu Administrator
</div>... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>UEK - Meranti... |
<!DOCTYPE html>
<html lang="en">
<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="description" content="">
<meta name="author" content="">
<title>Contact</title>
<link href... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
$configs = array(
'TAGLIB_BUILD_IN' => THINKCMF_CORE_TAGLIBS . ',Portal\Lib\Taglib\Portal',
'HTML_CACHE_RULES' => array(
// 定义静态缓存规则
// 定义格式1 数组方式
'article:index' => array('portal/article/{id}',600),
'index:index' => array('portal/index',600),
'list:index' => array(... |
@extends('layout/main')
@section('title', '.:MOTTOON - TAMBAH DATA SISWA:.')
@section('container')
<main class="app-content">
<div class="app-title">
<div>
<h1><i class="fa fa-laptop"></i> Tambah Data</h1>
<p>Input Data Siswa</p>
</div>
<ul class="app-breadcrumb breadcrumb"... |
<?php
class Admin extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->module = 'admin';
$this->load->library('gz');
$this->load->library('ci_jwt');
$this->data['token'] = $this->session->userdata('token');
if (!isset($this->data['token']... |
<?php
/**
* 物流工具
*
*
*
* * @好商城 (c) 2015-2018 33HAO Inc. (http://www.33hao.com)
* @license http://www.33 hao.c om
* @link 交流群号:138182377
* @since 好商城提供技术支持 授权请购买shopnc授权
*/
defined('In33hao') or exit('Access Invalid!');
class store_transportControl extends BaseSellerControl {
public funct... |
<aside
class="{{$configData['sidenavMain']}} @if(!empty($configData['activeMenuType'])) {{$configData['activeMenuType']}} @else {{$configData['activeMenuTypeClass']}}@endif @if(($configData['isMenuDark']) === true) {{'sidenav-dark'}} @elseif(($configData['isMenuDark']) === false){{'sidenav-light'}} @else {{$config... |
<?php
declare(strict_types=1);
namespace Rector\Core\PhpParser\Parser;
use PhpParser\Node\Stmt;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitor\NodeConnectingVisitor;
use PhpParser\Parser;
use PhpParser\ParserFactory;
use Symplify\SmartFileSystem\SmartFileSystem;
final class SimplePhpParser
{
private Par... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
use HasFactory;
public function products () {
return $this->belongsToMany(Product::class,'orders_has_products')
->withPivot('amount')
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
<?php
/**
* Clean personal cache
*
* @author Anton Shevchuk
* @created 12.06.12 12:27
*/
namespace Application;
use Bluz;
return
/**
* Clean data
*
* @privilege Management
* @return \closure
*/
function () {
/**
* @var Bootstrap $this
*/
$userId = $this->getAuth()->getIdentity()->id;
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('password... |
<?php
return [
[
'uid' => 'uid_driver',
'user_id' => 3,
'firebase_token' => 'd43lwx2ljuk:APA91bGDBEycRGJ60fNeZ08Xl5RIZlH5GLInWyjzTHPVSRkyVltm8G0P55wVskYZ8ZGWFkw207xBSZlukA0sNIFqYRdtDOcd_LbLVfkhPRPpcLPBj4myZ1bxtwodtm45Vwd0gxMtKO-6',
'name' => 'Android'
],
[
'uid' => 'u... |
<?php
namespace common\models;
use Yii;
use yii\helpers\ArrayHelper;
use backend\modules\user\models\Parents;
use backend\modules\user\models\Student;
use backend\modules\user\models\Teacher;
/**
* User model
*
* @property integer $id
* @property string $mobile
* @property string $password
* @property string $p... |
<?php
namespace Finance\Controller;
use Common\Controller\BaseController;
class McReportController extends BaseController {
public function indexAction()
{
if(is_user_brand())
{
$clubs = M("Club")->where(array("brand_id"=>get_brand_id()))->field('id,club_name')->order("id desc")->select();
}
else
{
... |
<div class="slider">
<div class="camera_wrap">
<?php foreach ($model as $image): ?>
<div data-src="<?= '/upload/multy-thumbs/' . $image->name ?>"></div>
<?php endforeach ?>
</div>
</div>
</header> |
<?php
declare(strict_types=1);
namespace Thinktomorrow\Chief\Site\Urls\Application;
use Illuminate\Support\Collection;
use Thinktomorrow\Chief\Site\Urls\UrlRecord;
use Thinktomorrow\Chief\Site\Visitable\BaseUrlSegment;
use Thinktomorrow\Chief\Site\Visitable\Visitable;
final class SaveUrlSlugs
{
/** @var bool */... |
@extends('layouts.app')
@section('title', "Авторизация")
@section('content')
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Авторизация') }}</div>
<div class="card-body">
<for... |
@extends('layouts.app')
@section('content')
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">
Listing <span class=" float-right"> <a href="/" class="btn btn-success ">Go back</a></span>
</div>
... |
<?php
/* config/form_display/fieldset_top.twig */
class __TwigTemplate_845d95330ca550133fe27c3b823ba7fe2c538571dd8a7daf87978908e198fa07 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Prepaid extends Model
{
protected $fillable = ['id','mobile_phone_number','value','total','order_number','status','created_date','modified_date'];
protected $table = 'prepaids';
protected $primaryKey = 'id';
public $timestamps = false... |
<?php namespace B50\Forums\Posts\Report;
use B50\Forums\Core\Repositories\EloquentRepo;
/**
* EloquentPostReport repository
*
* @package B50\Forums\Posts\Report
*/
class EloquentPostReportRepo extends EloquentRepo implements PostReportRepoInterface
{
public function __construct(EloquentPostReport $report)
... |
<?php
require_once 'lib/base.php';
require_once 'services/requests.php';
class Test extends Base{
var $myDb = null;
function __construct () {
parent::__construct($this->myDb);
}
public function index() {
$title = "Some title";
$view = 'test';
return [$view, [
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Cathedra extends Model
{
protected $fillable= ['title'];
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDetalleventasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('detalleve... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Candidate;
/**
* CandidateSearch represents the model behind the search form of `app\models\Candidate`.
*/
class CandidateSearch extends Candidate
{
/**
* @inheritdoc
*/
public function rules(... |
<!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">
<title>Malang Quality Assurance</title>
<!-- General CSS Files -->
<link rel="stylesheet" href="{{ asset('modules/bootstrap/css/boot... |
@extends('layouts.app')
@section('content')
<div class="title m-b-md">
Post edit
</div>
@include('post.form')
@endsection |
<?php
/**
* Created by PhpStorm.
* User: gordon
* Date: 16/4/2561
* Time: 14:55 น.
*/
namespace Suilven\CommonFormsSpamProtection;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\Form;
class MemberProfilesSpamProtectionExtension extends Extension
{
/**
* Enable spam protection for the member ... |
<?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")... |
<?php
namespace App\Http;
use App\Http\Middleware\LocaleCheck;
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 arra... |
<?php
namespace NlpTools\Tokenizers;
class RegexTokenizerTest extends \PHPUnit_Framework_TestCase
{
/**
* Test simple splitting patterns
*/
public function testSplit()
{
// check split1
$tok = new RegexTokenizer(array(
"/\s+/"
));
$tokens = $tok->toke... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Workout extends Model
{
use HasFactory;
protected $table = 'workouts';
protected $fillable = [
'session',
'exercise_no',
'equipment',
'weight_... |
<?php
namespace Ups;
interface JsonResponseInterface
{
/**
* @return stdClass
*/
public function getResponse();
/**
* @param stdClass $response
*/
public function setResponse($response);
/**
* @return string
*/
public function getText();
/**
* @param s... |
<?php
// CONCATENAÇÃO DE STRINGS
$_marca = "Fiat";
$_nome = "Uno";
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Curso PHP FUNDAMENTAL</title>
</head>
<body>
<p><?php
echo $_marca . " " . $_nome;
// o ponto indica concat... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model backend\models\UserProfile */
$this->title = 'Update User Profile: ' . ' ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'User Profiles', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Outros */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="outros-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'criatividade')->textarea(['rows' => 6]) ?>
<?= ... |
@extends('admin.layouts.app')
@section('title') @lang('trans.user_profile') @endsection
@push('style')
<style>
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
/*color: #fff;*/
background-color: #17a2b8;
}
.nav-pills .nav-link:not(.active):hover {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.