text stringlengths 2 1.03M |
|---|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $title
* @property string $description
* @property string $image
* @property string $level
* @property string $duration
* @property string $created_at
* @property string $updated_at
*/
class Quiz e... |
<?php
/*
* This file is part of the Eduostia package.
*
* (c) Eduostia Corporation <http://eduostia.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cqrs\Query;
/**
* @author Iqbal Maulana <iq.bluejack@gmail.... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SectionQuestionScores extends Model
{
use HasFactory;
protected $table = 'section_question_scores';
protected $fillable = [
'section_id',
'question_type_id',
's... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExportProduto extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('export_produto... |
<?php
use Illuminate\Database\Seeder;
use App\Project;
class ProjectsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Project::create([
'name' => 'Ixpress Logistics',
'subtitle' => 'A fast-growing pickup a... |
<?php
/**
* CorRoleMenu
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package pa_back
* @subpackage model
* @author Your name here
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
class CorRoleMenu extends BaseCorRoleMenu
{
} |
<?php
return array (
'<strong>Confirm</strong> post deleting' => '',
'Cancel' => 'キャンセル',
'Delete' => '削除',
'Do you really want to delete this post? All likes and comments will be lost!' => '',
); |
<?php
declare(strict_types=1);
namespace Stu\Module\Ship\Action\UnloadBattery;
use request;
use Stu\Component\Ship\System\ShipSystemTypeEnum;
use Stu\Module\Control\ActionControllerInterface;
use Stu\Module\Control\GameControllerInterface;
use Stu\Module\Ship\Lib\ShipLoaderInterface;
use Stu\Module\Ship\View\ShowSh... |
<?php
namespace OhSeeSoftware\LaravelServerAnalytics\Tests;
use Illuminate\Foundation\Testing\RefreshDatabase;
use OhSeeSoftware\LaravelServerAnalytics\RequestDetails;
use OhSeeSoftware\LaravelServerAnalytics\Facades\ServerAnalytics;
class RequestDetailsTest extends TestCase
{
use RefreshDatabase;
/** @test... |
<?php
session_start();
include_once('includes/core.php');
include_once('includes/header.php');
?>
<!-- Page Title -->
<div class="page-title-container">
<div class="container">
<div class="row">
<div class="col-md-12 wow fadeIn">
<i class="fa fa-user"></i>
... |
<?php
namespace Wnx\Emojis\Emojis;
/**
* BirthdayCake Emoji class.
*
* @version v13.1
*
**/
class BirthdayCake
{
public const SYMBOL = "🎂";
public const HEX = "1F382";
public const CODE = "\u{1F382}";
public const NAME = 'birthday cake';
public const GROUP = 'Food & Drink';
public c... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateGymsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gyms', function (Blueprint $table) {
$table->... |
<!DOCTYPE HTML>
<!--
Dopetrope by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<?php
session_start();
if (isset($_SESSION['user'])) {
include('ligaBD.php');
$type="Select Tipo from utilizador where User ='".$_SESSION['user']."'";
... |
<?php
namespace Library\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesRe... |
<?php
/**
* Created by PhpStorm.
* User: joshgulledge
* Date: 3/5/18
* Time: 2:33 PM
*/
namespace LCI\Blend\Blendable;
trait DescriptionGetterAndSetter
{
/**
* @return string
*/
public function getFieldDescription()
{
return $this->blendable_xpdo_simple_object_data['description'];
... |
<?php
/* @Framework/FormTable/hidden_row.html.php */
class __TwigTemplate_4a91d34649b4e93102089a388ef800efdddc543c4986d9e0823514e145a42b48 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
... |
<?php
/**
* This class provides the means to add Post Meta boxes.
*
* @package Beans\Framework\Api\Post_Meta
*
* @since 1.0.0
*/
/**
* Handle the Beans Post Meta workflow.
*
* @since 1.0.0
* @ignore
* @access private
*
* @package Beans\Framework\API\Post_Meta
*/
final class _Beans_Post_Meta {
/**
* M... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these ... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\TestController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your applica... |
<?php
namespace Kanekoelastic\PhpCodenberg;
class FormatTest extends \PHPUnit\Framework\TestCase
{
/**
* Setup before running any test case.
*/
public static function setUpBeforeClass()
{
}
/**
* Clean up after running all test cases.
*/
public static function tearDownAfte... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies ... |
<?php
/*if(isset($_GET['edel']))
{
session_start();
$mail=$_SESSION['mail']; */
$name=$_GET["pid"];
$con = mysqli_connect("localhost","root","","project","3306");
if (!mysqli_connect_errno())
{echo "connection2";
$result=mysqli_query($con,"select * from user where mail='$name' ");
if(mysqli_num_rows($result)... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dataworkspublic\V20200518\Models\ListResourceGroupsResponseBody;
use AlibabaCloud\Tea\Model;
class data extends Model
{
/**
* @var string
*/
public $bizExtKey;
/**
* @var string
*/
public $cl... |
<?php
namespace Modules\Activity\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class ActivityController extends Controller
{
public function index()
{
dd('Your activity');
}
public function pusherAuth(Request $request)
{
... |
<?php
namespace Wdevkit\Admin\Tests;
use Wdevkit\Admin\Models\Admin;
use Wdevkit\Admin\AdminServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;
class TestCase extends Orchestra
{
public function setUp(): void
{
parent::setUp();
// set admin user provider for tests
$this->... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
<?php
namespace App\Http\Controllers\Api\V1\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Traits\MediaUploadingTrait;
use App\Http\Requests\StoreTaskUploadedFileRequest;
use App\Http\Requests\UpdateTaskUploadedFileRequest;
use App\Http\Resources\Admin\TaskUploadedFileResource;
use App\Models\Ta... |
<!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">
<title>Laravel</title>
<link href="{{ url('/css/app.css')}}" rel="stylesheet">
<!-- Fonts -->
<link href='//fonts.googleapis.... |
<?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
use app\models\Category;
use app\models\Categs;
use app\models\Tovar;
use yii\data\Pagination;
class SiteController ... |
<?php
require_once (dirname(__FILE__).'/../../../boot.php');
require_once (dirname(__FILE__).'/../../../3rd-party/sag/src/Sag.php');
require_once (dirname(__FILE__).'/../../../Sag-support-functions.php');
/*ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);*/
$ip = (array_key_e... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">Aggiungi post</div>
<div class="card-body">
<form action="{{route... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Customer;
use App\Http\Resources\Customer as CustomerResource;
class SearchController extends Controller
{
public function index()
{
$data = request()->validate([
'searchTerm' => 'required'
]);
$cus... |
<?php
/**
*
* liveSite - Enterprise Website Platform
*
* @author Camelback Web Architects
* @link https://livesite.com
* @copyright 2001-2019 Camelback Consulting, Inc.
* @license https://opensource.org/licenses/mit-license.html MIT License
*
*/
function get_cross_sell_items($request) {
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pb.proto
namespace GPBMetadata;
class Pb
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized =... |
<!DOCTYPE html>
<html>
<head>
<title>Laravel 7 Progress Bar File Upload Using Tutorial</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src... |
<?php
namespace SA\Models;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
class SegUsers extends Model implements Transformable
{
use TransformableTrait;
protected $fillable = [
'email',
'email_alt',
... |
<?php
namespace Pi\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
class Inspire extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'inspire';
/**
* The console command descripti... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Card extends Model
{
protected $fillable = [
'user_id',
'made_at',
'card_type'
];
//
public function user()
{
return $this->belongsTo('App\User', 'user_id');
}
public function card_type()
... |
<?php
/*
* This file is part of the CometbyTheme package.
*
* (c) Alexandr Shevchenko [comet.by] alexandr@comet.by
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CometbyTheme\Core;
use CometbyTheme\SingletonTrait;
us... |
<?php
namespace app\modules\canteen\controllers;
use app\modules\accounts\models\User;
use app\modules\canteen\models\OrderSearch;
use app\modules\canteen\models\ReportForm;
use app\modules\canteen\models\ReportSearch;
use app\modules\canteen\Module;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
cl... |
<?php
class MemberOrder
{
/**
* Constructor
*/
function __construct($id = NULL)
{
//set up the gateway
$this->setGateway(pmpro_getOption("gateway"));
//get data if an id was passed
if($id)
{
if(is_numeric($id))
return $this->getMemberOrderByID($id);
else
return $this->get... |
<?php
namespace App\Models;
use App\Interfaces\Likeable;
use App\Traits\LikeableTrait;
use App\Traits\PaginateTrait;
use App\Traits\SearchTrait;
use Cviebrock\EloquentSluggable\Sluggable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\... |
<?php namespace Bkwld\Decoy\Fields\Traits;
/**
* Methods to assist in inserting markup needed for more
* complex UIs at specific places in a form group
*/
trait InsertMarkup {
/**
* Insert $html before the help-block
*
* @param string $html
* @return void
*/
public function beforeBlockHelp($h... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{{asset('css/app.css')}}">
{{-- fontawesome --}}
<l... |
<!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">
<title><?= $title ?></title>
<!-- <link href="http://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900... |
<?php
namespace Elbgoods\SwissCantonRule\Rules;
use Exception;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Facades\Lang;
use InvalidArgumentException;
use Wnx\SwissCantons\Canton;
use Wnx\SwissCantons\CantonManager;
class SwissCantonRule implements Rule
{
public const FORMAT_ABBREVIATION = '... |
<?php
class Session {
private $signed_in = false;
public $user_id;
function __construct(){
session_start();
$this->check_the_login();
}
public function is_signed_in() {
return $this->signed_in;
}
public function login($user) {
if($user) {
$this->user_id = $_SESSION['use... |
<?php
global $wpdb;
// текущая версия ядря
$current_wpg_core_version = get_option('wpg_core_version');
// текущая версия плагина
$current_wpg_version = get_option('wpg_version');
if (!$current_wpg_version) { // версия не определена, ставим 1.1.7
add_option('wpg_core_version', '1.1.7', ' ', 'no')... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
use App\Models\User;
use GuzzleHttp\Psr7\Request;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="cache-control" content="no-store" />
<meta http-equiv="cache-control"... |
<?php
namespace TheAz928\Life\entity\animal;
use pocketmine\entity\Entity;
use pocketmine\entity\Human;
use pocketmine\entity\Living;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\nbt\tag\Compo... |
<?php
/**
* @package util
*
* Parses an expression with parentheses into a multidimensional array
*/
namespace bbn\Util;
// @rodneyrehm
// http://stackoverflow.com/a/7917979/99923
class Pparser
{
// something to keep track of parens nesting
protected $stack = null;
// current level
protected $curr... |
<?php
/**
* @author: Doug Wilbourne (dougwilbourne@gmail.com)
* @version 1.0
*/
namespace pvc\formatter\text;
/**
* Class FrmtrText
* @package pvc\formatter\text
*/
class FrmtrText
{
public function format(string $x) : string
{
return $x;
}
} |
<?php
$SETTING['user_agent'] = array(
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246',
'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko',
'Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0... |
<?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
class CustomsEtmsGetWaybillCodeByOrderCodeRequest
{
private $apiParas = array();
public function getApiMethodName(){
return "jingdong.customs.etms.getWaybillCodeByOrderCode";
}
public function getApiParas(){
return json_encode($this->apiParas);
}
public function check(){
}
public function ... |
<div>
<h4>
Listado de Proveedores
</h4>
</div>
<table class="table data-table table-striped" id="table-user">
<thead>
<tr>
<th>Nombre</th>
<th>RUC</th>
<th>Editar</th>
<th>Eliminar</th>
</tr>
</thead>
<tbody>
@forea... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Editar aluno</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1... |
<?php
namespace Bitrix\Landing;
abstract class Field
{
/**
* Field code.
* @var string
*/
protected $code;
/**
* Field value.
* @var string
*/
protected $value;
/**
* Field title.
* @var string
*/
protected $title;
/**
* Field help.
* @var string
*/
protected $help;
/**
* Class c... |
<?php
namespace Shaarli\Feed;
use DateTime;
use Shaarli\Bookmark\Bookmark;
use Shaarli\Bookmark\BookmarkServiceInterface;
use Shaarli\Formatter\BookmarkFormatter;
/**
* FeedBuilder class.
*
* Used to build ATOM and RSS feeds data.
*/
class FeedBuilder
{
/**
* @var string Constant: RSS feed type.
*/
... |
<?php
class Profile_Builder_Form_Creator{
private $defaults = array(
'form_type' => '',
'form_fields' => array(),
'form_name' => '',
'role' => '', //used only for the register-form settings
'redirect_url' => '',
... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
protected $fillable = [
'name', 'detail', 'stock', 'price', 'discount'
];
public function reviews(){
return $this->hasMany(Review::class);
}
} |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\select2\Select2;
use backend\modules\audit\models\AuditQuestion;
use backend\modules\audit\models\SActive;
/* @var $this yii\web\View */
/* @var $model backend\modules\audit\models\AuditQuestionWeight */
/* @var $form yii\w... |
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
use Carbon;
use DateTime;
class Ticket extends Model {
protected $fillable = ['name','form','serial','price','ticket_count','take_in','pay_out','qoh','reorder_point'];
public function getTakeInAttribute($value)
{
return money_format('$%.0n... |
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="#">Blog App</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav"aria-expanded="false" aria-label="Toggle navigation">
... |
<?php
class View
{
public function render($path, $data = null, $layout='app', $error = false)
{
if ( $data ) {
extract($data);
}
$path .= '.php';
return require VIEWS."/layouts/${layout}.php";
}
} |
@extends('dashboard.layout')
@section('body')
<div class="container">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="row">
<div cla... |
<?php
namespace App\Validator;
use App\Repository\CardRepository;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class BlockedCardValidator extends ConstraintValidator
{
/**
* @var CardRepository
*/
private $cardRepository;
public function __co... |
@extends('layouts.app')
@section('title')
<h1><center>Tambah Pengguna</center></h1>
@endsection
@section('content')
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-md-5">
... |
<?php
namespace App\Controllers\Backoffice;
use App\Models\Category;
use \Core\View;
/**
* Home controller
*
* PHP version 7.0
*/
class Pages extends \Core\Controller
{
public function before()
{
$this->redirectIfNotAdmin();
}
public function indexAction()
{
e... |
<?php
// Under MIT License
// Distribute, Modify and Contribute under MIT License.
// Use of Software under MIT License.
?>
<?php
include_once("common/conDb.php");
define('FPDF_FONTPATH','font/');
use setasign\Fpdi\Tcpdf\Fpdi;
$pdf= new Fpdi();
$pdf->SetLeftMargin(6.9);
$pdf->SetTopMargin(-0.3);
$pdf->setCellHeightRa... |
<?php
/*
* @author parklot
* @content 短代码
* @link https://github.com/paopao233
*/
//注册按钮
function wd_add_mce_button()
{
// check user permissions
if (!current_user_can('edit_posts') && !current_user_can('edit_pages')) {
return;
}
if ('true' == get_user_option('rich_editing')) {
add_filt... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Rso_user extends Model
{
use HasFactory;
protected $table = 'rso_user';
protected $primaryKey = 'id';
public $timestamps = false;
const CREATED_AT = 'timestamp'... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Cart extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'product_id', 'user_id', 'quantity',
];
public function products()
{
return $th... |
<?php
namespace AlibabaCloud\Cloudwf;
/**
* @method string getJsonData()
* @method $this withJsonData($value)
*/
class SavePortalConfig extends Rpc
{
} |
<?php
class LocauxManager{
//attributes
private $_db;
//constructor
public function __construct($db){
$this->_db = $db;
}
//CRUD operations
public function add(Locaux $locaux){
$query = $this->_db->prepare(
'INSERT INTO t_locaux (nom, superficie, facade, prix,
m... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Resume */
/* @var $i integer */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="row btn-clone-target">
<div class="col-xs-12 col-md-6">
<?= $form->field($model, '['.$i.']name')->textInput... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateKelasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('kelas', function ... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class Services extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
ret... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha... |
<?php
require_once('../pages/header.php');
//Пример использования констант
print('Пример использования констант в ЯП PHP<br>');
define("koeff", 60);
$h = 3.5;
echo " Число минут в указанном значении в часах =" . $h * koeff . "<br>";
echo PHP_VERSION;
print('</body></html>')
?> |
<?php declare(strict_types=1);
namespace Torr\Rad\Pagination;
/**
* VO for lists with pagination.
*
* @phpstan-template T
*/
final class PaginatedList
{
/** @phpstan-var iterable<T> */
private iterable $list;
private Pagination $pagination;
/**
*/
public function __construct (iterable $list, Pagination $... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\search\DiscountSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="discount-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
])... |
<?php
namespace MondialRelay;
use MondialRelay\Parameter;
use SoapClient;
abstract class Method
{
/**
* SOAP client
*
* @var SoapClient
*/
protected $client;
/**
* Parameters
*
* @var array
*/
public $parameters;
/**
* Parameter
*
* @var Pa... |
<!DOCTYPE html>
<html lang="es">
<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
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Insurance extends Model
{
protected $table = 'tbl_insurance';
protected $fillable = [
'contractID',
'communicationID',
'communicationDate',
'subjectNO',
'branchNO',
'file'
];
p... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEstadoFichasEvaluacionTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('estado_fichas_evaluacion', function (Bl... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
/**
* Copyright (C) 2016-2017 SSilence
* For the full license, please see LICENSE.
*/
namespace SSilence\ImapClient;
use Exception;
/**
* Class ImapClientException is used to make a custom Exception for our library.
*
* @copyright Copyright (c) Tobias Zeising (http://www.aditu.de)
* @author Tobias... |
<?php $this->load->view('template/plugins') ?>
<?php $this->load->view('template/script') ?>
<div class="container">
<div id="loginbox" class="mainbox col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">
<div class="row">
<div class="icon text-center">
<a href="<?php echo site_url('Home/... |
<?php
namespace DCarbone\PHPFHIRGenerated\R4\PHPFHIRTests\FHIRElement\FHIRBackboneElement\FHIRSubstanceReferenceInformation;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: D... |
<?php
namespace laraveltoast\laraveltail;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
class LaravelTailServiceProvider extends ServiceProvider {
/**
* Bootstrap the... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
@extends('layout')
@section('content')
<h1 class="title">{{ $recette->nom }}</h1>
<div class="content">
{{ $recette->description }}
<p>
<a href="/recettes/{{ $recette->id }}/edit">Éditer la recette</a>
</p>
</div>
@if ($recette->etapes->count())
<div class="... |
@extends('layouts.app')
@section('content')
@include('users.users',['users'=> $users])
@endsection |
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class LoginController extends Controller
{
public function index(Request $request)
{
$erro ='';
if($request->get('erro') == 1){
$erro = 'Usuário e ou senha não existe!!!';
}
if($reques... |
<?php
namespace App\Http\Controllers\Auth;
use App\Models\User;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use http\Env\Response;
use Illuminate\Auth\Events\Verified;
use Illuminate\Support\Facades\URL;
use Illuminate\Http\Request;
//use Illuminate\Foundation\Auth\VerifiesEmails;
c... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class HomeController extends BaseController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
<?php
namespace Webleit\ZohoBooksApi\Contracts;
use Webleit\ZohoBooksApi\Client;
interface Module
{
/**
* @return Client
*/
public function getClient();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.