From Javascript to Php Laravel — Models and Migrations

How to run a server

sudo php -S localhost:8080

How to define objects in php

How to read an object prop in php

MODELS — MIGRATIONS

1. CREATE SharePointFile ENTIY

php artisan make:model SharePointFile -mcr

2. MODIFY MIGRATION

CREATE RoleHasSharePointFiles

php artisan make:model role_has_share_point_files -mcr

MODIFY MIGRATION

  • share_point_files table
  • roles table
  • users table: created_by
  • users table: updated_by

RUN MIGRATIONS

php artisan migrate

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Daniel Arellano

Our community enforces to keep innovation open-sourced and share the mindset that any profession should spread ideas in order to keep growing us as a society.