Skip to content

devanquinta/Interactive-Laravel-PHP

Repository files navigation


https://github.com/

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.


Documentação em construção


LARAVEL stable v8.50.0

https://packagist.org/packages/laravel/framework


Interactive

Sistema Interativo de perguntas e respostas gamificado com controle de acesso (ACL) com 3 papies, sendo dois de controle, definidos pelo sistema, ao se levantar o projeto, e papeis de usuário do fúrum personalisáveis. sistema open-source para desenvolvimento ou uttilização do seu códico-fonte para outros fins.


Recursos:

Instalação do Laravel 8

Instalação do php 8 e as depêndencias para se trabalhar com Laravel

Instalar Composer

Mysql 8 ou 5,7 e configurar compiando do arquivo env_projeto para o arquivo .env, este arquivo tem que ser criado para configurar o banco de dados comforme a senha e o usuário

se quiser trabalhar com apache configurar no sistema o apache2

comando principal: php artsan migrate:refresh --seed



****DOCUMENTAÇÃO AINDA EM CONSTRUÇÃO***


Linux:

Instalando MYSQL 8.

sudo apt update

sudo apt install mysql-server

configuração da senha->sudo mysql_secure_installation

.................... ....................

CREATE USER 'novo_usuario'@'localhost' IDENTIFIED BY 'senha_forte';

GRANT ALL PRIVILEGES ON * . * TO 'novo_usuario'@'localhost';

FLUSH PRIVILEGES; exit;

# ALTERAR SENHA

ALTER USER 'usuario'@'localhost' IDENTIFIED BY 'nova-senha';


Configuração do banco de Dados no arquino .env

cp .env.example .env

dentro do arquivo .env : configurar o banco


...................................................

DB_CONNECTION=mysql

DB_HOST=localhost # Banco de dados local

DB_PORT=3306

DB_DATABASE=nome_do_banco # não precisa criar nenhuma tabela

DB_USERNAME=nome_do_usuario

DB_PASSWORD=senha

...................................................
Instalando PHP 8.

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:ondrej/php

sudo apt update && sudo apt install php8.0 php8.0-intl php8.0-mysql php8.0-sqlite3 php8.0-gd php8.0-mbstring php8.0-xml

................................................................................................
OBS: pode-se instalar o PHP 7.4 e configurar no arquivo composer.json
................................................................................................
# Trocar a versão do php se nesessásrio. Creditos à página SempreUpdate: https://sempreupdate.com.br/instalar-versoes-diferentes-php-7-2-7-3-7-4-8-0-no-ubuntu/

sudo update-alternatives --set php /usr/bin/php8.0

Instalando o Composer.
php -r "copy ('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07eelixer's 'check unified installation of echo-181' echo-181's 'composite-lixer' and 'unified' echo-181' lixer installation; php ');} echo PHP_EOL; " php composer-setup.php php -r "unlink('composer-setup.php');"
Instalando o Laravel

composer global require "laravel/installer"


Levantando as dependencias.

composer install


Iniciando o banco de dados com informações para liberar o sistema

php artisan migrate:refresh --seed


Gerando chave

php artisan key:generate


Levantando o projeto: deploy

php artisan serve

OBS: o comando php artisan migrate:refresh --seed inicia o banco dados configurado já com algumas informações

Login: root@example.com
senha : abcd1234

Este é o usuário Moderador que libera o sistema


Usuário administrador

Login: admin@example.com
Senha: abcd1234