text stringlengths 2 1.03M |
|---|
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
View::composer(
... |
<div>
<form action="#" wire:submit.prevent="store">
<div>
<label for="">Name</label>
<input type="text" name="name" wire:model.defer="invoice.name">
</div>
<div>
<label for="">Total</label>
<input type="text" wire:model.defer="invoice.total">
... |
<?php
declare (strict_types = 1);
namespace App\Actions\Catalog;
use App\Repositories\Catalog\CatalogRepositoryInterface;
use Illuminate\Support\Facades\Auth;
final class GetCategoriesAction
{
private $catalogRepository;
public function __construct(CatalogRepositoryInterface $catalogRepository)
{
... |
<?php
// Current Full URL
$fullPagePath = Request::url();
// Char Count of Backend folder Plus 1
$envAdminCharCount = strlen(env('BACKEND_PATH')) + 1;
// URL after Root Path EX: admin/home
$urlAfterRoot = substr($fullPagePath, strpos($fullPagePath, env('BACKEND_PATH')) + $envAdminCharCount);
?>
<div id="aside" class="... |
<?php
/**
* --------------------------------------------------------------------------------------------------------------------
* <copyright company="Aspose">
* Copyright (c) 2018 Aspose.Slides for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy... |
@extends('layouts.master')
@section('title', 'PPDB - Dashboard')
@section('content')
@if(auth()->user()->role_name == "admin")
<div class="app-page-title">
<div class="page-title-wrapper">
<div class="page-title-heading">
<div class="page-title-icon">
<i class=" pe-7s-albums icon... |
<?php
namespace Modules\UserManagement\Jobs;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Modules\UserManagement\Entities\GeneratedUserToken;
use Modules\UserMan... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<div class="alert alert-success" id="notifitemout" style="display:none">
<span><b>Item Keluar Berhasil Disimpan</span>
</div>
<div class="card">
<div class="header">
<h4 class="title">Input Bahan Masakan Keluar</h4>
</div>
<div class="content">
<form id="submit-item-out">
<di... |
<?php
/***********************************************************************************/
/* (C) 2021 - Skyfallen */
/* Skyfallen Developer Center Developed by */
/* The Skyfallen Company ... |
<?php
namespace Bart\Jira;
/**
* A reference to a Jira Issue
*/
class JiraIssue
{
/** @var string The Jira Identifier */
private $id;
/**
* @param string $id The Jira Identifier. E.g. "ISSUE-123"
*/
public function __construct($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function __to... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. T... |
<?php
/**
* ExportLocaleResponse.php
* words
* Date: 09.02.18
*/
namespace Components\Interaction\Translations\ExportLocale;
use Components\Infrastructure\Response\IResponse;
use Components\Infrastructure\Response\Response;
class ExportLocaleResponse extends Response
{
protected $status = IResponse::STATUS... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware =... |
<?php
session_start();
if (!isset($_SESSION["login"])){
header("Location: login.php");
exit;
}
require 'function.php';
// cek apakah tombol submit sudah di tekan atau belum
if( isset($_POST["submit"]) ) {
/* Melihat isi dari $_POST $_FILES (debug)
var_dump($_POST);
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEntriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('entries', funct... |
<?php
require 'vendor/autoload.php';
use Guzzle\Http\Client;
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
exit();
}
const URL = 'http://localhost:5984/';
$app = new Phalcon\Mvc\Micro();
$di = new Phalcon\DI();
$di['client'] = new Client();
$app->get('/', function () use ($app, $di) {
$result = $di['clie... |
<?php
namespace App\Transformers\Orders;
use League\Fractal\TransformerAbstract;
use App\Models\Orders\Order;
/**
* Class OrderTransformer.
*
* @package namespace App\Transformers\Orders;
*/
class OrderTransformer extends TransformerAbstract
{
/**
* Transform the Order entity.
*
* @param \App\... |
<?php
declare(strict_types=1);
namespace Stancl\Tenancy;
use Illuminate\Cache\CacheManager as BaseCacheManager;
class CacheManager extends BaseCacheManager
{
/**
* Add tags and forward the call to the inner cache store.
*
* @param string $method
* @param array $parameters
* @return mixe... |
<?php
namespace Dzineer\CustomModules\Http\Controllers\Api;
use Dzineer\CustomModules\Models\UserModuleMonitorLink;
use Dzineer\CustomModules\Models\LinkMonitor;
use Illuminate\Http\Request;
use Dzineer\CustomModules\Http\Controllers\Controller;
use Dzineer\CustomModules\Models\HashCustomModuleUser;
use Illuminate\Ht... |
<?php
namespace App\Navcoin\Block\Entity;
class Vin
{
/** @var string */
private $coinbase;
/** @var string */
private $txId;
/** @var int */
private $vout;
/** @var int */
private $sequence;
/** @var float */
private $value = 0;
/** @var int */
private $valuesat =... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ClienteRepresentante extends Model
{
protected $fillable = [
'id', 'nombre','funcion_representante', 'telefono','email','cliente_id','cliente'
];
/**
* The attributes that should be hidden for arrays.
*
* @var array... |
<?php
include("../../../config/settings.inc.php");
define("IEM_APPID", 78);
include_once "../../../include/myview.php";
$t = new MyView();
$t->title = "School Network Data Download";
include("../../../include/forms.php");
include("../../../include/imagemaps.php");
$nselect = networkMultiSelect(Array("KCCI", "KIMT", "... |
<?php
/**
* File copied from Waavi/Sanitizer https://github.com/waavi/sanitizer
* Sanitization functionality to be customized within this project before a 1.0 release.
*/
namespace PerfectOblivion\ActionServiceResponder\Validation\Sanitizer;
use Closure;
use Illuminate\Support\Arr;
use Illuminate\Validation\Valida... |
@extends('layouts.admin')
@section('content')
@if($message = Session::get('error'))
<div class="alert alert-danger" id="floating_alert" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<strong>{{ $message }}<... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class GroupQuestion extends Model
{
use SoftDeletes;
protected $table = 'group_question';
protected $fillable = ['*'];
} |
<?php
// [ 应用入口文件 ]
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php'; |
@props([
'classes' => 'mr-4 h-6 w-6 text-amber-200 dark:text-gray-400',
])
@if($classes)
<svg class="{{$classes}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
<path d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Popup iframes - jQuery Mobile Demos</title>
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', functio... |
<?php
/**
* Magento
*
* 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:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHoaDonsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hoa_don', funct... |
@extends('layouts.main')
@section('content')
<!-- Banner -->
<section class="banner full">
<article>
<img src="{{ asset('images/slide01.jpg') }}" alt="" />
<div class="inner">
<header>
<p>A free responsive web site template by TEMPLATED</p>
<h2>Hielo</h2>
</header>
</div... |
<?php
class Datausaha extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->helper('download');
$this->load->model('m_pengunjung');
$this->load->model('m_usaha');
$this->m_pengunjung->count_visitor();
}
function index(){
$x['data']=$this->m_usaha->get_all_perkabupaten("... |
<?php
namespace App\Http\Resources;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
/** @mixin \App\Models\Announcement */
class AnnouncementResource extends JsonResource
{
/**
* @param Request $request
* @return array
*/
public function toArray... |
<?php
include 'core/dbh.class.php';
include 'classes/days.class.php';
include 'classes/availability.class.php';
include 'classes/shift.class.php';
include 'controller/dayscontroller.class.php';
include 'controller/ShiftControl.class.php';
include 'controller/availabilitycontroller.class.php';
include 'view/shiftsvie... |
@extends('backend.admin.layouts.app')
@section('styles')
<!-- Custom styles for this page -->
<link href="{{ asset('backend/vendor/datatables/dataTables.bootstrap4.min.css') }}" rel="stylesheet">
@endsection
@section('content')
<div class="row justify-content-between">
<div class="col-9">
<h1 class="h3 mb-2 te... |
<?php
namespace ConvertApi;
class Result
{
private $files;
function __construct($response)
{
$this->response = $response;
}
/**
* @return int Conversion cost
*/
function getConversionCost()
{
return $this->response['ConversionCost'];
}
/**
* @retur... |
<?php
namespace App\Http\Controllers;
use App\Models\abonnement;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
use mysql_xdevapi\Table;
class addAbonnementController extends Controll... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
use App\Charts\TestChart;
use App\{Shopping, Sale, Note, Store, Binnacle, Expense, Loan, Invoice, Waste, Goal, Employer, Equipment, Checkup, Task, TakenProduct};
class HelperCo... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Authenticatable;
use Bican\Roles\Traits\HasRoleAndPermission;
use Illuminate\Auth\Passwords\CanResetPassword;
use Bican\Roles\Contracts\HasRoleAndPermission as HasRoleAndPermissionContract;
use Illuminate\Contracts\Auth\Authenticatable as... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SourceMessage */
?>
<div class="source-message-update">
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div> |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\GraphQl\Quote\Guest;
use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId;
use Magento\TestFramework\Helper\Bootstrap;
use Magento\TestFramework\TestCase\GraphQlAbs... |
<?php
namespace App\Http\Middleware;
use Closure;
class Cors
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
header("Access-Control-Allow... |
@extends('layouts.app')
@section('content')
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
{{ Form::open( array('method' => 'post', 'class' => 'form-horizontal','files' => true, 'id' => 'editLeaveCategoryType' )) }}
<input id='editId' type="text" name="editId" class="hi... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark... |
<?php
include('controller/connexion.inc.php');
?>
<!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 http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bilan - Avril</title>
<link rel="shortcu... |
<?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
/**
* The main template file
*
* This is catchall file in WP theme.
* It is a required file
*
*/
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="content-inner">
<?php if (have_posts()):
while (have_posts()):
... |
<?php
/**
* Copyright 2018 Cloud Creativity Limited
*
* 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 ... |
@extends('layouts.app')
@section('content')
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Dashboard <span class="pull-right"> <a href="/listings/create" class="btn btn-success btn-xs">Add List</a></span></div>
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace PayPal\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for SetCustomerBillingAgreementRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class SetCustomerBillingAgreementRequestType extends AbstractRequestType
{
/**
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v3/services/keyword_plan_ad_group_service.proto
namespace Google\Ads\GoogleAds\V3\Services;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A ... |
--TEST--
phpunit --filter @false\ test ../../_files/DataProviderFilterTest.php
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--filter';
$_SERVER['argv'][] = '@false test';
$_SERVER['argv'][] = __DIR__ . '/../_files/... |
<?php
/*
* $Id: Chain.php 7490 2010-03-29 19:53:27Z jwage $
*
* 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... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
use Notifiable;
protected $guard = 'admin';
protected $fillable = [
'apellido',
'nombre',
'username',
'email',
... |
<?php
/**
* Created by PhpStorm.
* User: guning
* Date: 2017/9/10
* Time: 17:03
*/
namespace App\AdminModel\Article;
use App\AdminModel\xhdt\Report;
use Illuminate\Support\Facades\Storage;
class Article {
public function getApiData($id){
$report = new Report();
$res = $report->select('title')... |
<?php echo errorSuccess($this->session)?>
<?php if($error != '') echo errorMessage($error)?>
<div class="block">
<div class="block-header">
<ul class="block-options">
<li>
<a href="{base_url}musers/add" class="btn"><i class="fa fa-plus"></i></a>
</li>
</ul>
<h3 class="block-title">... |
<?php
/**
* Abstract tree object
*
* @package Sabre
* @subpackage DAV
* @copyright Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
*/
abstract class Sabre_DAV_... |
@extends('layouts.app')
@section('content')
<section class="user_login">
<div class="container main">
<div class="row">
<div class="col-md-8">
<div class="row ">
<div class="">
<!-- TWEET WRAPPER START -->
<div... |
<?php
namespace Appzcoder\CrudGenerator\Commands;
use Illuminate\Console\GeneratorCommand;
class CrudMigrationCommand extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'crud:migration
{name... |
<?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 Modules\Setup\Http\Controllers;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Brian2694\Toastr\Facades\Toastr;
use Modules\Setup\Http\Requests\IntroPrefixFormRequest;
use Modules\Setup\Services\IntroPrefixService;
class IntroPrefixCon... |
<?php
/**
* Part of the Sentinel package.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file.
*
* @package Sentinel
* @version 2.0.8
* @author Cartalyst LLC
* @lice... |
<?php
namespace App\Http\Controllers;
use App\_Class;
use App\Payment;
use App\Role\UserRole;
use App\Student;
use App\User;
use Illuminate\Http\Request;
use function GuzzleHttp\Promise\all;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/... |
<footer>
<center><a href="mikrotik.com">copyright 12200389 Muhammad Iqbal Al As'ad</a></center>
</footer>
</div>
</body>
</html> |
<?php
/**
* Created by phpStorm.
* User: xl
* Date: 2017/3/3
* Time: 17:56
*/
namespace console\models\teacher;
use Yii;
use yii\db\ActiveRecord;
class TeacherInstrumentLog extends ActiveRecord
{
public static function tableName()
{
return 'teacher_instrument_log';
}
public static functi... |
@extends('dashboard.base')
@section('content')
<div class="container-fluid">
<div class="fade-in">
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-header"><strong>Credit Card</strong> <small>Form</small></div>... |
<?php
namespace caiobrendo\dynamicgridform;
use Yii;
use yii\base\InvalidConfigException;
use yii\base\Model;
use yii\bootstrap\Widget;
use yii\helpers\ArrayHelper;
use yii\helpers\Json;
use yii\web\View;
class DynamicGridForm extends Widget
{
/**
* @var array
*/
public $columns;
/**
* @v... |
<?php
if(!isset($_SESSION))
{
session_start();
}
if(isset($_POST["articletext"]))
{
//Creating new article
if(!isset($dbconfig))
$dbconfig = parse_ini_file("db.ini");
if(!isset($db))
$db = mysqli_connect($dbconfig["server"], $dbconfig["user... |
<?php
// 事件定义文件
return [
'bind' => [
],
'listen' => [
//会员行为事件
'MemberAction' => [
'addon\memberregister\event\MemberAction',
],
//展示活动
'ShowPromotion' => [
'addon\memberregister\event\ShowPromotion',
],
//会员注册奖励
'MemberRegister' => [
'addon\memberregister\event\MemberRegister',
],
... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/errors/ad_customizer_error.proto
namespace GPBMetadata\Google\Ads\GoogleAds\V1\Errors;
class AdCustomizerError
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Googl... |
<?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
| ... |
<h1>Daftar Training Modul {{ $modul['module']->nama }}</h1>
<section>
<h4>{{ $modul['module']->description }}</h4>
</section>
<br>
@foreach ($modul['training'] as $training)
<a href="/training/{{$training->id}}"><h3>{{$training->title}}</h3></a>
<hr>
@endforeach
<a href="/training/create"><button>Create Training</bu... |
<?php
/**
* Interactive World Model
*
* An interactive world model is linked to a condition and contains the JSON message of the models.
*
* @author Russell Toris - rctoris@wpi.edu
* @copyright 2014 Worcester Polytechnic Institute
* @link https://github.com/WPI-RAIL/rms
* @since InteractiveWorldInterface v 0... |
<?php
namespace Admin\Model;
use Think\Model;
class UserinfoModel extends Model {
/**
* 自动验证
*/
protected $_validate = array(
array('username', 'require', '用户名不能为空!'), //默认情况下用正则进行验证
array('address', 'require', '办公室地址不能为空!'), //默认情况下用正则进行验证
array('utel', 'require', '联系电话地址不能为空!'),... |
<!DOCTYPE html>
<html lang="<?php echo e(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?f... |
<?php
namespace App\Http\Middleware;
use Closure;
class AccessDenied
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$urlDenied = ['/regi... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://thinkphp.cn All rights reserved.
// +---------------------------------------------------... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Phonebook;
use Faker\Generator as Faker;
use Illuminate\Support\Str;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
... |
<?php
namespace Database\Seeders;
use App\Models\Car;
use App\Models\CarDetails;
use App\Models\Category;
use App\Models\Manufacturer;
use App\Models\Type;
use App\Models\User;
use Illuminate\Database\Seeder;
class CarSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
... |
<?php
namespace Data2Html\Model\Set;
class Block extends \Data2Html\Model\Set
{
protected $attributeNames = array(
'template' => 'string',
'beforeInsert' => 'function',
'afterInsert' => 'function',
'beforeUpdate' => 'function',
'afterUpdate' => 'function',
'beforeDel... |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "auth_item".
*
* @property string $name
* @property int $type
* @property string $description
* @property string $rule_name
* @property string $data
* @property int $created_at
* @property int $updated_at
*
* @property AuthAssign... |
<?php
$options[] = array("name" => "General",
"sicon" => "advancedsettings.png",
"type" => "heading");
$options[] = array("name" => "Logo Image",
"desc" => "You can use your own logo. Click to 'Upload' button and upload your own logo.",
"id" => SN."logo",
... |
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use App\Notifications\VerifyRegistration;
use App\Models\User;
use Auth;
class LoginController extends Controller
{
/*
|----------------------------... |
<?php namespace Mohsindev\Admin\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableCreateMohsindevAdminOrders extends Migration
{
public function up()
{
Schema::create('mohsindev_admin_orders', function($table)
{
$table->engine = 'InnoDB';
... |
<?php
$session = $this->session->userdata('logged_in');
$id = $session['user_id'];
$this->load->model('model_user');
$dados = $this->model_user->busca($id);
foreach($dados as $d){
$user = array(
'user_name' => $d->user_name,
'user_curso' => $d->user_curso,
'user_img' => $d->user_img,
'user_email' => $d->user_e... |
<?php
/**
* The model file of block module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Yidong Wang <yidong@cnezsoft.com>
* @package block
* @version ... |
<link href="<?php echo base_url('assets/bootstrap-5.0.2-dist/css/bootstrap.css');?>" rel="stylesheet" crossorigin="anonymous">
<div class="container-fluid">
<div class="row no-gutter">
<div class="d-none d-md-flex col-md-4 col-lg-6 bg-image"></div>
<div class="col-md-8 col-lg-6">
<div class="login d-f... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Preview\Sync\Service\Document;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Values;
use Twilio\Version;
/**
* PLEASE NOTE that this class contai... |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP ... |
<?php
/**
* EntityParameters.php
*
* Файл является неотъемлемой частью проекта XEAF-PHP
*
* @author Николай В. Анохин <n.anokhin@xeaf.net>
* @copyright 2019 XEAF.NET Group
*
* @license Apache 2.0
*/
namespace XEAF\ORM\Utils;
use XEAF\API\App\Factory;
use XEAF\API\Core\ActionArgs;
use XEAF\ORM\Models\Ent... |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $do... |
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of ... |
@extends('admin.layout')
@section('container')
<div class="row">
<h1>Dashboard</h1>
</div>
@endsection |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Project_model extends CI_Model {
public function get($proj_id) {
return $this->db->get_where('pj_projects', ['id' => $proj_id])->row();
}
public function get_id($title) {
return $this->db->select('id')->get_where('pj_projects', ... |
<?php
namespace App\Http\Requests\Admin\Region;
use App\Entity\Region;
use Illuminate\Foundation\Http\FormRequest;
/**
* @property Region $region
*/
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public funct... |
<?php
namespace Tustin\Xbox\Http;
use GuzzleHttp\Psr7\Response;
class JsonAwareResponseMiddleware extends Response
{
/**
* Cache for performance
* @var array
*/
private $json;
public function getBody()
{
if ($this->json) {
return $this->json;
}
// g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.