text stringlengths 2 1.03M |
|---|
<?php namespace TightenCo\Jigsaw\File;
class OutputFile
{
private $path;
private $name;
private $extension;
private $contents;
private $data;
private $page;
public function __construct($path, $name, $extension, $contents, $data, $page = 1)
{
$this->path = $path;
$this->... |
<?php
namespace common\models;
use common\helpers\QiniuHelper;
use Yii;
use yii\base\Exception;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "image".
*
* @property integer $id
* @property string $name
* @property string $url
* @property integer $type
* @property integer $type_id
* @pr... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<?php
class Salas {
function __construct()
{
if(!$_SESSION["dados_usuario"])
Login::logarUsuario();
}
function addSala()
{
if($_SESSION["dados_usuario"]["idgrupo"] != 1)
{
die;
}
View::loadView("salaForm");
}
function onAddSala()
{
TTransaction::open();
$sala = ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Purchase extends Model
{
use HasFactory;
protected $table = 'purchases';
public $fillable = ['user_id'];
public function purchase_details(){
return $this->hasOne(P... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin_model extends CI_Model {
/**
*
* @param unknown_type $filter
* @param unknown_type $order
* @param unknown_type $dir
* @param unknown_type $count
*/
public function get_users_list($filter = array(), $order = null, $di... |
<?php
$params = array_merge(
require __DIR__ . '/../../common/config/params.php',
require __DIR__ . '/../../common/config/params-local.php',
require __DIR__ . '/params.php',
require __DIR__ . '/params-local.php'
);
return [
'id' => 'app-backend',
'name' => 'Бiлiмал admin',
'basePath' => dir... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace App\Http\Controllers\Dashboard;
use App\Http\Controllers\Controller;
use App\Models\Permission;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Intervention\Image\Facades\Image;
class UserController extends Controller
{
public function __construct()
... |
<?php
if(!isset($pencarian)){
$pencarian = '';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Implementasi K-Means Clustering</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width... |
<?php
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'routing.loader' shared service.
include_once $this->targetDirs[3].'\\vendor\\symfony\\symfony\\src\\Symfony\\Compon... |
<?php
return [
'my_country' => 'My Country',
'local-budget' => 'Local budget',
'expenses-chronology' => 'Expenses chronology',
'state-expenses-chronology' => 'State expenses chronology',
'self-governing' => 'Incorporated expenses',
'infographic' => 'Infographic',
'municipality-compare' => '... |
--TEST--
SimpleXML: var_dump()
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
$sxe = simplexml_load_file(__DIR__.'/000.xml');
function test($what)
{
global $sxe;
echo "===$what\n";
eval("var_dump(isset(\$$what));");
eval("var_dump((bool)\$$what);");
eval("if (isset(\$$what))... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/
namespace Fresns\PluginManager\Exceptions;
class FileAlreadyExistException extends \Exception
{
} |
<?php
namespace Nowyouwerkn\WeCommerce\Controllers;
use App\Http\Controllers\Controller;
use Nowyouwerkn\WeCommerce\Models\ProductVariant;
use Illuminate\Http\Request;
class ProductVariantController extends Controller
{
public function index()
{
//
}
public function create()
{
//... |
<?php
$this->load->view('admin/header');
$this->load->view('admin/sidebar');
?><div id="page-wrapper" >
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h2>Admin Kategori Düzenleme</h2>
... |
@extends('layouts.app')
@section('title', $user->name . ' 的个人中心')
@section('content')
<div class="row">
<div class="col-lg-3 col-md-3 hidden-sm hidden-xs user-info">
<div class="panel panel-default">
<div class="panel-body">
<div class="media">
... |
<!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>SB Admin 2 - ... |
<img src="{{ asset('storage/') }}{{ '/'.Auth::user()->avatar }}" alt="Avatar" /> |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace Diside\StaticPageBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
class StaticPageAdmin extends Admin
{
protected $baseRout... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Pages extends CI_Controller
{
protected $user;
protected $direktori;
public function __construct()
{
parent::__construct();
if ($this->session->userdata('email')) {
$this->user = $this->db->get_where('dat_pela... |
<?php
/**
* PHP Version 5
*
* @package php-code-standards
* @copyright Copyright (c) PT Suitmedia Kreasi Indonesia. (https://suitmedia.com)
* @license https://github.com/suitmedia/php-code-standards/blob/master/LICENSE.txt MIT License
* @link https://packagist.org/packages/suitmedia/php-c... |
@extends('layouts.app')
@section('content')
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link {{ (Request::route() -> getName() == 'home') ? 'active' : '' }}" href="{{ route('home') }}">Home</a>
</li>
<li class="nav-item">
<a class="nav-link {{ (Request::route() -> getName(... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\AuthenticatedSessionController;
use App\Http\Controllers\Admin\{DashboardController as DashAdmin,KategoriController as KatAdmin,TokoController as TokAdmin};
use App\Http\Controllers\Toko\{DashboardController as DashToko,ProdukController as Produ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User;
use App\Project;
class ProfileController extends Controller
{
public function profile($username){
$project = Project::find($username);
return view('user.profile', compact('project','share'));
}
public function user(){... |
<?php
/**
* 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>
*/
namespace Yasumi\tests\Australia\NS... |
<?php
namespace App\Http\Middleware;
use Closure;
use DB;
class HomeMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
// 获取站点的状态... |
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
/**
* Meta Box Short Description
*
* Overrides WP short description
*/
class LLMS_Meta_Box_Course_Short_Description {
/**
* outputs tinymce
*
* @return mixed (wp_editor)
* @param string $post
*/
public static function output( $post ) {
$settings = array(
... |
<?php
/*
* This file is part of Mongator.
*
* (c) Máximo Cuadros <maximo@yunait.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Mongator\Factory\Blueprint;
class Sequence
{
protected $value;
public function __construct(... |
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" href="/theme/Bob-Theme-Argon/favicon.ico">
<title>理塘丁真机场加载中</title>
<link rel="stylesheet" href=... |
@extends('layouts.app')
@section('content')
<div class="container">
<!-- Success or error messages -->
@if( Session::has( 'success' ))
<div class="row ">
<div class="col-md-12">
<div class="alert alert-success" role="alert">
{{ Session::get( 'success' ) }}
<... |
<?php
namespace App\Entity;
use App\Repository\BloodsugarRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=BloodsugarRepository::class)
*/
class Bloodsugar
{
/**
* @ORM\I... |
<?php
declare(strict_types=1);
namespace Application\Service;
use Application\Model\AbstractProduct;
use Application\Model\Order;
use Application\Model\OrderLine;
use Application\Model\Product;
use Application\Model\Subscription;
use Application\Model\User;
use Application\Repository\UserRepository;
use Doctrine\ORM... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PertanyaanVote extends Model
{
//
protected $table = 'pertanyaanvote';
protected $fillable = ['up_vote', 'down_vote', 'pertanyaan_id', 'user_id'];
protected $guarded = [];
} |
<?php
/**
* @group media
* @group taxonomy
*/
class Tests_Media_GetAttachmentTaxonomies extends WP_UnitTestCase {
public function test_should_return_attachment_taxonomy() {
register_taxonomy( 'wptests_tax', 'attachment' );
$a = self::factory()->attachment->create_object(
'image.jpg',
0,
arra... |
<?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 Idma\Robokassa\Exception;
/**
* Class InvalidSumCurrencyException
*
* @package Idma\Robokassa\Exception
*/
class InvalidSumCurrencyException extends PaymentException
{
public function __construct($message = '', $code = 0, \Exception $previous = null)
{
parent::__construct('Invoice ... |
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @link https://phpdoc.org
*/
namespace phpDocumentor\Descriptor\Tag;
use Mockery\Adapter\Phpunit\MockeryTe... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* @var $source
* @var $text
* @var $link
* @var $google_fonts
* @var $font_container
* @var $el_class
* @var $el_id
* @var $css
* @var $css_animation
* @var $font_container_data - returned from $this->getAttribute... |
<?php
namespace App\Http\Controllers;
use App\Client;
use App\Project;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class ProjectController extends Controller
{
public function index(){
$clients = Client::where('show_on_home_page', 1)->get();
return view('admin.project.add-proj... |
<?php
namespace AssetManager\Asset;
use Assetic\Asset\BaseAsset;
use Assetic\Contracts\Filter\FilterInterface;
use AssetManager\Exception;
/**
* Represents a concatented string asset.
*/
class AggregateAsset extends BaseAsset
{
/**
* @var int Timestamp of last modified date from asset
*/
private ... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... |
<?php return array('dependencies' => array(), 'version' => '1e048282a13f3754a005c9c4d575f518'); |
<?php
namespace Oro\Bundle\ConfigBundle\Tests\Unit\Api\Processor\GetList\Rest;
use Oro\Bundle\ApiBundle\Tests\Unit\Processor\GetList\GetListProcessorTestCase;
use Oro\Bundle\ConfigBundle\Api\Processor\GetList\Rest\FixConfigurationSectionsResultDocument;
class FixConfigurationSectionsResultDocumentTest extends GetLis... |
@extends('theme.bptheme1.layouts.app')
@section('content')
<section class="contanier-fluid" >
<div id="carouselExampleIndicators" class="carousel slide reset-margin" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li ... |
<?php
namespace Modules\API\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Factory;
class APIServiceProvider extends ServiceProvider
{
/**
* Boot the application events.
*
* @return void
*/
public function boot()
{
$this->registerTranslatio... |
@extends('layouts.default')
@section('content')
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Breed</th>
<th scope="col">Birth date</th>
</tr>
</thead>
@foreach($dogs as $dog)
<tbody>
<... |
<h1>控制器方法</h1><hr/>
<form action="{{url('add')}}" method="post">
@csrf
<input type="text" name="name">
<button>提交</button>
<form> |
<?php
/**
* Created by PhpStorm.
* User: alfjuniorbh
* Date: 22/05/16
* Time: 11:18
*/
Route::group(['city'], function () {
Route::get('/cities_by_uf/{id}', 'CitiesController@get_by_state_id');
Route::get('/get_zipcode/{zip}', 'CitiesController@get_zipcode');
}); |
<?php
header('Content-Type: text/html; charset=utf-8');
$conn = mysqli_connect("localhost", "", "", "");
$conn->set_charset("utf8mb4");
$id = mysqli_real_escape_string($conn, $_POST["id"]);
$pw = mysqli_real_escape_string($conn, hash("sha256", $_POST["pw"]));
$title = mysqli_real_escape_string(... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LaserPertinax extends Model
{
//use HasFactory;
protected $table = 'tb_laserpertinax';
protected $primaryKey = ['id_laser_pertinax'];
public $incrementing = fal... |
<?php
namespace spec\Fenos\Notifynder\Senders;
use Fenos\Notifynder\Contracts\StoreNotification;
use Fenos\Notifynder\Exceptions\CategoryNotFoundException;
use Fenos\Notifynder\Models\Notification;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class SendOneSpec extends ObjectBehavior
{
public function let()... |
<?php include "template/header.php"; ?>
<div class="row">
<div class="col-lg-12">
<div class="card-box">
<div class="row">
<div class="col-md-6">
<h3>Create Rate Amount</h3>
<div class="row">
<?php $updateCategory... |
@extends('Admin.includes.layouts.master')
@section('title')
الاقسام
@endsection
@section('style')
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/spectrum-colorpicker2/dist/spectrum.min.css">
@endsection
@section('content')
<div class="page-wrapper">
<!-- =============... |
<?php
declare(strict_types=1);
namespace App\Containers\UserSection\Users\UI\API\Controllers;
use Illuminate\Support\Facades\Password;
use Illuminate\Http\{Response, JsonResponse};
use App\Containers\UserSection\Users\DTO\Password as PasswordDTO;
use App\Containers\UserSection\Users\Actions\ChangeUserPasswordAction;... |
<?php
namespace GetCandy\Api\Http\Controllers\Currencies;
use GetCandy\Exceptions\MinimumRecordRequiredException;
use GetCandy\Api\Http\Controllers\BaseController;
use GetCandy\Api\Http\Requests\Currencies\CreateRequest;
use GetCandy\Api\Http\Requests\Currencies\DeleteRequest;
use GetCandy\Api\Http\Requests\Currencie... |
<?php
namespace AppBundle\Command;
use AppBundle\Entity\Assignments\NewsletterUserNewsletterPageAssignment;
use AppBundle\Repository\Admin\Assignments\NewsletterUserNewsletterPageAssignmentRepository;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use ... |
<?php
if (isset($_COOKIE['superuser']) && !empty($_COOKIE['superuser']) || isset($_SESSION['superuser'])) {
include "ssi/navigation/navigationS.php";
} else if (isset($_COOKIE['user']) && !empty($_COOKIE['user']) || isset($_SESSION['user'])) {
include "ssi/navigation/navigationM.php";
} else {
include "ssi/navi... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsuariosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('usuarios', fun... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AdditionalInformationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**... |
@extends('titan::layouts.admin')
@section('content')
<div class="row">
<div class="col-xs-12">
<div class="box box-primary box-solid">
<div class="box-header with-border">
<h3 class="box-title">
<span><i class="fa fa-eye"></i></span>
... |
<?php
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Finder\Finder;
class DevDashboardController {
private function find ($lang, $type, $fileType) {
global $rfExampleConfig;
$finder = new Finder();
$finder->in($rfExamp... |
<?php
declare(strict_types=1);
namespace App\Entity;
use App\Entity\Traits\EntityIdTrait;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\U... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Joon Miller's WEB110 Portal Website</title>
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8" />
<link rel="stylesheet" href="css/portal.css" />
<link rel="stylesheet" href="css/nav.cs... |
<x-master>
<x-elements.breadcrumb>
<x-slot name="title">
Products
</x-slot>
<li class="breadcrumb-item"><a href="#">Product</a></li>
<li class="breadcrumb-item active">Products</li>
</x-elements.breadcrumb>
{{-- end --}}
<section class="content">
<div class="contain... |
<?php
if ( ! class_exists( 'GFForms' ) ) {
die();
}
require_once( ABSPATH . WPINC . '/post.php' );
/**
* Class GFFormsModel
*
* Handles database calls and formatting of stored data regarding forms
*/
class GFFormsModel {
/**
* Stores the values containing and uploaded files for later access
*
* @since ... |
<?php
namespace Database\Factories;
use App\Models\Race;
use App\Models\RaceSuggestion;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class RaceSuggestionFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AlterTableAktivitasHarian5 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('aktivita... |
<?php
/**
* li₃: the most RAD framework for PHP (http://li3.me)
*
* Copyright 2009, Union of RAD. All rights reserved. This source
* code is distributed under the terms of the BSD 3-Clause License.
* The full license text can be found in the LICENSE.txt file.
*/
namespace lithium\tests\cases\util;
use stdClass;... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... |
<?php require './includes/header.php'//include pro veci bez php, require once vypisuje jen jednou?>
<?php require './includes/navigation.php'//include pro veci bez php, require once vypisuje jen jednou?>
<?php require './includes/footer.php'?> |
<?php
namespace Oro\Bundle\IntegrationBundle\Tests\Unit\Form\Type;
use Doctrine\Common\Persistence\ManagerRegistry;
use Oro\Bundle\FormBundle\Form\DataTransformer\IdToEntityTransformer;
use Oro\Bundle\IntegrationBundle\Entity\Channel;
use Oro\Bundle\IntegrationBundle\Form\Type\ConfigIntegrationSelectType;
use Oro\Bun... |
<?php namespace PHPBook\Email;
class Email {
private $connectionCode;
private $message;
public function setConnectionCode(String $connectionCode): Email {
$this->connectionCode = $connectionCode;
return $this;
}
public function getConnectionCode(): ?String {
return $this->con... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
namespace App\States\Internship;
class PendingInternshipState extends InternshipState {
public function colour(): string
{
return 'orange';
}
} |
<?php
/*********************/
/* */
/* Dezend for PHP5 */
/* NWS */
/* Nulled.WS */
/* */
/*********************/
require_once( "inc/td_config.php" );
$C['msg_type'] = 3;
$C['MSG_LIST_REF_SEC'] = $SMS_REF_SEC;
$C['MSG_DIOG_REF_SEC'] = 3;
$C['SEARCH_REF_SEC'] ... |
<?php
Route::get('/', function () {
return view('welcome');
});
// Unauthenticated group
Route::group(array('before' => 'guest'), function() {
// CSRF protection
Route::group(array('before' => 'csrf'), function() {
// Create an account (POST)
Route::post('/create', array(
'as' => 'account-create-po... |
<?php
/*
* This file was created by developers working at BitBag
* Do you need more information about us and what we do? Visit our https://bitbag.io website!
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
*/
declare... |
<?php
namespace App\Controllers\Admin\Users;
use App\Controllers\BaseController;
use App\Models\Users;
class Index extends BaseController
{
public function __construct()
{
$this->users = new Users();
}
public function index()
{
if ($this->request->getMethod()=='post')
{
$requestdata = ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Order;
use Illuminate\Support\Facades\DB;
class ClientsOrderController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index(){
$value = DB::table('orders')->or... |
<?php
namespace Tests\Feature;
use App\Foo;
use Tests\TestCase;
class WithLikeTest extends TestCase
{
public function setUp(): void
{
parent::setUp();
factory(Foo::class)->create([
'name' => 'Fernando'
]);
factory(Foo::class)->create([
'name' => 'Fabri... |
<?php
namespace Fygarciaj\Auditing;
use Fygarciaj\Auditing\Contracts\Auditable;
use Fygarciaj\Auditing\Facades\Auditor;
class AuditableObserver
{
/**
* Is the model being restored?
*
* @var bool
*/
public static $restoring = false;
/**
* Handle the retrieved event.
*
*... |
<?php
/**
* Template Name: Home Page
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<div class="container">
<div class="row interior-header">
<h1><?php the_title(); ?></h1>
<h3></h3>
</div>
</div>
<?php get_footer(); ?> |
@extends("layouts.html")
@section("title", "reviews Page | Html Theme Conversion")
@section("home")
<!--Home Sections-->
<section id="home" class="home">
<div class="container">
<div class="row">
<div class="main_home">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSoftDeletesToEnderecosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('ende... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitf2f411e6f9560239ed1b13a2e0bc50b9::getLoader(); |
<?php
// File generated from our OpenAPI spec
namespace StripePhp;
/**
* A Quote is a way to model prices that you'd like to provide to a customer. Once
* accepted, it will automatically create an invoice, subscription or subscription
* schedule.
*
* @property string $id Unique identifier for the object.
* @pr... |
@extends('master')
@section('seccion')
<!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.0">
<title>Osinergmin</title>
<script src="https://kit.fontawesome.com/a790fabeaf.js"... |
<!DOCTYPE html>
<html lang="en-US"><!-- InstanceBegin template="/Templates/inner-page.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- InstanceBeginEditable name="doctitle... |
<div class="container-fluid px-xl-5">
<section class="py-5">
<div class="row">
<!-- Form Elements -->
<div class="col-lg-12 mb-1">
<div class="card">
<div class="card-header">
<h3 class="h6 text-uppercase mb-0">Project Manag... |
<?php
/**
* Created by PhpStorm.
* User: asus
* Date: 17.06.2015
* Time: 14:59
*/
namespace Ibw\BlogBundle\Handler;
use Doctrine\Common\Persistence\ObjectManager;
class PageHandler //implements PageHandlerInterface
{
public $om ;
public $entityClass;
public $repository;
public function __const... |
@extends('layout/layout2')
@section('title','HUMAN CAPITAL BUSINESS PARTNER TELKOM')
@section('container')
<div class="content">
<div class="row">
<div class="col-lg-4">
<div class="card card-chart">
<div class="card-header">
<h5 class="card-category">wewen... |
<?php
namespace spec\Hexanet\Common\MonologExtraBundle\Logger\Response;
use Hexanet\Common\MonologExtraBundle\Logger\Response\ResponseLogger;
use Hexanet\Common\MonologExtraBundle\Logger\Response\ResponseLoggerInterface;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Psr\Log\LoggerInterface;
use Symfony\Compo... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAitStatusesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ait_statuse... |
<?php
namespace App\Http\Requests;
use Session;
use App\Http\Requests\Request;
class LessonFormRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the... |
<?php
class ControllerLocalisationCurrency extends Controller {
private $error = array();
public function index() {
$this->language->load('localisation/currency');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('localisation/currency');
$this->getList();
}
pu... |
<?php
namespace App\Providers;
use App\Models\Policies\UserPolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
use Laravel\Passport\Passport;
class AuthServiceProvider extends ServiceProvider
{
/**
* Register any authentication / a... |
<?php
/**
* Parser utils and default callbacks.
*
* @author Josep Arús
*
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package wiki
*/
require_once($CFG->dirroot . "/lib/outputcomponents.php");
class parser_utils {
public static function h($tag, $text = null, $options ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.