text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class ProjectAssignMethodology extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var... |
<?php
include ("header.php");
include ("pass.php");
try {
$coin->walletpassphrase($_POST['password'],9999999,true);
echo "<p class='bg-success'><b>Your Wallet is unlocked for staking.</b></p>";
$newLockState = "Unlocked For Staking";
changeLockState();
} catch(Exception $e) {
echo "<p class='bg-dan... |
<?php
declare(strict_types=1);
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\Abstract... |
@extends('layouts.layout')
@section('content')
@endsection |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class Profile extends Controller
{
//
function index()
{
$data= DB::table('mahasiswa')->get();
print_r($data);
}
} |
<?php
namespace Illuminate\Support;
use ArrayAccess;
use ArrayIterator;
use Illuminate\Support\Traits\EnumeratesValues;
use Illuminate\Support\Traits\Macroable;
use stdClass;
class Collection implements ArrayAccess, Enumerable
{
use EnumeratesValues, Macroable;
/**
* The items contained in the collecti... |
<?php
$text = \ebi\Util::plain_text('
aaa
bbb
');
eq('aaa'."\n".'bbb',$text);
$text = \ebi\Util::plain_text('
hoge
hoge
');
eq('hoge'."\n".'hoge',$text);
$text = \ebi\Util::plain_text('
hoge
hoge
hoge
hoge
');
eq('hoge'."\n".'hoge'."\n".'hoge'."\n".'hoge',$text); |
<form action="{{route('buy')}}" method="post">
@csrf
<input type="hidden" name="product_id" value="{{ $product_id }}">
<input type="hidden" name="name" value="{{ $name }}">
<input type="hidden" name="price" value="{{ $price }}">
<input type="hidden" name="currency_id" value="{{ $currency_id }}">
... |
@extends('Dashboard.index')
@section('content')
<?php
breadCrumb(config("breadcrumb.read_users"));
?>
<div class="kt-container kt-container--fluid kt-grid__item kt-grid__item--fluid ">
<div class="kt-portlet kt-portlet--mobile">
<div class="kt-portlet__head kt-portlet__head--lg">
... |
<?php
use Tonysm\TailwindCss\Tests\TestCase;
uses(TestCase::class)->in(__DIR__); |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit108495bd12d5505f796d5df92407a8fd
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... |
<?php
namespace lo\plugins\models\query;
use lo\plugins\models\Event;
use yii\db\ActiveQuery;
/**
* This is the ActiveQuery class for [[Event]].
*
* @see Event
*/
class EventQuery extends ActiveQuery
{
/*public function active()
{
$this->andWhere('[[status]]=1');
return $this;
}*/
... |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2021-06-27 00:00:13 --> 404 Page Not Found: Product-category/main-category
ERROR - 2021-06-27 00:00:29 --> 404 Page Not Found: Product-category/main-category
ERROR - 2021-06-27 00:00:41 --> 404 Page Not Found: Product-category/main-catego... |
<?php
/**
* Copyright (C) 2013-2016
* Piotr Olaszewski <piotroo89@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the righ... |
<!-- main-header opened -->
<div class="main-header sticky side-header nav nav-item">
<div class="container-fluid">
<div class="main-header-left ">
<div class="responsive-logo">
<a href="{{ url('/' . $page='index') }}"><img src="{{URL::asset('assets/img/brand/logo.png')}}" class="logo-1" alt="l... |
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\ORM\EntityManagerInterface;
use App\Entity\Book;
class BookController extends AbstractController
{
public function __construct(EntityManagerInterface $ent... |
<?php
declare(strict_types=1);
namespace App\Actions\Calendar;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
class CalendarAction
{
/**
* The constructor
*
* @param Mustache $view Mustache Engine
*/
public function __construct... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLocalizacaosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('localizaco... |
<?php
namespace Tests\Feature\Helpers;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Testing\Concerns\MakesHttpRequests;
final class Api
{
use MakesHttpRequests;
/**
* The Illuminate application instance.
*
* @var Application
*/
protected $app;
public function... |
<li class="nav-header">Registration</li>
<li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="fa fas fa-eye"></i>
<p>
View students
<i class="fas fa-angle-left right"></i>
</p>
</a>
<ul class="nav nav-t... |
<?php
use Apps\Models\Files;
use Apps\Models\Embed;
use Apps\Models\Category;
$lang = $this->data['lang'];
$baseUrl = $this->data['baseUrl'];
$embed = array(
'calendar' => Embed::findByCode('calendar'),
'poll' => Embed::findByCode('poll'),
'stats' => Embed::findByCode('stats')
);
?>
<div class="section n... |
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\ReactionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ApiResource()
* @ORM\Entity(repositoryClass=ReactionRepository::class)
*/
class Reaction
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(ty... |
<?php
namespace Artemis\Core\ErrorHandling;
use Artemis\Support\Arr;
use Artemis\Core\Exception\Runtime as RuntimeError;
use Artemis\Core\Http\ResponseHandler;
use Throwable;
use Closure;
abstract class ErrorHandler implements HandlerInterface
{
/**
* Identifier if the app is in debug mode or not.
*... |
@extends('layouts.blog-post')
@section('content')
<!-- Blog Post -->
<!-- Title -->
<h1>{{$post->title}}</h1>
<!-- Author -->
<p class="lead">
by <a href="#">{{$post->user->name}}</a>
</p>
<hr>
<!-- Date/Time -->
<p><span class="glyphicon glyphicon-time"></span> Posted ... |
@extends('layouts.nav')
@section('title', 'Home')
@section('content')
<!-- Card Form -->
<div class="container">
<div class="row my-5">
@foreach ($products as $product)
<div class="col-md-4">
<form action="/detailproduct" method="POST">
@csrf
<input type=... |
<?php
/**
* ModelInterface
*
* PHP version 5
*
* @category Class
* @package Aspose\CAD\Model
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Aspose.CAD Cloud API Reference
*
* No description provided (generated by Swagger Codegen https://github.com/swag... |
<?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
Auth::routes();
Route::group(['prefix' => 'dashboard', 'middleware' => 'can:view,App\Dashboard,auth'], function(){
Route::get('create', 'DashBoardController@create')->name('dashboard.create');
Route::post('store', 'ProdutosController@store')->name('produto.store');
Route::delete('delete', 'ProdutosControl... |
<?php
declare(strict_types=1);
namespace Sendportal\Base\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\MorphMany;
class Campaign extends BaseModel
{
/** ... |
<?php
/**
* Created by JetBrains PhpStorm.
* User: dongyancen
* Date: 13-10-10
* Time: 上午1:50
* To change this template use File | Settings | File Templates.
*/
class Config
{
public static $projroot = "../../";
//相对于projroot的路径
public static $src_PATH = "src/" ;
public static $test_PATH = "spec... |
<?php
namespace App\Http\Controllers;
use App\Models\Entreprise;
use Illuminate\Http\Request;
class EntrepriseController extends Controller
{
//
public function index()
{
$entreprises = Entreprise::query()->paginate(25);
return view('entreprises.index',compact('entreprises'));
}
} |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Traits\CsvImportTrait;
use App\Http\Requests\MassDestroyOsoNumberProfileRequest;
use App\Http\Requests\StoreOsoNumberProfileRequest;
use App\Http\Requests\UpdateOsoNumberProfileRequest;
use App\Models\OsoAgw;
use... |
<?php
namespace App\Policies;
use App\Models\Post;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class PostPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return \Illuminate\Auth\Acces... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>COVID-19</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<!------ Include the above... |
<?php
/*
* This file is part of the HWIOAuthBundle package.
*
* (c) Hardware Info <opensource@hardware.info>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HWI\Bundle\OAuthBundle\Templating\Helper;
use HWI\Bundle\OAut... |
<?php
namespace app\v1\models;
interface UserInterface
{
public function getId();
} |
<?php
namespace Nogrod\eBaySDK\Trading;
use Nogrod\XMLClientRuntime\Func;
/**
* Class representing GetSellingManagerInventoryFolderRequestType
*
* Retrieves Selling Manager Inventory folders.
* This call is subject to change without notice; the deprecation process is
* inapplicable to this call. The user must... |
@extends('layouts.app')
@section('content')
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{!! route('funcionarios.index') !!}">@lang('models/funcionarios.singular')</a>
</li>
<li class="breadcrumb-item active">@lang('crud.add_new')</li>
</ol>
<div class="containe... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLoginsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logins', functio... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yiiunit\mssql\data\ar;
/**
* ActiveRecord is ...
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 1.0
*/
class ActiveRecord extends \yii\db\ActiveRe... |
<?php
/**
* test for px2-move-contents
*/
class mainTest extends PHPUnit_Framework_TestCase{
private $fs;
public function setup(){
mb_internal_encoding('UTF-8');
require_once(__DIR__.'/helper/run_pickles2_object.php');
$this->fs = new tomk79\filesystem();
}
/**
* Pickles 2 オブジェクトを提供して実行
*/
public fu... |
<?php
use Illuminate\Database\Seeder;
class CommentsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
App\Post::all()->each(function (App\Post $post) {
$post->comments()->saveMany(
facto... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Theme\Model\ResourceModel\Theme\Grid;
/**
* Theme grid collection
*/
class Collection extends \Magento\Theme\Model\ResourceModel\Theme\Collection
{
/**
* Add area filter
*
* @r... |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit34212046d6d63e144190f5c018388b15
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... |
@extends('layouts.main')
@section('title', trans('home.welcome'))
@section('content')
<div class="container">
<div class="row push-down">
<div class="col-lg-8 col-md-6 col-sm-6 col-xs-12">
<h1 class="page-title">{{ trans('home.latest_tricks') }}</h1>
</div>
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="list-group">
@foreach ($subjects as $subject)
<div class="list-group-item">
<h5><a href="{{ route('subjects.show', $subject)}}">{{ $subject->title }}</a></h5>
<p>{{ $subject->conten... |
<?hh
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
$x = <di... |
@extends('layouts.app')
@section('content')
<h3>CLIENTE</h3>
Bienvenido {{ auth()->user()->name}} y usted es {{ auth()->user()->user_type }}
@endsection |
<?php
declare(strict_types = 1);
namespace WebLoader\Nette;
use Nette;
use Nette\Configurator;
use Nette\DI\Compiler;
use Nette\DI\Config\Helpers;
use Nette\DI\ContainerBuilder;
use Nette\Utils\Finder;
/**
* @author Jan Marek
*/
class Extension extends \Nette\DI\CompilerExtension
{
public const DEFAULT_TEMP_PATH... |
<?php
return array (
'<strong>Group</strong> stats' => 'آمار <strong>گروهها</strong>',
'Average members' => 'کاربران متوسط',
'Top Group' => 'گروه برتر',
'Total groups' => 'کلیهی گروهها',
); |
<?php
/**
* DO NOT EDIT!
* This file was automatically generated via bin/generate-validator-spec.php.
*/
namespace AmpProject\Validator\Spec\Tag;
use AmpProject\Extension;
use AmpProject\Format;
use AmpProject\Layout;
use AmpProject\Validator\Spec\AttributeList;
use AmpProject\Validator\Spec\Identifiable;
use Amp... |
<?php
use Illuminate\Support\Str;
require( __DIR__ . '/../include/connect.php');
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateStudentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('students', fun... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tests', function ... |
<?php
/**
* Part of the Antares 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 Antares Core
* @version 0.9.0
* @author Original Orchestral... |
<?php
namespace App\Http\Controllers\Api;
use App\Experiencia;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ExperienciaController extends Controller
{
public function porMuseo($id){
$experiencia = DB::table('experiencias')
... |
<?php
namespace App\Providers;
use App\Actions\Fortify\CreateNewUser;
use App\Actions\Fortify\ResetUserPassword;
use App\Actions\Fortify\UpdateUserPassword;
use App\Actions\Fortify\UpdateUserProfileInformation;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Suppo... |
@extends('layouts.ui')
@section('content')
<h2>contenct text</h2>
@endsection |
<?php
namespace Drupal\cb_project_portfolio\Plugin\Block;
use Drupal\Core\Block\BlockBase;
/**
* Provides an example block.
*
* @Block(
* id = "cb_project_portfolio_example",
* admin_label = @Translation("Example"),
* category = @Translation("cb_project_portfolio")
* )
*/
class ExampleBlock extends Blo... |
<?php
require_once '../../inc/header.inc.php';
require_once '../../inc/profiles.inc.php';
$logid = $_GET['id'];
$loggedid = getLoggedId();
$columns = 'publishStatus,publishPwd';
if($logid){
$stringSQL = "SELECT nickname FROM Profiles where ID = " . $logid;
$query = db_arr($stringSQL);
$nickname = $query['... |
<?php
/*
Title: Basic
Order: 10
Flow: Demo Workflow
Tab: Conditions
Default: true
*/
?>
<div class="piklist-demo-highlight">
<h3><?php _e('Conditional fields add interactivity to your website.', 'piklist-demo'); ?></h3>
<p>
<?php _e('Hide, show or update a field, based on the state of another fie... |
<?php
namespace Qiniu\Tests;
use Qiniu\Etag;
class EtagTest extends \PHPUnit_Framework_TestCase
{
public function test0M()
{
$file = qiniuTempFile(0);
list($r, $error) = Etag::sum($file);
unlink($file);
$this->assertEquals('Fto5o-5ea0sNMlW_75VgGJCv2AcJ', $r);
... |
<?php
/**
* @package Abricos
* @subpackage FileManager
* @copyright 2008-2016 Alexander Kuzmin
* @license http://opensource.org/licenses/mit-license.php MIT License
* @author Alexander Kuzmin <roosit@abricos.org>
*/
$fileManager = FileManagerModule::$instance->GetManager();
$brick = Brick::$builder->brick;
if... |
@extends('FrontEnd.layouts.Main')
@section('content')
<body style="background:#52b5d1">
<style>
input[type="range"] {
width:400px;
opacity:1 ;
align-content: center;
position: absolute;
left: 44%;
margin: -28px 0 0 -100px;
background: linear-gr... |
<?php
namespace CRUD_practica\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
class EncryptCookies extends BaseEncrypter
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?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\NikonCustom;
use JMS\Serializer\Annotation\ExclusionP... |
<?php namespace JSONAPI\Resource\Metadata;
use JSONAPI\Resource\Attributes\AbstractFieldAttribute;
use JSONAPI\Resource\Attributes\Attribute;
use JSONAPI\Resource\Attributes\Relationship;
use JSONAPI\Resource\Attributes\Resource as AttrResource;
use JSONAPI\Resource\Metadata\Resource as ResourceMeta;
use ReflectionAt... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LeagueGroupTeam extends Model
{
use HasFactory;
protected $fillable = [
'tournament_id',
'league_group_id',
'team... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Area extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Area',function (Blueprint $ta... |
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header">{{ trans('labels.navigation') }}</li>
<li class="treeview ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Cid extends Model
{
use HasFactory;
} |
<html>
<head>
<link href='//fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
color: #B0BEC5;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: c... |
<?php
namespace App\Exports;
use App\Exports\Sheets\UsersCustomSheet;
use App\Exports\Sheets\UsersPerMonthSheet;
use App\User;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class UsersMultipleSheetsExport implements WithMultipleSheets
{
use Exportable;
protect... |
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Buat Akun Baru</h1>
</div>
<?php if ($this->session->flashdata('message_berhasil')) : ?>
<div class="... |
@extends('back.layouts.master')
@section('content')
@section('title','Tüm Albümler')
<div class="starter-template">
<div class="row">
@foreach($albums as $album)
<div class="col-lg-3">
<div class="thumbnail" style="min-height: 514px;">
<img alt="{... |
<?php
namespace Jane\JsonSchema\Tests\Expected\Schema2\Normalizer;
use Jane\JsonSchema\Tests\Expected\Schema2\Runtime\Normalizer\CheckArray;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareTrait;
use Symfony\Component\Serializer\Norm... |
@extends('layout')
@section('content')
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weigh... |
<?php
namespace App\Entities\Products\Requests;
use App\Entities\Base\BaseFormRequest;
use Illuminate\Validation\Rule;
class UpdateProductRequest extends BaseFormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
... |
@extends('plantillas.plantilla')
@section('titulo')
nuevo alumno
@endsection
@section('cabecera')
Crear Alumno
@endsection
@section('contenido')
@if ($errors->any())
<div class="alert alert-danger my-3 p-2">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Cart_item extends Model
{
protected $fillable = ['cart_item_id', 'item_id', 'quantity'];
public function user()
{
return $this->belongsTo('\App\User');
}
public function checkitem()
{
return $this->hasMany('... |
@extends('layouts.admin')
@section('content')
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Dashboard <small>Statistics Overv... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Toppers Pakistan</title>
<!-- Scrip... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePeopleTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('people', functio... |
<?php
namespace Descartes\UtilisateurBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class DescartesUtilisateurBundle extends Bundle
{
public function getParent()
{
return 'FOSUserBundle';
}
} |
<?php
/**
* League.Csv (https://csv.thephpleague.com).
*
* @author Ignace Nyamagana Butera <nyamsprod@gmail.com>
* @license https://github.com/thephpleague/csv/blob/master/LICENSE (MIT License)
* @version 9.1.5
* @link https://github.com/thephpleague/csv
*
* For the full copyright and license information, ... |
<?php
header("Access-Control-Allow-Origin: *");
$servername = "localhost";
$username = "root";
$password = "";
//En caso de pasar por post el nombre de la bd lo ponemos si no ponemos por defecto laravel porque si
if(isset($_POST["db_name"])){
$dbname = $_POST["db_name"];
}else{
$dbname = 'laravel';
}
// $dbname... |
<!doctype html>
<html lang="en" ng-app="f3">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>F^3</title>
<link rel="shortcut icon" href="... |
<?php
namespace Omnipay\PaymentExpress;
use Omnipay\Common\AbstractGateway;
use Omnipay\PaymentExpress\Message\PxPayAuthorizeRequest;
use Omnipay\PaymentExpress\Message\PxPayCompleteAuthorizeRequest;
use Omnipay\PaymentExpress\Message\PxPayPurchaseRequest;
use Omnipay\Omnipay;
/**
* DPS Windcave PxPay Gateway
*/
c... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categories',... |
<?php
namespace Esprit\MoocBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* userphoto
*
* @ORM\Table(name="userPhoto")
* @ORM\Entity
*/
class UserPhoto {
/**
* @var integer
*
* @ORM\Column(name="id_photo", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strateg... |
<?php
declare(strict_types=1);
namespace Square\Models;
use stdClass;
/**
* Defines the request body for the [SearchCatalogItems]($e/Catalog/SearchCatalogItems) endpoint.
*/
class SearchCatalogItemsRequest implements \JsonSerializable
{
/**
* @var string|null
*/
private $textFilter;
/**
... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\TaxonomyVocabulary */
$this->title = 'Create Taxonomy Vocabulary';
$this->params['breadcrumbs'][] = ['label' => 'Taxonomy Vocabularies', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="taxonomy-voc... |
<?php
namespace App\Http\Controllers\Backend;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Validator;
use Session;
use Route;
use Auth;
use App\SysContent;
use App\SysContentData;
class ContentPageController extends BackendController
{
function __construct(Re... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
class FinanceAdmin
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function ... |
<?php
namespace app;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Emailgroup;
/**
* modelsEmailgroupSearch represents the model behind the search form of `app\models\Emailgroup`.
*/
class modelsEmailgroupSearch extends Emailgroup
{
/**
* {@inheritdoc}
*/
public function rul... |
<?php declare(strict_types=1);
namespace Futures;
/**
* @template T
*/
interface StreamInterface
{
/**
* @param callable(T):void $callback
* @return $this
*/
public function listen(callable $callback): self;
/**
* @param mixed $event
* @psalm-param T $event
* @return $this... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Login V7</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="<?php echo base_... |
<?php
namespace App\DataFixtures;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use App\Entity\JobSector;
class JobSectorFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
$sectors = [
'Commercial',
'Retail sales',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.