text
stringlengths
2
1.03M
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Auth; use Mail; class UsersController extends Controller { public function __construct() { $this->middleware('auth',[ 'except'=>['show','create','store', 'index', 'confirmEmail'] ]); ...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Ecs\V20140526\Models; use AlibabaCloud\Tea\Model; class CreateVpcResponse extends Model { /** * @var string[] */ public $headers; /** * @var CreateVpcResponseBody */ public $body; protect...
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreMonevActivitySatkerGuestRequest; use App\Http\Requests\StoreMonevActivitySatkerRequest; use App\Http\Resources\SubmissionProposalCollection; use App\Http\Resources\SubmissionProposalGuestCollection; use App\MonitoringActivityExtension; use App\Monitorin...
<?php echo "Good morning {$this->title} {$this->name}";
<?php // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateReviewsTable extends Migration { public function up() { Schema::create('reviews', function(Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->text('comment')->nullable(); ...
<?php namespace Goetas\Twital\Tests; use Goetas\Twital\EventDispatcher\SourceEvent; use Goetas\Twital\EventSubscriber\FixTwigExpressionSubscriber; use Goetas\Twital\Extension\FullCompatibilityTwigExtension; use Goetas\Twital\Twital; use Goetas\Twital\SourceAdapter\HTML5Adapter; use Symfony\Component\EventDispatcher\Ev...
<?php namespace Jane\OpenApi2\Generator\Parameter; use Doctrine\Common\Inflector\Inflector; use Jane\JsonSchema\Generator\Context\Context; use Jane\JsonSchemaRuntime\Reference; use Jane\OpenApi2\Generator\GeneratorResolveTrait; use Jane\OpenApi2\JsonSchema\Model\BodyParameter; use Jane\OpenApi2\JsonSchema\Model\Schem...
<?php namespace common\models; use Yii; /** * This is the model class for table "b_testimonial". * * @property integer $testimonial_id * @property string $testimonial_name * @property string $testimonial_picture * @property string $testimonial_company * @property string $testimonial_jobtitle * @property stri...
<?php /* This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Validation; /** * This is a base class for combined fields validato...
<div class="row"> <div class="col-sm-12"> <?php if (isset($validation_error)) { ?> <div class="alert alert-danger alert-dismissable"> <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a> <?php if ($validation_error != '') { ...
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\PagesController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your applicati...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('surveys', function (Blu...
@extends('layouts.app') @section('content') <style> table{ width: 100%; font-family: Tahoma; font-size: small; text-align: center; } table,td,th{ border: 1px solid black; } th{ height: 30px; ...
<?php /* * This file is part of the Dektrium project * * (c) Dektrium project <http://github.com/dektrium> * * For the full copyright and license information, please view the LICENSE.md * file that was distributed with this source code. */ use yii\bootstrap\ActiveForm; use yii\helpers\Html; /** * @var yii\we...
<?php namespace Aws\ServiceDiscovery; use Aws\AwsClient; /** * This client is used to interact with the **Amazon Route 53 Auto Naming** service. * @method \Aws\Result createHttpNamespace(array $args = []) * @method \GuzzleHttp\Promise\Promise createHttpNamespaceAsync(array $args = []) * @method \Aws\Result create...
<!doctype html> <html class="no-js" lang=""> <head> <title>Zabuun - Learn Egyptian Arabic for English speakers</title> <meta name="description" content=""> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?> </head> <body> <?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?> <?php include...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class ModelBdd extends CI_Model { public function create_bdd() { $sql = "CREATE DATABASE IF NOT EXISTS pharmacie"; $sq = "USE pharmacie"; $sql1 = "CREATE TABLE IF NOT EXISTS `consultation` ( `codeConsultation` int(11) NOT NULL AUTO...
<?php declare(strict_types=1); namespace Validator\Constraints; use App\ThirdParty\ApiPlatform\Exception\NotSupportedGetItemException; use AssoConnect\ValidatorBundle\Test\ConstraintValidatorTestCase; use AssoConnect\ValidatorBundle\Validator\Constraints\EmployerIdentificationNumber; use AssoConnect\ValidatorBundle\...
<?php /** * 项目语言包 * @author gsp <[<email address>]> */ return array( //商品上架 'goods_on_sale1'=>array( 0=>'下架1', 1=>'上架1', ), //商品删除 'goods_on_delete1'=>array( 0=>'未删除1', 1=>'已删除1', ), //产品分类 'product_type'=>array( 1=>'HDPE', 2=>'LDPE', 3=>'LLDPE', 4=>'均聚PP', 5=>'PVC', 6=>'共聚PP', 7=>'ABS',...
<?php return [ 'unicrumbs' => [ 'name' => 'List of crumbs', 'description' => 'Displays a list of crumbs per page.', 'properties' => [ 'template' => [ 'title' => 'Template', 'description' => 'Choose a template to be used for showing the crumbs.', ...
<?php $data = file_get_contents('day3.txt'); $wires = explode("\n", $data); function getPointsFromWire($wire) { $x = $y = 0; $points = []; $steps = explode(',', $wire); foreach ($steps as $step) { $direction = strtolower($step[0]); $movement = (int) preg_replace('/[^0-9]/', '', $step)...
<?php /* * This file is part of the jquery-datatables-bundle package. * * (c) 2022 WEBEWEB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Model\Attribute; use WBW\Bund...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Output extends CI_Output { function nocache() { $this->set_header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); $this->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $this->set_header('Cache-Con...
<?php namespace App; // use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; /** * The attributes that are mass...
@extends('layouts.backend.app') @section('header') <title>YBM - {{ $kategoriPembukuan->nama_pembukuan }}</title> @endsection @push('css') <!-- datepicker --> <link href="{{ asset('plugins/bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker.css') }}" rel="stylesheet"> <style> .float-botton{ positi...
<ol class="breadcrumb"> <li><a><i class="fa fa-calendar"></i> Nilai Mahasiswa</a></li> <li class="active"><label><b>Tahun : <?= $ta['ta'] ?> - Semester : <?= $ta['semester'] ?></b> </label></li> </ol> <div class="row"> <div class="col-sm-12"> <div class="box box-danger box-solid"> <!-- /.box-head...
<?php namespace cyclone; /** * Array and variable validation. * * @package cyclone * @category Security * @author Kohana Team * @copyright (c) 2008-2009 Kohana Team * @license http://kohanaphp.com/license */ class Validate extends \ArrayObject { /** * Creates a new Validation instance. * ...
<?php namespace Oro\Bundle\FilterBundle\Tests\Unit\Form\Type\Filter; use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; use Oro\Bundle\FilterBundle\Form\Type\Filter\ChoiceFilterType; use Oro\Bundle\FilterBundle\Form\Type\Filter\EnumFilterType; use Symfony\Component\Form\Test\TypeTestCase; use Symfony\Component\Opt...
<?php namespace oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2; use un\unece\uncefact\data\specification\UnqualifiedDataTypesSchemaModule\_2; /** * @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 * @xmlType TextType * @xmlName MarkAttentionType * @var oasis\name...
<?php header("Location:elements.php"); ?>
<?php declare(strict_types=1); /* * This file is part of Bitbucket API Client. * * (c) Graham Campbell <graham@alt-three.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Bitbucket\Api\Users\PipelinesConfig; use Bi...
@section('title', 'Add Customers') @extends('templates/main') @section('content') @if (session('status')) <h6 class="alert col-md-6 alert-success">{{ session('status') }}</h6> @endif <div class="card col-md-6"> <div class="card-header"> <div class="row"> <div class="col-md-10"> ...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RectorPrefix20210904\Symfony\Component\VarDumper\Caster; use RectorPrefi...
<?php namespace App\Exceptions; use Exception; class BusinessException extends ApplicationException { public function __construct(string $message, int $code = 400, Exception $exception = null) { parent::__construct($message, $code, $exception); } }
<?php if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractFilterForm.class.php"; define('TPLSET_SORT_KEY_TPLSET_ID', 1); define('TPLSET_SORT_KEY_TPLSET_NAME', 2); define('TPLSET_SORT_KEY_TPLSET_DESC', 3); define('TPLSET_SORT_KEY_TPLSET_CREDITS', 4); define('TPLSET_S...
<?php $username = $_POST['username']; $service = $_POST['servicename']; //echo $service; //connect to database $hostname = 'localhost'; $user = 'root'; $pass = 'root'; $database = 'UserInfo'; $conn = @mysqli_connect($hostname, $user, $pass, $database) or die('Cannot connect to server'); if ($conn->connect_error) { ...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\...
<!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>Di Serdang Bedagai</title> <link href="{{ asset('') }}assets/css/bootstrap.css" r...
<a href="{{ route('softDeleteClient', ['clientId'=>$fsClient->id] )}}" class="btn btn-danger btn-circle" onclick="return confirm('Are you sure to delete client {{ $fsClient->name }}?')" title="Delete Client"> <i class="fas fa-trash"></i> </a>
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use App\Models\Order; use App\Models\OrderItem; use App\Models\Product; use Illuminate\Support\Facades\DB; use PDF; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class OrderController extends Controller { publ...
<?php namespace Devlabs91\TravelgateNotify\Models\Ota\RevenueCategoryType; /** * Class representing SummaryAmountAType */ class SummaryAmountAType { /** * A monetary amount. * * @property float $amount */ private $amount = null; /** * The code specifying a monetary unit. Use I...
@extends('backend.layouts.master') @section('title','create quiz') @section('content') <div class="span9"> <div class="content"> <div class="module"> <div class="module-head"> </div> <div class="module-body"> <p><h3 class="heading">...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Log; use Monolog\Handler\StreamHandler; use Monolog\Logger; class ExampleController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { // } ...
<div class="container"> <!--Page Heading--> <br> <h2 class="mt-5">Dashboard Menu</h2> <hr class="mr-9"> <!--tabel--> <div class="row"> <div class="col"> <div class="card"> <div class="card-header"> <h5>Jenis Akun : <?= $role['role']; ?></h5> <?= $this->session->flashd...
<?php use yii\helpers\Html; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>EQUIPPP | A Merchant Banking Platform ...
<?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 namespace App\Controllers; class Helper_eus_user_ckbx extends DmsBase { function __construct() { $this->my_tag = "helper_eus_user_ckbx"; $this->my_title = "EMSL Helper"; } } ?>
<?php /** * @version $Id: script.php 21884 2011-07-18 19:50:35Z dextercowley $ * @package Joomla.Administrator * @subpackage com_admin * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direc...
<?php // Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://w...
<?php require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/credentials.php'; $connection = new \Teamleader\Connection(); $connection->setClientId( $clientId ); $connection->setClientSecret( $clientSecret ); $client = new \Teamleader\Client( $connection ); $product = $client->product( [ 'name...
<?php global $onlinemag_sections; global $onlinemag_settings_controls; global $onlinemag_customizer_defaults; /*defaults values*/ $onlinemag_customizer_defaults['onlinemag-site-identity-color'] = '#313131'; $onlinemag_customizer_defaults['onlinemag-primary-color'] = '#ff6600'; $onlinemag_customizer_defaults['onlinemag...
<!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.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s...
<tr> <td> <table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> <tr> <td class="content-cell" align="center"> <?php echo e(Illuminate\Mail\Markdown::parse($slot)); ?> </td> </tr> </table> </td> </tr> <?php /**PATH D:\wamp64\www\l6app\vendor\laravel\framework\src\Illumina...
<?php declare (strict_types=1); namespace RectorPrefix20220221; use Rector\Set\ValueObject\DowngradeLevelSetList; use Rector\Set\ValueObject\DowngradeSetList; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; return static function (\Symfony\Component\DependencyInjection\Loader\Conf...
--TEST-- Test Parallel Filter for 1st of 3 Nodes --FILE-- <?php use PHPUnit\ParallelRunner\PHPUnit_Parallel_Command; // $_SERVER['argv'][0] = 'phpunit'; // this will be set by the shell $_SERVER['argv'][1] = '--no-configuration'; $_SERVER['argv'][2] = '--tap'; $_SERVER['argv'][3] = '--current-node=0'; $_SERVER['argv']...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content="" /> <meta name="author" content="" /> <title>Agro-Commers</title> <!-- Favicon-...
<?php // autoload_psr4.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'), 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 'Sym...
<?php /* * This file is part of the Predis package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Predis\Command; /** * @link http://redis.io/commands/...
<?php namespace Illuminate\Routing\Console; use Illuminate\Console\Concerns\CreatesMatchingTest; use Illuminate\Console\GeneratorCommand; use InvalidArgumentException; use Symfony\Component\Console\Input\InputOption; class ControllerMakeCommand extends GeneratorCommand { use CreatesMatchingTest; /** * ...
<?php $var = "Paco"; echo "Hola $var <br>"; echo 'Hola $var <br>'; echo "Hola " . $var;
<?php declare(strict_types=1); namespace Psl\Fun; use Closure; /** * Returns a closure that calls the callback with the value passed to it and returns the value. * * @template T * * @param (Closure(T): void) $callback * * @return (Closure(T): T) * * @pure */ function tap(Closure $callback): Closure { ...
<?php // This file contains code used to upgrade between 1.x Pligg versions // Report all PHP errors // error_reporting(E_ALL); $new_version = '122'; // Check if you need to run the one time 1.x upgrade if ($old_version < $new_version) { //echo $lang['UpgradingTables'] . '<br />'; echo '<li>Performing one-time Pl...
@extends('master.index') @section('row1') <!-- Blog Post --> <div class="row mt-5"> <div class="col-xs-12 col-md-4 col-xl-4 col-lg-4"> </div> <div class="col-xs-12 col-md-8 col-xl-8 col-lg-8"> <div class="row"> <div class="col-12 border-bottom mb-3"> ...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Activity extends Model { use SoftDeletes; protected $guarded = []; protected $fillable = [ 'activity_id', 'weight', 'imgSrc', 'hidden' ]; public static function getAllAt...
<?php namespace libphonenumber; /** * Class AsYouTypeFormatter * A formatter which formats phone numbers as they are entered. * * An AsYouTypeFormatter instance can be created by invoking PhoneNumberUtil::getAsYouTypeFormatter(). * After that, digits can be added by invoking inputDigit() on the formatter instanc...
<?php namespace CacheTool\Command; class OpcacheConfigurationCommandTest extends CommandTest { public function testCommand() { $this->assertHasOpcache(); $result = $this->runCommand('opcache:configuration -v'); $this->assertStringContainsString('opcache_get_configuration()', $result)...
<?php declare(strict_types=1); namespace Adawolfa\ISDOC\Serializer; /** * Referenced element. * * @internal */ final class Reference { private object $instance; private ?ID $element = null; public function __construct(object $instance) { $this->instance = $instance; } public function getInstance(): ...
<?php $this->pageTitle=Yii::app()->name . ' - '.UserModule::t("Change Password"); $this->breadcrumbs=array( UserModule::t("Profile") => array('/user/profile'), UserModule::t("Change Password"), ); $this->menu=array( ((UserModule::isAdmin()) ?array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin')...
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Event; /** * Prepare settings for display in the client. * * This event is f...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddRelationshipFieldsToTraineesTable extends Migration { public function up() { Schema::table('trainees', function (Blueprint $table) { $table->unsigne...
@extends('pare_pns.layouts.dashboard') @section('template_title') {{ Pustaka::nama_pegawai(\Auth::user()->pegawai->gelardpn , \Auth::user()->pegawai->nama , \Auth::user()->pegawai->gelarblk) }} @stop @section('content') <div class="content-wrapper" > <section class="content-header"> <?php $xd = request()->s...
<?php $params = require __DIR__ . '/params.php'; $db = [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2bridge', 'username' => 'root', 'password' => '', 'charset' => 'utf8', // Schema cache options (for production environment) //'enableSchemaCache' => true, /...
<?php namespace ChromeDevtoolsProtocol\Model\Media; /** * Send events as a list, allowing them to be batched on the browser for less congestion. If batched, events must ALWAYS be in chronological order. * * @generated This file has been auto-generated, do not edit. * * @author Jakub Kulhan <jakub.kulhan@gmail.co...
<div class="col-lg-2"> <div class="row" style="background-color: #EDEDED;"> <center> <img src="<?= base_url('uploads/dummy/user.png') ?>" class="well" style="border-radius: 50%; width: 150px; height: 150px; margin: 5px; border: 10px solid #3579B5;"> <h2 class="text-center" style="color: #3579B5...
<?php namespace app\command; use think\console\Command; use think\console\Input; use think\console\Output; class ConverTable extends Command { /* @var $mysql \think\db\Query */ private $mysql; protected function configure() { // 指令配置 $this->setName('converTable')->setDescription('co...
<?php /** * @author André Gaul <gaul@web-yard.de> * @author Arthur Schiwon <blizzz@arthur-schiwon.de> * @author Bart Visscher <bartv@thisnet.nl> * @author Christian Berendt <berendt@b1-systems.de> * @author Christopher T. Johnson <ctjctj@gmail.com> * @author Johan Björk <johanimon@gmail.com> * @author Jörn Fried...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProfilTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('profil', functio...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Cddc\V20200320\Models; use AlibabaCloud\Tea\Model; class DescribeDedicatedHostAttributeResponseBody extends Model { /** * @var string */ public $accountName; /** * @var string */ public $acco...
<?php /** * This file has been @generated by a phing task by {@link BuildMetadataPHPFromXml}. * See [README.md](README.md#generating-data) for more information. * * Pull requests changing data in these files will not be accepted. See the * [FAQ in the README](README.md#problems-with-invalid-numbers] on how to make...
<?php declare(strict_types=1); namespace PestConverter\Rules; use PestConverter\Parser\NodeFinder\NonTestMethodFinderInterface; use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PhpParser\Node\Stmt\ClassMethod; /** ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Planta; use Illuminate\Support\Facades\DB; class Plants_Controller extends Controller { public function Index(){ $eloquent = Planta::all(); return view('plants.plants')->with('plants', $eloquent); } } /* ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateReservationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reservatio...
<?php namespace App\Http\Controllers\Api; use App\User; use Illuminate\Http\Request; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; class AuthenticateController extends BaseController { public function register(Request $request) { $data = $request->only('name', 'email', 'password'); ...
<?php /** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); yo...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018-04-12 * Time: 16:06:23 */ namespace frontend\models; use Yii; class UserIdentify extends \common\models\User implements \yii\web\IdentityInterface { public function getId() { return $this->id; } /** * {@inheritdoc} ...
<?php declare(strict_types=1); namespace Rector\Website\Twig; use DateInterval; use Nette\Utils\FileSystem; use Nette\Utils\Strings; use Symfony\Contracts\Cache\CacheInterface; use Symfony\Contracts\Cache\ItemInterface; final class RectorCountVariableProvider { /** * @var string */ private const S...
<!-- Navbar --> <nav class="navbar navbar-expand-lg navbar-absolute fixed-top navbar-transparent"> <div class="container-fluid"> <div class="navbar-wrapper"> <div class="navbar-toggle"> <button type="button" class="navbar-toggler"> <span class="navbar-toggler...
<?php declare(strict_types=1); namespace Creative\SelectelBundle\Tests\Adapter; use Creative\SelectelBundle\Adapter\SelectelAdapter; use Creative\SelectelBundle\Service\ServiceInterface; use Creative\SelectelBundle\Tests\BaseCase; use League\Flysystem\Config; /** * Набор тестов для адаптера selectel для flysystem....
<?php namespace frontend\modules\cms\controllers; use backend\models\Category; use backend\models\CmsAbout; use backend\models\CmsBlogs; use backend\models\ObjectCategory; use backend\models\Product; use backend\models\Products; use yii\data\Pagination; use yii\web\NotFoundHttpException; use common\components\FHtml; u...
<?php /** * Hoa * * * @license * * New BSD License * * Copyright © 2007-2017, Hoa community. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must ...
<?php namespace APISELL\Http\Controllers; use Illuminate\Http\Request; use APISELL\Http\Requests; use Illuminate\Support\Facades\Auth; use Session; use Redirect; use APISELL\Box; use APISELL\Waste; class WasteController extends Controller { public function index(){ $boxes = Box::all(); $box_list = Box...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>{{$title or ''}}</title> <meta name="description" content="{{$title or ''}}" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Conten...
<?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 /** * Template Name: Шаблон страницы всех экскурсий */ ?> <section id="home" class="main-home parallax-section overlay_bg__blog" style="background: url(<?php echo get_the_post_thumbnail_url(); ?>) no-repeat;"> <div class="overlay_bg overlay_bg__blog"></div> <div id="particles-js"></div> <div cla...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Suppliers extends Model { // protected $fillable = ['supplier_name','supplier_email','supplier_phone','company_name']; }
<div class="row"> <div class="col-sm-12 col-md-6"> <div class="form-group"> {!! Form::label('name', 'Имя') !!} {!! Form::text('name', $user->name ?? null, ['class' => 'form-control']) !!} </div> @error('name') <div class="alert alert-danger">{{ $message }}</d...
<?php // Heading $_['heading_title'] = 'Forgot Your Password?'; // Text $_['text_account'] = 'Account'; $_['text_forgotten'] = 'Forgotten Password'; $_['text_your_email'] = 'Your E-Mail Address'; $_['text_email'] = 'Enter the e-mail address associated with your account. Click submit to have your password e-...
@component('mail::message') {{-- Greeting --}} @if (! empty($greeting)) # {{ $greeting }} @else @if ($level === 'error') # @lang('Whoops!') @else # @lang('Hello!') @endif @endif {{-- Intro Lines --}} @foreach ($introLines as $line) {{ $line }} @endforeach {{-- Action Button --}} @isset($actionText) <?php switch ...
<!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>Dashboard &mdash; SKPAPPS</title> <!-- General CSS Files --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com...