Skip to content

Paradonized/mobile_system

Repository files navigation

Mobile_system

Project mobile_system is made with Laravel Framework. It contains information about phones, brands, models and years of release.
GitHub last commit

Installation

To deploy this project you need to have XAMPP and a couple more steps.

First, the httpd-vhosts .conf file should be edited. The path to this file is ...\xampp\apache\conf\extra. Its recomended to use the full directory path.

<VirtualHost *:80>
    DocumentRoot "...\xampp\htdocs\nameOfFolder"
    ServerName serverName.com
    <Directory "...\xampp\htdocs\nameOfFolder">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Order Deny,Allow
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>

After that, we need to update the hosts file in directory ...\Windows\System32\drivers\etc (this is for Windows). Its important to run your text redactor as an admin.

127.0.0.1 serverName.com

The last step is creating a new database in phpMyAdmin. The URL to access phpMyAdmin is http://localhost/phpmyadmin.

Screenshots

my-phoneIndexScr my-phoneBrandsScr my-phoneModelsScr my-phonePhonesScr my-phonePhoneScr

Components

Models

  • Brand
  • Phonemodel
    Model is a key word so it cannot be used. Has belongsTo() relation with Brand, since many models can belong to one brand, but a model cannot belong to many brands.
  • Phone
    Has belongsTo() relations with Brand and Phonemodel. One phone can have only one brand and only one model. Many phones can belong to one brand and to one model.

Controllers

  • IndexController
  • BrandController
  • PhonemodelController
  • PhoneController
  • CrudController

View

  • layouts
    @yield is used to define a section in a layout and is constantly used to get content from a child page unto a master page.

  • index
    @extends lets you "extend" a template, which defines its own sections.
    @section inject content layout from extended blade layout and display in child blade.

Routes

From web.php is set the route for each view, as well as the controllers and their functions.

Administrative panel

Backpack is used for all CRUD operations. Backpack is accessible via adding /admin to the base URL. Here, you need to make yourself a personal (local) account.

Future improvements

  • Filter search.
  • "Order by" functionality.

About

PHP Laravel project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published