text stringlengths 2 1.03M |
|---|
<?php declare(strict_types=1);
namespace Lifeformwp\PHPPUBG\DTO\TelemetryData\Events;
use Lifeformwp\PHPPUBG\DTO\TelemetryData\Objects\Character;
use Lifeformwp\PHPPUBG\DTO\TelemetryData\Objects\Common;
use Lifeformwp\PHPPUBG\DTO\TelemetryData\Objects\Item;
/**
* Class LogItemUnequip
*
* @author Serhii Kondratiu... |
<?php //membuat session
session_start();
if(!isset($_SESSION['nama']))
{
die("Anda belum LOGIN!");
}
if($_SESSION['level']!='admin')
{
die('Anda bukan admin!');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<met... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/opt/lampp/htdocs/ikextremadura/system/languages/pt.yaml',
'modified' => 1512568072,
'data' => [
'FRONTMATTER_ERROR_PAGE' => '---
título: %1$s
---
# Erro: Frontmatter inválida
Caminho: `%2$s`
**%3$s**
```
%4$s
... |
<!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>@yield('title')</title>
<!-- Fonts -->
<link href="... |
<?php namespace EC\Config;
defined('_ESPADA') or die(NO_ACCESS);
use E, EC;
class HConfig
{
static private $Properties = null;
static public function DB_Get(EC\MDatabase $db, $name)
{
$table = new TSettings($db);
$row = $table->row_Where([
[ 'Name', '=', $name ],
]);
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class GoalController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('admi... |
<?php
namespace App\Http\Controllers\Api;
use App\Models\ResProduct;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Resources\ResProductResource;
use App\Http\Resources\ResProductCollection;
use App\Http\Requests\ResProductStoreRequest;
use App\Http\Requests\ResProductUpdateRequest;
c... |
<div class="modal fade bs-example-modal-lg popup1" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<?php if(isset($key)){ ?>
<form class="validate form-horizontal" role="form" id="form-bk" method="POST" action="<?= base_url('vnsa... |
<?php
use kartik\grid\GridView;
use yii\helpers\Html;
use common\models\AuthItem;
/* @var $searchModel backend\models\AuthItemChildSearch */
/* @var $dataProvider backend\models\AuthItemChildSearch */
$this->title = 'Допуски';
$this->registerJs('
$(".delete-all").click(function(){
var keys = $(".gri... |
<?php
namespace Sim\Interfaces;
interface IGenerator
{
/**
* @return mixed
*/
public function generate();
} |
<?php
session_start();
global $pdo;
try {
$pdo = new PDO("mysql:dbname=desafio_googlelivros; host=localhost","root","root");
} catch (PDOException $e) {
echo "FALHA...".$e->getMessage();
exit;
}
?> |
<?php
$lang = array
(
E_EIGHT => array( 1, 'Framework Error', 'Bekijk de Eight documentatie voor meer informatie over deze fout.'),
E_PAGE_NOT_FOUND => array( 1, 'Pagina Niet Gevonden', 'De opgevraagde pagina werd niet gevonden. Mogelijk werd deze verplaatst of verwijderd.'),
E_DATABASE_ERROR ... |
<?php
use Symfony\Component\Translation\MessageCatalogue;
$catalogue = new MessageCatalogue('eu', array (
'validators' =>
array (
'This value should be false.' => 'Balio hau faltsua izan beharko litzateke.',
'This value should be true.' => 'Balio hau egia izan beharko litzateke.',
'This value should ... |
<!doctype html>
<html lang="en" class="fullscreen-bg">
<head>
<title>Login | Klorofil - Free Bootstrap Dashboard Template</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scala... |
<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
$this->title = $name;
?>
<div class="site-error">
<h1><?= Html::encode($this->title) ?></h1>
<div class="alert alert-success">
<i class="fa fa-ok"></i><?= nl2... |
@extends('moonlight::layouts.login')
@section('title', 'Сброс пароля')
@push('scripts')
<script src="{{ asset('packages/moonlight/js/reset.min.js') }}"></script>
@endpush
@section('content')
<div class="login">
<div class="path">
Сброс пароля
</div>
<div class="block">
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Subject extends Model
{
use \Astrotomic\Translatable\Translatable;
protected $guarded = [];
public $translatedAttributes = ['name'];
public function teachers()
{
return $this->hasMany(Teacher::class);
} //en... |
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h4 class="mb-3 header-title">Employee Work Date List</h4>
<div class="form-group">
<input type="text" id="search" class="form-control"... |
<?php
namespace App\Repositories;
use App\Models\LunchDateMenuItem;
/**
* Class LunchDateMenuItemRepository.
*/
class LunchDateMenuItemRepository extends BaseRepository
{
/**
* Associated Repository Model.
*/
const MODEL = LunchDateMenuItem::class;
/**
* @param integer $lunchdate_id
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePhotosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('photos', functio... |
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\CustomerUser $user
*/
?>
<div class="content">
<div class="row">
<div class="users form large-offset-3 large-6 medium-offset-2 medium-8 columns">
<?= $this->Form->create() ?>
<fieldset>
<legend><?= __('Login') ?></leg... |
@extends('layouts.plantillaBase')
@section('contenido')
<h2 style="margin: 1rem; padding: 1rem; text-align: center;">CREAR VEHICULO</h2>
@if ($errors->any())
<div class="alert alert-danger" style="margin: 1rem; padding: 1rem; text-align: center;">
<ul>
@foreach ($errors->all() as $erro... |
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
* Copyright (c) 2015 - 2019 AzuyaLabs
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Sacha Telgenhof <me@sachatelgenhof.com>
*/
// Transl... |
@extends('adminlte::page')
@section('title', 'Editar rol')
@section('content_header')
<h1> Editar rol
</h1>
@stop
@section('content')
<div class="page-header">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Panel administrador</a></li>
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
|... |
<?php
/**
* ALIPAY API: alipay.eco.cplife.roominfo.delete request
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
class AlipayEcoCplifeRoominfoDeleteRequest
{
/**
* 删除物业小区房屋信息
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodC... |
<nav aria-label="...">
<ul class="pager">
<li class="previous"><a href="<?=\yii\helpers\Url::to(['user/index'])?>"><span aria-hidden="true">←</span> 返回用户首页</a></li>
</ul>
</nav>
<?php
$form=\yii\bootstrap\ActiveForm::begin();
echo $form->field($model,'username')->textInput();
echo $form->field... |
<?php
namespace Drush\SiteAlias;
/**
* Inflection trait for the site alias manager.
*
* @deprecated Use \Consolidation\SiteAlias\SiteAliasManagerAwareTrait
*/
trait SiteAliasManagerAwareTrait
{
protected $siteAliasManager;
/**
* @inheritdoc
*/
public function setSiteAliasManager($siteAliasMa... |
<?php
/**
* @author Dmitry Gladyshev <deel@email.ru>
* @date 23/04/2018 09:50
*/
namespace Yandex\Direct\Service;
use Yandex\Direct\Exception\Exception;
use Yandex\Direct\Service;
use function Yandex\Direct\get_param_names;
/**
* Class KeywordBids
*
* Сервис предназначен для назначения ставок и приоритетов клю... |
<?php
namespace App\Http\Controllers\api;
use App\Http\Controllers\BaseController;
use App\Models\Good;
use App\Models\slide;
class IndexController extends BaseController
{
public function index()
{
//轮播图数据
$slides = slide::where('status',1)
->orderBy('seq')
->get();
//分类数据
$cat... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
class LoginController extends Controller
{
/*
|----------------------------------------------... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Project;
class ProjectWaspasSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$waspas = new Project();
$waspas->name = 'Waspas';
$w... |
<?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... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Broadcaster
|--------------------------------------------------------------------------
|
| This option controls the default broadcaster that will be used by the
| framework when an even... |
<?php
/*
* Copyright (C) 2011 OpenSIPS Project
*
* This file is part of opensips-cp, a free Web Control Panel Application for
* OpenSIPS SIP server.
*
* opensips-cp is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software... |
<?php
namespace App\helper;
use App\Admin;
use App\Model\City;
//use App\Model\Manufacturer;
use App\Model\Color;
use App\Model\Mall;
use App\Model\Manufacturer;
use App\Model\Product;
use App\Model\Size;
use App\Model\State;
use App\Model\Weight;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facad... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php foreach ($content3 as $content) { ?>
<div class="container-fluid">
<div class="row">
<div >
<div class="card">
<div class="header">
<h4 class="title">Tambah Content 3</h4>
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=ntent="ie=edge">
<title>Document</title>
</head>
<body>
<h1>Conferma creazione nuova attività</h1>
<p>Complimenti, hai aggiunto con successo la tua nuova attività: <b>{{ $restaurant ->name }}</b>. O... |
<?php
/**
* Meta
*
* PHP version 7.2
*
* @category Class
* @package Ory\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Ory APIs
*
* Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access... |
<?php
namespace Devlabs91\GenericOtaHotelApiService\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for VendorPrefs StructType
* Meta informations extracted from the WSDL
* - documentation: A collection of vendor preferences.
* @subpackage Structs
*/
class VendorPrefs extends ... |
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Address'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Events'), ['controller' => 'Events', 'action' => 'in... |
<?php
namespace App;
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
class Province extends Model
{
protected $collection = 'province';
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Team_task extends Model
{
protected $fillable = [
'team_id',
'user_id',
'task',
'status_id',
];
public function user() {
return $this->belongsTo('App\User');
}
public function team() {
return ... |
<?hh
abstract final class AbsFinalClass {
public static function f() { echo __METHOD__, "\n"; }
}
<<__MockClass>>
final class MockAbsFinalClass extends AbsFinalClass {
public static function f() { echo __METHOD__, "\n"; }
}
MockAbsFinalClass::f(); |
<?php
namespace Imagecow\Libs;
use Imagecow\ImageException;
/**
* GD library.
*/
class Gd extends AbstractLib implements LibInterface
{
public static $fallbackCropMethods = [
'Entropy' => ['center', 'middle'],
'Balanced' => ['center', 'middle'],
];
protected $image;
protected $type... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Employee extends Model
{
use HasFactory;
protected $primaryKey = "employee_id";
protected $fillable = [
"othernames",
"surname",
"abbrv",
"dob... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class contact extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAppointmentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('appointmen... |
<?php
use App\Models\User;
use App\Models\Profession;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// $profession = DB::select('SELECT id FROM profess... |
@extends('frontend.layout.main')
@section('main-content')
<div class="row">
<!-- MAIN-SLIDER-AREA START -->
<div class="main-slider-area">
<!-- SLIDER-AREA START -->
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
<div class="slider-area">
... |
<?php
use Illuminate\Database\Seeder;
class MenuSeed extends Seeder
{
/* example add menu
\trinata::addMenu([
'parent_id' => null,
'title' => 'Management product',
'controller' => '#',
'slug' => 'product',
... |
@extends('portal')
@section('content')
<div class="container">
<h3>Resposta de Forum</h3>
<a href="{{ route('portal.forum.index') }}" class="btn btn-info">Voltar</a>
<br /><br />
<a href="{{ route('portal.forum.response.create', ['forumId' => $forumId]) }}" class="btn btn-default">C... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Lang;
use Illuminate\Foundation\Auth\ThrottlesLogins;
class UserController extends Controller
{
use ThrottlesLogins;
... |
<form action="{{ route('Productos.destroy', $id, $nombre) }}" method="post">
@csrf
@method('DELETE')
<a href="{{ route('Productos.show', $id) }}" class="btn btn-info btn-sm"> Info</a>
<a href="{{ route('Productos.edit', $id) }}" class="btn btn-warning btn-sm">Editar</i></a>
<input type="s... |
<?php
/**
* Immutable object library
*
* @copyright Copyright 2020 Lisachenko Alexander <lisachenko.it@gmail.com>
*
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
declare(strict_types=1);
namespace Immutable;
/**
* This ImmutableInterface marker ma... |
<?php
namespace PlentyConnector\Connector\ValueObject;
abstract class AbstractValueObject implements ValueObjectInterface
{
/**
* @param array $params
*
* @return ValueObjectInterface
*/
public static function fromArray(array $params = [])
{
$object = new static();
for... |
<?php
include_once APPPATH . 'entities/Entity.php';
class StContratos extends Entity
{
protected $id;
protected $id_empresa;
protected $id_usuario;
protected $nome;
protected $depto;
protected $area;
protected $contrato;
protected $data_assinatura;
protected $casts = [
'id' => 'int',
'id_empresa' => 'in... |
<?php
/**
* @author Starx <contact@starx.io>
* @copyright Copyright (c) Nabin Nepal
* @license http://mit-license.org/
*
* @link https://github.com/starx/OAuth2Silex
*/
namespace OAuth2ServerExamples\Providers;
use OAuth2ServerExamples\Controllers\API\UsersController;
use Pimple\Container;
use ... |
<?php
namespace Illuminate\Auth\Access\Events;
class GateEvaluated
{
/**
* The authenticatable model.
*
* @var \Illuminate\Contracts\Auth\Authenticatable|null
*/
public $user;
/**
* The ability being evaluated.
*
* @var string
*/
public $ability;
/**
... |
<?php
namespace WorkerF\Tests\DB;
use WorkerF\DB\Drivers\PDODriver;
use PDOException;
use Closure;
/**
* PDODriverFake class , use mysql quote
*
*/
class PDODriverFake extends PDODriver
{
protected static $_quote_symbol = '`';
// do not create pdo connection
public function __construct($config)
{... |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Prima app in laravel</title>
<link rel="stylesheet" href="{{ asset('css/app.css')}}">
</head>
<body>
<a href="{{ route('mio_nome') }}">Vai alla pagina about</a>
<h1>Hello world!</h1>
</body>
</html> |
@extends('master')
@section('css')
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://js.pusher.com/7.0/pusher.min.js"></script>
<script src="/assets_js/ckeditor/ckeditor.js"></script>
<script src="/as... |
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<div class="container">
<h2>Data Bank</h2>
<!-- Display status message -->
<?php if(!empty($success_msg)){ ?>
<div class="col-xs-12">
<div class="alert alert-success"><?php echo $success_msg; ?></div>
<?php }?>
</... |
<?php
$config = [
'id' => 'yii2-queue-app',
'basePath' => dirname(__DIR__),
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'runtimePath' => dirname(dirname(__DIR__)) . '/runtime',
'bootstrap' => [
'fileQueue',
'mysqlQueue',
'sqliteQueue',
'pgsqlQueue',
... |
@if(count($errors) > 0)
<div class="alert alert-danger">
<ul>
@foreach($errors->all() as $error)
<li>{{$error}}</li>
@endforeach
</ul>
</div>
@endif |
@extends('layouts.app')
@section('content')
<div class="col-md-12">
<div class="panel-heading">
<div class="panel-title text-left">
<h3 class="title">Product</h3>
<hr />
</div>
<header class="panel-heading">
All Product
<div cl... |
<?php
/**
* Pushy: Pushover PHP Client
*
* @author Michael Squires <sqmk@php.net>
* @copyright Copyright (c) 2013-2014 Michael K. Squires
* @license http://github.com/sqmk/Pushy/wiki/License
*/
namespace Pushy\Command;
use Pushy\Client;
use Pushy\Message;
use Pushy\Transport\RequestMessage;
/**
* Send me... |
<?php
namespace Oro\Bundle\BatchBundle\Tests\Unit\Item\Support;
use Oro\Bundle\BatchBundle\Item\Support\UcfirstProcessor;
/**
* Tests related to the UcfirstProcessor class
*
*/
class UcfirstProcessorTest extends \PHPUnit_Framework_TestCase
{
protected $ucfirstProcessor = null;
/**
* {@inheritdoc}
... |
<?php
namespace App\Http\Controllers;
use App\Category;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the ... |
<?php
require_once PUMPCMS_APP_PATH . '/module/user/model/user_model.php';
require_once PUMPCMS_APP_PATH . '/module/user/class/oauth_util.php';
class user_admin_switch extends PC_Controller {
public function index() {
if (empty($_SESSION['pump_'. PC_Config::get('site_id')]['admin_user'])) {
PC... |
<?php
namespace App\Http\Requests\Auth;
use Illuminate\Auth\Events\Lockout;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
class LoginRequest extends FormRequest
{
... |
<?php
namespace app\models\behaviors;
use app\components\BasicBehavior;
class RegionBehavior extends BasicBehavior
{
public $region_name;
/**
* @var array
*/
public $rules = [
['region_name', 'filter', 'filter' => 'trim'],
['region_name', 'default'],
['region_name', 'sa... |
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Dictionary
*
* @ORM\Table(name="dictionary")
* @ORM\Entity(repositoryClass="AppBundle\Repository\DictionaryRepository")
*/
class Dictionary
{
/**
* @var int
*
* @ORM\Colum... |
<?php
declare(strict_types=1);
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalconphp.com>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Test\Integration\Mvc\Model\MetaData... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Medicamento */
$this->title = Yii::t('app', 'Agregar medicamento');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Medicamentos'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="medic... |
<?php
/*Route::get('/provas', function () {
return view('application.prova.index');
})->name('listProvas')->middleware('auth');
Route::get('/cadastrar/prova', function () {
return view('application.prova.nova');
})->name('newProva')->middleware('auth');
Route::post('/user/update/{id}', 'ProvasController@add'... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Resources\UserResource;
use App\Role;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\File;
use Il... |
<?php
/* genre */
$args = array(
'post_type' => 'book',
'post_status' => 'publish',
'category_name' => 'Fiksi',
'posts_per_page' => 5,
);
$arr_posts = new WP_Query( $args );
if ( $arr_posts->have_posts() ) :
while ( $arr_posts->have_posts() ) :
$arr_posts->the_post();
?>
... |
<?php
/** @var \Laravel\Lumen\Routing\Router $router */
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a bre... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
use HasFactory;
protected $fillable = [
'name',
'phone',
'payment_method',
'total',
'date',
];
} |
@extends('layouts.app')
@section('title','Department Create')
@section('content')
<div class="card ">
<div class="card-body">
<form action="{{route('departments.store')}}" method="POST" id="create">
@csrf
<div class="md-form">
<label for="">Dep... |
@extends('admin.layouts.layout')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Категории</h1>
</div>
<... |
<?php
/**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* ... |
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illumina... |
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\SchemaGenerator\AnnotationGenerat... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Ddoscoo\V20171228\Models;
use AlibabaCloud\Tea\Model;
class ConfigDomainAccessModeResponse extends Model
{
/**
* @var string
*/
public $requestId;
protected $_name = [
'requestId' => 'RequestId',
... |
<!-- ============================================================== -->
<!-- end left sidebar -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- wrapper -->
<!-- ===============... |
<?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
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SliderImage extends Model
{
protected $fillable = [
'name',
'full_path',
'download_path',
];
protected $hidden = [
'full_path'
];
} |
<?php
namespace App\Http\Middleware;
use Auth;
Use Illuminate\Support\Facades\Route;
use Closure;
use Illuminate\Http\Request;
class AccesPermission
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
pub... |
<?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2020, 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... |
<?php
namespace App\Http\Livewire\Tipoasignatura;
use App\Models\TipoAsignatura;
use Livewire\Component;
class TipoAsignaturaComponet extends Component
{
public $nombre, $tipo_id, $updateMode=false, $model;
function __construct() {
$this->model=TipoAsignatura::class;
}
public function rende... |
<x-guest-layout>
<x-jet-authentication-card>
<x-slot name="logo">
<x-jet-authentication-card-logo />
</x-slot>
<x-jet-validation-errors class="mb-4" />
<form method="POST" action="{{ route('register') }}">
@csrf
<div>
<x-jet-labe... |
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\CategoriaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="categoria-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... |
<?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\ApiBundle\CommandHandler\Cart;
use Sylius\Bundle\Ap... |
<!-- sidebar part here -->
<nav class="sidebar vertical-scroll ps-container ps-theme-default ps-active-y">
<div class="logo d-flex justify-content-between">
<a href="{{route('landlord.dashboard')}}">
<h2><font>M</font>ICAHHA</h2>
<span>Landlord</span>
</a>
<div class... |
<?php
namespace Jagalan\AmazonAdvertisingApi;
use AmazonAdvertisingApi\Client;
use Jagalan\AmazonAdvertisingApi\ClientV2;
class AmazonAdvertisingApi
{
public function getClient($region = 'na')
{
$config = array(
"clientId" => config("amazon-advertising-api.$region.clientId"),
... |
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\commerce\services;
use Craft;
use craft\commerce\db\Table;
use craft\commerce\models\State;
use craft\commerce\records\State as StateRecord;
use craft\db\Query;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.