This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Http\Request; | |
class Shoplocation extends Model | |
{ | |
protected $guarded = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Category extends Model | |
{ | |
protected $guarded = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\v2; | |
use App\Banner; | |
use App\Category; | |
use App\Faq; | |
use App\Shop; | |
use App\Shoplocation; | |
use Illuminate\Http\Request; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Http\Request; | |
class Shoplocation extends Model | |
{ | |
protected $guarded = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_NAME=Laravel | |
APP_ENV=local | |
APP_KEY= | |
APP_DEBUG=true | |
APP_URL=http://localhost | |
LOG_CHANNEL=stack | |
DB_CONNECTION=mysql | |
DB_HOST=127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends '../base.html' %} | |
{% load staticfiles %} | |
{% block content %} | |
<div class="news"> | |
{% for item in articles %} | |
<h1>{{ item }} </h1> | |
<img height="500" width="800" src="{{ item.image.url }}" alt="img" > <br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>МБОУ СОШ №44</title> | |
<meta charset="UTF-8"> | |
{% load staticfiles %} | |
<link rel="stylesheet" href="{% static "css/style.css" %}"> | |
<link rel="stylesheet" href="{% static "css/reset.css" %}"> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#Library for send messages for emails with files | |
namespace EmailSender; | |
require 'vendor/autoload.php'; | |
use PHPMailer\PHPMailer\PHPMailer; | |
class EmailSender | |
{ | |
public function __construct(string $login, string $password, $name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% for cat in cat %} | |
<p>{{ cat.title }}</p> | |
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.utils import timezone | |
from django.contrib.auth.models import User | |
class Post(models.Model): | |
author = models.ForeignKey('auth.User') | |
title = models.CharField(max_length=200) | |
text = models.TextField() | |
image = models.ImageField(upload_to='img') |