text stringlengths 2 1.03M |
|---|
<?php
namespace Marshmallow\Translatable\Scanner\Drivers;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
class Database extends Translation implements DriverInterface
{
protected $scanner;
protected $getLanguages;
protected $sourceLanguage;
/*
... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
Use App\Models\Role;
Use App\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{... |
<?php
namespace Fhm\NewsBundle\Form\Type\Admin\Group;
use Fhm\FhmBundle\Form\Type\Admin\UpdateType as FhmType;
use Fhm\FhmBundle\Manager\TypeManager;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
... |
<section class="main-content-wrapper">
<section id="main-content">
<div class="row">
<div class="col-md-12">
<!--breadcrumbs start -->
<ul class="breadcrumb">
<li><a h... |
<?php
namespace Skysail;
require_once __DIR__ . '/HeaderCollection.php';
require_once __DIR__ . '/Session.php';
require_once __DIR__ . '/../../AppConfig.php';
class ControllerContextBuilder
{
private ControllerContext $context;
public function __construct()
{
$this->context = new ControllerContext();
}
publ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... |
<?php
$params = require __DIR__ . '/params.php';
$db = require __DIR__ . '/db.php';
$config = [
'id' => 'basic-console',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'controllerNamespace' => 'app\commands',
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@... |
<?php
// Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
// For licensing, see LICENSE.html or http://ckfinder.com/license
//
$GLOBALS['CKFLang'] = array (
'ErrorUnknown' => 'A parancsot nem sikerült végrehajtani. (Hiba: %1)',
'Errors' => array (
'10' => 'Érvénytelen parancs.',
'11' ... |
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use AppBundle\Entity\Course;
use AppBundle\Form\CourseType;
use Symfony\Component\HttpFoundation\Response;
class Edi... |
<?php
namespace SmashPig\PaymentProviders;
use SmashPig\PaymentData\FinalStatus;
/**
* Class ApprovePaymentResponse
* @package SmashPig\PaymentProviders
*/
class ApprovePaymentResponse extends PaymentProviderResponse {
/**
* A successfully approved payment should be in COMPLETE status.
*
* @return bool
... |
<?php
namespace App\Http\Middleware;
use Auth;
use Closure;
use Redirect;
class isAdmin
{
/**
* 校验是否为管理员身份
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
{
... |
<?php $__env->startSection('title'); ?>
Login
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="page-content page-auth">
<div class="section-store-auth" data-aos="fade-up">
<div class="container">
<div class="row align-items-center row-login mt-5">
<... |
<?php
/**
* A object represation of a DNS packet (RFC1035)
*
* This object is used to manage a DNS packet. It contains methods for
* DNS packet compression as defined in RFC1035, as well as parsing a DNS
* packet response from a DNS server, or building a DNS packet from the
* instance variables contained in t... |
<?php
session_start();
if (isset($_SESSION['logueado']) && $_SESSION['logueado']) {
$_SESSION['logueado'] = false;
unset($_SESSION['username']);
}
?>
<html>
<head>
<script language='javascript' type='text/javascript'>
var formulario = document.getElementById("hidden1"); // el id del formulario
var redir... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreatePermissionRequest;
use App\Http\Requests\UpdatePermissionRequest;
use App\Repositories\PermissionRepository;
use App\Http\Controllers\AppBaseController;
use Illuminate\Http\Request;
use Flash;
use Response;
class PermissionController extends AppBaseCo... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('_partials/head') ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<!-- Navbar -->
<?php $this->load->view('_partials/navbar') ?>
<!-- /.navb... |
<div class="app-header header-shadow">
<div class="app-header__logo">
<div class="logo-src"></div>
<div class="header__pane ml-auto">
<div>
<button type="button" class="hamburger close-sidebar-btn hamburger--elastic" data-class="closed-sidebar">
<span ... |
<?php
use Illuminate\Database\Seeder;
class RecursSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
}
} |
<?php
namespace App\Http\Controllers\API\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class AdminController extends Controller
{
//
} |
<?php
namespace App\Providers;
use App\Events\CourseCreated;
use App\Events\CourseUpdated;
use App\Events\EnrollmentCreated;
use App\Events\EnrollmentDeleted;
use App\Events\EnrollmentCourseUpdated;
use App\Events\EnrollmentUpdated;
use App\Events\EnrollmentUpdating;
use App\Events\LeadStatusUpdatedEvent;
use App\Eve... |
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... |
<?php
namespace Kirby\Cms;
use Kirby\Filesystem\Dir;
use Kirby\Filesystem\F;
use Kirby\Http\Response;
/**
* Plugin assets are automatically copied/linked
* to the media folder, to make them publicly
* available. This class handles the magic around that.
*
* @package Kirby Cms
* @author Bastian Allgeier <b... |
<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Providers\Auth;
use Tymon\JWTAuth\Contracts\Providers\Auth;
use Illuminate... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
declare(strict_types=1);
namespace Atk4\Core\Tests;
use Atk4\Core\ConfigTrait;
use Atk4\Core\Phpunit\TestCase;
/**
* @coversDefaultClass \Atk4\Core\ConfigTrait
*/
class ConfigTraitTest extends TestCase
{
/** @var string */
public $dir = __DIR__ . '/config_test';
public function testFileRead(): ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
class ItemList extends Model
{
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*... |
<?php
namespace EasyQQ\Payment\Kernel\Exceptions;
use EasyQQ\Kernel\Exceptions\Exception;
/**
* Class InvalidSignException
*
* @author JimChen <imjimchen@163.com>
*/
class InvalidSignException extends Exception
{
} |
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +-----------------------------------------------... |
<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="tabmenu">
<?php include template('layout/submenu');?>
</div>
<div class="alert alert-block mt10">
<ul>
<li>1. 店铺到期前 30 天可以申请店铺续签。</li>
<?php if (empty($output['reopen_list'])) { ?>
<li>2. 您的店铺已签约至 <?php echo date('Y-m-d',$output['store... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EtapaTrabalho extends Model
{
protected $fillable = ['excecao'];
public function user() {
return $this->belongsToMany(Arquivo::class, 'arquivos', 'user_id', 'etapatrabalho_id')
->withPivot('user_id', 'etapatrabalh... |
<?php
declare(strict_types=1);
/**
* ADmad\SocialAuth plugin.
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*/
namespace ADmad\SocialAuth\Middleware;
use Cake\Core\Configure;
use Cake\Core\InstanceConfigTrait;
use Cake\Datasource\EntityInterface;
use... |
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use BackendBundle\Entity\Opinion;
class RateController extend... |
<?php $__env->startSection('content'); ?>
<form class="needs-validation" action="<?php echo e(route('coupon.admin.store',['id'=>($row->id) ? $row->id : '-1','lang'=>request()->query('lang')])); ?>" method="post">
<?php echo csrf_field(); ?>
<div class="container-fluid">
<div class="d-fle... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h3>{{$tit... |
<?php declare(strict_types=1);
namespace Malios\Ast2Zephir\Generator\Exception;
class GeneratorException extends \Exception {} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Newmodel extends Model
{
//
} |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use App\Http\Requests\Request;
class AddUserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return $th... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\SignUpRequest;
use Illuminate\Support\Facades\Hash;
/**
* 会員登録コントローラ
*/
class SignUpController extends Controller
{
/**
* 会員登録画面表示
* @return void
*/
public function index()
{
// エラーメッセージがある場合(TwitterAPI認証処理からリダイレクトした場合)
... |
<?php
namespace Agence\AgenceBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class CategoriesType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $opti... |
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
//use App\Post;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
{
$this->get('/')->assertSee('Blog');
... |
<?php
// ::layout.html.twig
return array (
'ffb9ea2' =>
array (
0 =>
array (
0 => '@bootstrap_css',
1 => '@main_css',
),
1 =>
array (
),
2 =>
array (
'output' => 'css/ffb9ea2.css',
'name' => 'ffb9ea2',
'debug' => NULL,
'combine' => NULL,
... |
<?php
declare(strict_types=1);
namespace Model\Candidate\Handlers;
use eGen\MessageBus\Bus\QueryBus;
use Model\Candidate\Commands\SaveCandidates;
use Model\Candidate\ReadModel\Queries\CandidatesCountQuery;
use Model\Candidate\Repositories\ICandidateRepository;
use Model\DTO\Candidate\SkautisCandidate;
use Skautis\Sk... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\Usuario */
$this->title = '(' . $model->legajo . ') ' . $model->nombre;
$this->params['breadcrumbs'][] = ['label' => 'Usuarios', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div ... |
@extends('layouts.front')
@section('title', 'This is a blank page')
@section('description', 'This is a blank page that needs to be implemented')
@section('content')
<link rel="stylesheet" href="{!! asset('css/select2.min.css') !!}">
<link rel="stylesheet" href="{!! asset('dist/css/bootstrap-multiselect.css') !!}">
<s... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By defau... |
<?php
namespace interactivesolutions\honeycombbanners\app\http\controllers;
use Illuminate\Database\Eloquent\Builder;
use interactivesolutions\honeycombcore\http\controllers\HCBaseController;
use interactivesolutions\honeycombbanners\app\models\HCBanners;
use interactivesolutions\honeycombbanners\app\validators\HCBan... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\ExifIFD;
use JMS\Serializer\Annotation\ExclusionPolic... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?= $header; ?>
<style type="text/css">
.nav.nav-tabs li a {
color: #555;
border-radius: 0;
}
</style>
<div class="container">
<div class="breadcrumb-header justify-content-between">
<div>
<h4 class... |
@extends('backend.layout.master')
@section('content')
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title">Create A Batch</h3>
</div><!-- /.box-header -->
<!-- form start -->
<form role="form" action="{{ route('backend.batch.store') }}... |
@extends('layout.page')
@section('content')
<div class="hide-print banniere parallax cover"></div>
<div class="fluid-contenu">
<p class="slogan parallaxOpacity "><strong class="titre">Mentions légales</strong></p>
<div class="dotencart">
<div class="container nopad">
... |
<?php
namespace AppBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class Logowanie extends AbstractType
{
public function getName() {
return 'Logowanie';
}
public function buildForm(FormBuilderInterface $builder, array $options)
{
... |
<?php
namespace App\Http\Controllers\MasterAdmin;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Log;
use Illuminate\Http\Request;
class EditController extends Controller
{
public function index(Request $request)
{
if ($request->backend_us... |
<?php
namespace App\Sync\Task;
use App\Entity;
use App\Message;
use App\MessageQueue;
use App\Radio\Filesystem;
use App\Radio\Quota;
use Bernard\Envelope;
use Brick\Math\BigInteger;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\ORM\EntityManager;
use Monolog\Logger;
use Symfony\Component\Finde... |
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.2.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class FS_Options... |
#!/usr/bin/php
<?php namespace App;
require __DIR__.'/vendor/autoload.php';
use Curl\Curl;
use PHPHtmlParser\Dom;
class Crawler
{
/**
* links that have been visited.
*
* @var array
*/
protected $visited = [];
/**
* Links to visit (stack)
*
* @var array
*/
prot... |
<?php
namespace Wa\BackBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class M... |
<?php
namespace App\JsonApi\Keywords;
use CloudCreativity\LaravelJsonApi\Pagination\StandardStrategy;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Collection;
use App\JsonApi\Base\AbstractAdapter;
use App\Models\keywords;
use Illuminate\Support\Facades\Auth;
class Adapter extends AbstractAdapter
... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%designation}}`.
*/
class m200412_053749_create_designation_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%designation}}', [
'id' => $this->primaryK... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row my-5 justify-content-center">
<div class="col-sm-8">
<div class="card">
<div class="card-body">
<div class="mb-4">
<h4>Yo... |
<?php
/**
* GetWarsWarIdUnprocessableEntity
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* E... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Product;
use Intervention\Image\Facades\Image;
use PhpParser\Node\Stmt\TryCatch;
use Str;
use Storage;
use JWTAuth;
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\Exceptions\TokenExpiredException;
use Tymon\JWTAuth\Excep... |
<?php declare(strict_types=1);
namespace Rector\Php\Tests\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
use Rector\Php\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
final class ArraySpreadInsteadOfArrayMergeRectorTest extends AbstractRectorTestCase
{... |
<?php
declare(strict_types=1);
namespace BitWasp\Bitcoin\Key\KeyToScript\Decorator;
use BitWasp\Bitcoin\Crypto\EcAdapter\Key\KeyInterface;
use BitWasp\Bitcoin\Key\KeyToScript\ScriptAndSignData;
use BitWasp\Bitcoin\Script\P2shScript;
use BitWasp\Bitcoin\Script\ScriptType;
use BitWasp\Bitcoin\Transaction\Factory\SignD... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class MaterialController extends Controller
{
public function formMaterial(){
//BuscarInformações
return View('FormMaterialView');
}
} |
<?php
namespace backend\controllers;
use backend\models\ShopInterface;
use common\models\UploadForm;
use common\models\Utils;
use SebastianBergmann\CodeCoverage\Util;
use Yii;
use common\models\item;
use common\models\shop;
use yii\data\ActiveDataProvider;
use yii\data\Pagination;
use yii\helpers\ArrayHelper;
use yii... |
@extends('layouts.app')
@section('content')
<h1 align="center">Mis Diplomados</h1>
<div class="container">
<div class="row">
<div class="col-md-4">
<label class="sr-only" ></label>
<div class="md-form input-group mb-3">
<input class="form-control pl-0 rounded-0" id="Search... |
<ul class="sf_admin_actions">
<?php foreach ($this->configuration->getValue('show.actions') as $name => $params): ?>
<?php if (isset($params['condition'])): ?>
[?php if ($<?php echo $this->getSingularName() ?>-><?php echo $params['condition'] ?>()): ?]
<?php endif; ?>
<?php if ('_delete' == $name): ?>
<?php echo ... |
@extends('layouts.app')
@section('content')
<main id="main" class="main max-w-screen-xl w-full mx-auto px-4 sm:px-6 lg:px-8 pt-8">
<p>
<a href="/reading-list">← Back to Reading List</a>
</p>
<div class="comic-main">
<div class="comic-cover">
<img s... |
@extends('adminlte::page')
@section('title', 'Menus')
@section('content')
<div class="d-sm-flex align-items-center justify-content-between mb-2">
<h1 class="h3 mb-0 text-gray-800">@yield('title')</h1>
<a href="{{ route('menus.create') }}" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="... |
<?php
use yii\db\Migration;
use yii\db\Schema;
/**
* Handles the creation of table `user`.
*/
class m170506_070552_create_user_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('user', [
'id' => Schema::TYPE_PK,
'username' ... |
@extends('layouts.master')
@section('header')
<link rel="stylesheet" href="/old.css">
<header class="nav-home">
<div class="menu-text">
@auth
<a href="{{route('logout')}}">خروج کاربر</a>
@php
$role = auth()->user()->role->name;
... |
<?php
$product_id=$_GET['product_id'];
$sql_detail="SELECT * FROM product WHERE product_id = $product_id";
$query_product=mysqli_query($connect,$sql_detail);
$row1=mysqli_fetch_assoc($query_product);
$pieces=json_decode($row1['image_list'],1);
$query=mysqli_query($connect,"SELECT * from product order by prod... |
<?php
/**
* Session Expired Exception
*
* PHP version 5
*
* Copyright (C) Villanova University 2011.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is d... |
<?php
namespace App\Http\Controllers;
use App\Http\Resources\ProductResource;
use App\Models\Product;
use Illuminate\Http\Request;
use GuzzleHttp\Client;
class ApiController extends Controller
{
function apiwork()
{
$search_key = ($_GET['search'] ?? '');
$client = new \GuzzleHttp\Client();
... |
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Aplikasi Chatting Sederhana (Simpel) dari Bayu Hidayah M.">
<meta name="keywords" content="Chatting, Simple Chatting, JSON & AJAX, PHP, CodeIgniter">
<meta name="author" content="Bayu Hidayah M.">
<t... |
<?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
namespace App\Model\admin;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
public function permissions()
{
return $this->belongsToMany(Permission::class);
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Attendance extends Model
{
protected $fillable=[
'user_id','att_date','att_year','attendance','month',
];
} |
<?php
/**
* 2007-2018 PrestaShop
*
* 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
* If you did not re... |
<!DOCTYPE html>
<html>
<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>Facade</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=R... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Client extends Authenticatable
{
use Notifiable;
protected $guard = 'client';
protected $fillable = [
'name', 'email', 'password',
];
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
@extends('header')
@section('head_css')
@parent
<link href="{{ asset('css/lightbox.css') }}" rel="stylesheet" type="text/css"/>
<link href="{{ asset('css/quill.snow.css') }}" rel="stylesheet" type="text/css"/>
<style type="text/css">
select.tax-select
{
width: 50%;
float: left;
}
... |
<?php
namespace FilippoToso\Travelport\Rail;
class typeFeeInfo
{
/**
* @var TaxInfoRef[] $TaxInfoRef
*/
protected $TaxInfoRef = null;
/**
* @var IncludedInBase $IncludedInBase
*/
protected $IncludedInBase = null;
/**
* @var typeMoney $BaseAmount
*/
protected $B... |
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<!-- <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentelella Alela!</span></a> -->
<a href="<?php echo base_ur... |
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Models\User;
use App\Models\Brand;
use App\Models\Category;
use App\Models\Company;
use App\Models\Products;
use App\Models\Supplier;
use Tests\TestCase;
use Illuminate\Http\UploadedFile;
class ProductsControllerTest extends Te... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Validation\Rule;
class Answer extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'question_id', 'answer_id','answer'
];
/**
* @var string... |
<?php
declare(strict_types=1);
namespace App\Entity\Migration;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20170512094523 extends AbstractMigration
{
/**
* @param Schema $schema
*/
... |
@extends('layouts.app')
@section('content')
<style type="text/css">
body {
}
table {
width: 100%;
border-collapse: collapse;
}
/* Zebra striping */
tr:nth-of-type(odd) {
background: #eee;
}
th {
background: #333;
color: white;
font-weight: bold;
}
td, th {
padding: 5px;
border: 1px solid #... |
<?php
/**
* @copyright Copyright (c) 2011 ООО «ТриДаВинчи»
* @author Andrey Morozov
*/
namespace Connector\Gateway\Entity;
/**
* Class ProductAdditionalField
* @package Connector\Gateway\Entity
*/
class ProductAdditionalField
{
/**
* @var string
*/
private $name;
/**
* @var string
... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\CoopController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register ... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\RevController;
use App\Http\Controllers\MiscController;
use App\Http\Controllers\CapitalController;
use App\Http\Controllers\TrainingController;
/*
|--------------------------------------------------------------------------
| Web Routes
|------------... |
<?php
/**
* Generic_Sniffs_NamingConventions_CamelCapsFunctionNameSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
* @license ht... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
return [
'data' => [
'dest_country_id' => 'DE',
'dest_region_id' => '82',
'dest_region_code' => 'BER',
'dest_street' => 'Turmstraße 17',
'dest_city' => 'Berlin',
'd... |
<?php
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\Bu... |
<?php
// This file is part of Moodle - https://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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.