Code Monkey home page Code Monkey logo

blog_laravel's Introduction

About This project


This is a blog i made using laravel, nothing fancy, i didn't use eloquent to persist my data rather i used typical sql/mysql to create by my side (that's why some forms lack security).


Features of this blog :

I wanted this blog to have a Post and comment system, any logged in user can add a Post or Comment and guests (non authethified users) will just get redirected to home page.


the goal of this project was to get a feel of laravel's workflow.


Stuff i learnt doing this project :

---
Different value of directories :
	-- app/http/controllers/'Controller name' we create new controllers with command php artisan make:controller 'controller name'
	-- ressources/views/'blade files' for views 
	-- routes/web.php for setting up routes of our app
	-- public/ for css/js files
using DB::'method' to access our database
---
I also got to search and learn more about foreign keys (their utility and how to write a query for foreign keys and its constrains in this project)
	-- theres was 1 FK in the table Posts (user_id) and 2 FK in table comments (user_id/post_id)
---
I learnt the logic of vagrant in how it helps speed up the process of setting up a VM while i was setting Homestead, i gotta say it was a real pleasure and i love this aspect of laravel.

To use this project as a base for yours :

1- Install virtualbox/ vagrant... clone homestead directory somewhere in your app
2- Clone this project and copy its path to the sitemap of homestead.yaml config file
3- Launch your VM with 'vagrant up' and connect to it with 'vagrant ssh'
4- Import the database using mysql
5- play around with the project until you understand how its set up and add your own features.

blog_laravel's People

Contributors

ykherbache avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.