text stringlengths 2 1.03M |
|---|
<?php
require_once __DIR__.'/../Base.php';
use Kanboard\Model\TaskModel;
use Kanboard\Model\TaskCreationModel;
use Kanboard\Model\TaskModificationModel;
use Kanboard\Model\TaskFinderModel;
use Kanboard\Model\ProjectModel;
use Kanboard\Model\TaskTagModel;
class TaskModificationModelTest extends Base
{
public func... |
<?php
namespace App\Http\Controllers;
use App\Models\Games;
use App\Service\PostService;
use Illuminate\Contracts\Container\Container;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\View\View;
class QuizController extends Controller
{
public function show(PostService $post): Vi... |
<?php
namespace statikbe\sentry\services;
use Craft;
use craft\base\Component;
use Sentry as SentrySdk;
use Sentry\State\Scope;
use statikbe\sentry\events\DefineSentrySdkConfigurationEvent;
use statikbe\sentry\Sentry;
use Twig\Error\RuntimeError;
class SentryService extends Component
{
/**
* @event DefineSe... |
<?php
namespace App\Http\Controllers\AcsDemo;
use App\Http\Controllers\Controller;
class AcsController extends Controller {
function authorizeNoParams() {
$params = [
'merchant' => 'MoneyDemo',
'amount' => '25.95',
'date' => '25 october 2016',
'cardnumber' => '4512********7896',
];
return view... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class home extends Controller
{
//
public function index ()
{
$UsersName = Auth::user() ->username;
$url = url($path='/register',$parameter = [$UsersName]);
return view('welcome... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
@extends('layouts.dashboard')
@section('title')
Detail Movie
@endsection
@section('bc')
{{ Breadcrumbs::render('detailMovie', $movie) }}
@endsection
@section('content')
<div class="detail col-md-12 px-4">
<div class="jumbotron-img mb-4">
</div>
<div class="detail-info d-flex mb-4">
<div class="c... |
<?php
/**
* @file
* Contains \Drupal\ctools\Plugin\Block\EntityField.
*/
namespace Drupal\ctools_block\Plugin\Block;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Entity\EntityFieldManagerInt... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use OwenIt\Auditing\Contracts\Auditable;
class Union extends Model implements Auditable
{
use \OwenIt\Auditing\Auditable;
protected $table = 'unions';
protected $fillable = ['upazilla_id', 'name','bn_name','url'];
public function upazilla... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading"><h2><b><center> Data Golongan </center></b></h2></div>
<div class="panel-bo... |
<?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 FedEx\RateService\SimpleType;
use FedEx\AbstractSimpleType;
/**
* Indicates the reason that a dim divisor value was chose.
*
* @author Jeremy Dunn <jeremy@jsdunn.info>
* @package PHP FedEx API wrapper
* @subpackage Rate Service
*/
class RateDimensionalDivisorType
extends AbstractSi... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
protected $table = 'articles';
protected $fillable = [
'title', 'body', 'image'
];
} |
<?php namespace Riari\Forum\Frontend\Support;
use Illuminate\Routing\Router;
use Riari\Forum\Models\Category;
use Riari\Forum\Models\Post;
use Riari\Forum\Models\Thread;
use Session;
class Forum
{
/**
* Process an alert message to display to the user.
*
* @param string $type
* @param string... |
@extends('master')
@section('content')
<section id="main-content" class="clearfix">
<div class="container">
<div class="row">
<div class="jumbotron col-md-12" style="padding:50px 0 50px 0;border:3px solid rgba(22, 156, 195, 1);margin-top:20px;">
<div id="product-image" class="col-md-3">
... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Message;
use App\Penalty;
class CheckTeacherTimeout extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'CheckTeacherTimeout:teacherTimeout';
/*... |
<?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;
class User extends Authenticatable implements MustVerifyEmail
{
use HasFactory, Notifi... |
<?php
/**
* VersionControl_HG
* Simple OO implementation for Mercurial.
*
* PHP Version 5.4
*
* @copyright 2014 Siad Ardroumli
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://siad007.github.io/versioncontrol_hg
*/
namespace Siad007\VersionControl\HG\Command;
/**
* Simple OO ... |
<?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;
class User extends Authenticatable
{
use HasFactory, Notifiable;
/**
* The a... |
<?php
namespace Spinen\ConnectWise\Models\v2018_6\Sales;
use Carbon\Carbon;
use Spinen\ConnectWise\Support\Model;
/**
* Class Commission Version v2018_6
*
* Model for Commission
*
* @property AgreementReference $agreement
* @property AgreementTypeReference $agreementType
* @property BoardReference $serviceBoa... |
<?php
/**
* ============================================================================
* Copyright (c) 2015-2020 贵州大师兄信息技术有限公司 All rights reserved.
* siteַ: https://www.gzdsx.cn
* ============================================================================
* @author: David Song<songdewei@163.com>
* @version... |
<?php
/**
* @package Joomla.Legacy
* @subpackage View
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Base class for a Joomla View
*
* Class hold... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Auth;
class UserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
*... |
<!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">
<link rel="stylesheet" type="text/css" href="../css/estilo.css"/>
<link rel="stylesheet" type="text/css" href=".... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrderDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_details', function (Blueprint $table) {
... |
<?php
/**
* Created by PhpStorm.
* User: zamurd
* Date: 2/3/2019
* Time: 10:04 AM
*/
namespace App\Http\Components\Role\Controllers;
use App\Http\Components\Controller;
use App\Http\Components\Role\RoleModel;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
class UserController extends Co... |
<?php
/**
* PayoutMethodTransferReasonEnumTest
*
* PHP version 5
*
* @category Class
* @package TransferZero
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* TransferZero API
*
* Reference documentation for the TransferZero API V1
*
* OpenAPI spec version: 1.0
*
... |
<?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 ... |
@extends('plantilla')
@section('seccion')
<h1>ENTRADAS Y SALIDAS </h1>
<form action="{{ route('notas.crear2') }}" method="POST">
@method('PUT')
@csrf
<input type="text" name="nombre" placeholder="Producto (Utilizar productos existentes)" class="form-control mb-2">
... |
<?php
/**
* WARNING!!
*
* Do not modify the content of this file, it's generated by the command:
* "php artisan models:generate" (package "axn/laravel-models-generator").
*
* If you want to add or modify a relation, do it in the model class or in
* another trait.
*/
namespace App\Models\GeneratedRelations;
tra... |
<?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 Sensio\Bundle\GeneratorBundle\Generator;
use Symfony\Component\Filesyst... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... |
<?php
namespace App\Http\Controllers\Api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$user... |
@extends('layout')
@section('title')
<title>Inicio Servicio Médico</title>
@stop
@section('css')
@stop
@section('popUp')
@stop
@section('subHead')
<div class="sign-avatar">
<img src="{{asset('/Template/img/LogoSMUPIIZ.svg')}}" alt="" style="height:120px;width:auto;">
</div>
Bienvenido al Servicio Médico
@stop
... |
<?php
namespace App\Modules\Backend\Website\Product\Repositories;
use App\Modules\Framework\Repository;
interface ProductRepository extends Repository
{
public function getModel();
public function getDataWithPagination($limit);
public function BrandNewBook($category);
public function Nobel($nobe... |
@extends('layouts/layout')
@section('title')
OrdU
@endsection
@section('content')
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi aperiam, asperiores at consectetur doloribus id
in ipsa molestias mollitia nisi non nostrum, ratione rerum! Error magni mollitia perferendis quibusdam
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Jadwal extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->model('Model_Jadwal');
$this->load->helper('url');
$this->load->helper('form');
$ver=$this->session->userdata('status');
if($ver == 0){
... |
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to... |
<?php
declare(strict_types=1);
namespace Baraja\Doctrine\Identifier;
use Doctrine\ORM\Mapping as ORM;
trait IdentifierUnsigned
{
/**
* @ORM\Id
* @ORM\Column(type="integer", unique=true, options={"unsigned"=true})
* @ORM\GeneratedValue
*/
#[ORM\Id]
#[ORM\Column(type: 'integer', unique: true, options: ['u... |
<?php
/**
* Created by PhpStorm.
* User: karlvaniseghem
* Date: 13/09/15
* Time: 23:27
*/
namespace Bakgat\Notos\Domain\Model\Curricula;
use Bakgat\Notos\Domain\Model\Identity\Group;
interface CurriculumRepository
{
/**
* Get all objectives in a curriculum.
*
* @param Curriculum $curriculum... |
<?php
$lang['employees_new']='New Employee';
$lang['employees_update']='Update Employee';
$lang['employees_confirm_delete']='Are you sure you want to delete the selected employees?';
$lang['employees_none_selected']='You have not selected any employees to delete';
$lang['employees_successful_deleted']='You have suc... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\FixturesBundle\Listener;
use Symfony\Component\Conf... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<!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... |
<?
require_once("bootstrap.inc.php");
require_once("include_pouet/box-modalmessage.php");
require_once("include_pouet/box-prod-submit.php");
if ($currentUser && !$currentUser->CanEditItems())
{
redirect("prod.php?which=".(int)$_GET["which"]);
exit();
}
/////////////////////////////////////////////////////////////... |
<?php
/**
* This file is part of the CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <admin@codeigniter.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use CodeIgniter\Cache\CacheInterface;
use CodeIgniter\Config\Fac... |
<?php
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*/
bx_import('BxDolPageView');
class BxPfwPageDetails extends BxDolPageView
{
protected $_oMain;
function BxPfwPageDetails(&$oMain)
{
parent::BxDolPageView('bx_pfw_d... |
<!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>TaskList</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.boo... |
<style>
.about_header {
color: #771216;
}
p {
font-size: larger;
font-weight: 400;
margin-bottom: 15px;
padding: 0 125px 0 0;
}
</style>
<div style="width:1060px;" class="container">
<h3 class="about_header"><strong>Contact Easy Nikah:</strong></h3>
<p>Easy Nikah is an Online Matchmaking portal and DON'T h... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHolidaysTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('holidays', function(Blueprint $table) {
$tab... |
<!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>Cara Membuat Form Validation Pada Codeigniter Menggunakan Bootstrap</title>
<!-- Bootstrap -->
<link ... |
<?php ?>
/**
* Created by PhpStorm.
* User: Nicolas Canfrere
* Date: 06/09/2014
* Time: 14:26
*/
/*
____________________
__ / ______ \
{ \ ___/___ / } \
{ / / # } |
{/ ô ô ; __} |
/ \__} / \ /\
<=(_ _... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class States extends Model
{
protected $table = "states";
public function locals(){
return $this->hasMany(Locals::class,'state_id','state_id');
}
public function zones(){
return $this->hasOne(GeoRegions::class,'id','state_... |
@extends('layout.default')
@section('title', $__t('Batteries'))
@section('activeNav', 'batteries')
@section('viewJsName', 'batteries')
@section('content')
<div class="row">
<div class="col">
<div class="title-related-links">
<h2 class="title">@yield('title')</h2>
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('product_tag... |
<?php
namespace App\Http\Controllers;
use App\Models\autobuses;
use Illuminate\Http\Request;
class autobusesController extends Controller
{
public function index()
{
$autobuses = autobuses::all();
return view('autobuses.index', compact('autobuses'));
}
} |
<?php declare(strict_types=1);
use Shopware\Core\Defaults;
use Shopware\Core\Framework\Uuid\Uuid;
use Symfony\Component\Filesystem\Filesystem;
$connection = require __DIR__ . '/boot.php';
$fs = new Filesystem();
$env = json_decode((string) file_get_contents(__DIR__ . '/env.dist.json'), true, 512, \JSON_THROW_ON_ERR... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Producto;
use App\Categoria;
use App\Proveedor;
class ProductoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Diretor */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="diretor-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'id_docente')->textInput() ?>
<?= $form->field... |
<?php
namespace App\Http\Controllers;
use App\Models\Book;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class CheckinBookController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function store(Book $book)
{
try {
... |
<?php namespace CodeIgniter\HTTP;
/**
* 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 obta... |
<?php
//----------------------------------------------------------------------------
// This software is licensed under the MIT license. Use as you wish but give
// and take credit where due.
//
// Author: Paul Lemmons
//----------------------------------------------------------------------------
?>
<?php
include 'incl... |
<?php declare(strict_types=1);
namespace App\Util\Example;
interface FibonacciInterface
{
/**
* Returns the rank term `n` from the Fibonacci sequence.
*
* @param int $n
* @return int
*/
public function rank(int $n): int;
} |
<html lang="en">
<body>
<h1>Hola</h1>
<div>Tu usuario es : {{ $user }}</div>
<div>Para recuperar tu contraseña ingrea a : <a href="{{ $url }}">Recuperar contraseña {{ $name }}!</a> </div>
</body>
</html> |
<?php
namespace common\models;
use Yii;
use yii\base\NotSupportedException;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* This is the model class for table "user".
*
* @property integer $id
* @property string $first_name
* @property string $last_name
* @prop... |
<?php
use yii\helpers\Html;
use yii\bootstrap4\ActiveForm;
/* @var $loginForm frontend\forms\auth\LoginForm */
$this->title = 'LogIn';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="card">
<div class="card-body login">
<p class="login-box-msg">Sign in to start earn</p>
<?php $for... |
<?php
namespace ContainerXFscWft;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getGroupeCompetenceControllerSer... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateHostelFacilitiesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hostel_facilities', function(Blueprint $table)
{
$table->id('id');... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php
namespace Fulfillment\Postage\Api;
use Fulfillment\Api\Api;
use Fulfillment\Postage\Exceptions\ClientValidationException;
use Fulfillment\Postage\Models\Request\Contracts\Validatable;
class ApiRequestBase {
protected $apiClient;
protected $jsonMapper;
protected $jsonOnly;
protected $validateRequests;
/**... |
<?php
namespace Omnipay\SpeedPay\Message;
abstract class AbstractResponse extends \Omnipay\Common\Message\AbstractResponse
{
/**
* @return int|null
*/
public function getCode()
{
return isset($this->data['result']) ? (int)$this->data['result'] : null;
}
/**
* @return string... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
片区年假计划
</h1>
</section>
<!-- Main content -->
<section class="content">
<!-- Small boxes (Stat box) -->
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGamesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('games', function ... |
<?php
use Illuminate\Database\Seeder;
class AcountTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('acounts')->insert([
[
'user_id' => '2',
'gender' => '男性',
... |
<?php
/*
* Copyright 2001-2015 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Words. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
class AutoFitTables {
pub... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class ArticleImgController extends Controller
{
} |
<?php
/**
* @file
* Contains \BackupMigrate\Core\Source\DatabaseSource.
*/
namespace BackupMigrate\Core\Source;
use BackupMigrate\Core\Config\Config;
use BackupMigrate\Core\Plugin\FileProcessorInterface;
use BackupMigrate\Core\Plugin\FileProcessorTrait;
use BackupMigrate\Core\Plugin\PluginBase;
/**
* Class Data... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFavoriteSportTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('favorite_... |
@extends('app')
@section('content')
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 ">
<div class="panel panel-default">
<div class="panel-heading h1 text-center">Αρχειοθέτηση</div>
<div class="panel-body ">
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\Customer\CreateCustomerRequest;
use App\Http\Requests\Admin\Customer\UpdateCustomerRequest;
use App\Repositories\CustomerRepository;
use Exception;
class CustomerController extends Controller
{
private $c... |
<?php
use Illuminate\Database\Migrations\Migration;
use App\Models\CMS\ArticleCategory;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Sc... |
<?
/********************************************************************
Topics
**************************************!*****************************/
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/include.p... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Auth extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('home_model');
}
public function index()
{
$t... |
<?php
namespace app\modules\admin\models\query;
/**
* This is the ActiveQuery class for [[\app\modules\admin\models\Page]].
*
* @see \app\modules\admin\models\Page
*/
class PageQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**... |
<?php
namespace App\Http\Controllers;
use App\Model\maison;
use Illuminate\Http\Request;
class piece3Controller extends Controller
{
//
public function piece3(){
$first = maison::where('logement', '=', "appartement")->get();
$les_articles = $first->where("piece", "<=", 3);
return... |
<?php namespace App\Controllers\Admin;
use App\Controllers\BaseController;
class User extends BaseController
{
public function index()
{
echo "ini Controllers user metod index yang ada didalam folder admin";
}
//--------------------------------------------------------------------
} |
<?php
namespace AvoRed\Framework\System\DataGrid;
use AvoRed\Framework\DataGrid\Facade as DataGrid;
class ThemeDataGrid
{
/**
* Theme DataGrid Manager
*
* @var \AvoRed\Framework\DataGrid\Manager $dataGrid
*/
public $dataGrid;
/**
* Theme controller which accepts Collection of th... |
@extends('_layouts._layout_site')
@include('_layouts._includes._head')
@section('head')@endsection
@section('titulo')@lang('bocais.bocais')@endsection
@section('topo_detalhe')
<div class="container-fluid topo">
<div class="row align-items-start">
{{-- Titlle and Subtitlle --}}
<di... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMarksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('marks', function ... |
<?php
require_once '../resources/includes/constants.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require_once ROOT . '/head.php'; ?>
<?php require_once ROOT . '/resources/includes/sort.php'; ?>
<meta name="msapplication-TileImage" content="/favicon/misc/ms-icon-144x144.png">
<?php if (isset($_GET['id'... |
<?php
namespace REC\Modules\Extended\Database\DatabaseInstaller;
use REC\Modules\Extended\Database\DatabaseInstaller\InstallFiles;
/**
* @todo Documentar
*/
class InstallFiles {
use InstallFiles\initFiles;
/**
*
* @var array
*/
private static $FileList = [];
/**
*
* @var... |
<?php
namespace App\Http\Controllers;
use App\hall;
use Illuminate\Http\Request;
class hallsController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return response()->json(hall::get(),200);
... |
<?php
namespace PIDEVBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class PIDEVBundle extends Bundle
{
} |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
class ResourceCollection extends AnonymousResourceCollection
{
public function withResponse($request, $response)
{
$data = $response->getData(true);
unset($data['links']);
unset($data['... |
<table width="795" align="center" bgcolor="white">
<tr align="center">
<td colspan="6"><h2>View All Customers Here</h2></td>
</tr>
<tr align="center" style="color:white" bgcolor="black">
<th>S.N</th>
<th>Name</th>
<th>Email</th>
<th>Image</th>
<th>Delete</th>
... |
<?php
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// factory(\App\Entities\User::class, 2)->create()->each(function($user) {
// $user->assignRole('Administrator');
... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use App\User;
class TestMail extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
/**
* Create a new message inst... |
<?php /* /home/vagrant/code/caocanhlinh/resources/views/form_pusher.blade.php */ ?>
<!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>Demo Application</title>
<... |
<?php
namespace App\Http\Controllers;
use App\Handlers\ImageUploadHandler;
use App\Models\Topic;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Requests\TopicRequest;
use App\Models\Category;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
class TopicsController extends Cont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.