Skip to content

link2zain/webmagic_core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core module

Module uses for place base abstract and real classes which can be reused in future

Entityt functionality

Extend EntityRepo class and you will have base methods for work with entities

Secure routes check

Use \Webmagic\Core\Middleware\SecureRoutesCheck if you want to redirect a not secure request to the secure one when the app working on the production environment.

Redirect realization for AJAX requests

It is difficult to recognize the redirect destination in javascript when you making a standard redirect response. Use \Webmagic\Dashboard\Controllers\AjaxRedirectTrait to make the redirect process more clear for javascript. The result of the function redirect will for the AJAX request (with header x-requested-with: XMLHttpRequest) will be the next kind of json

    {
      "status": "302",
      "redirect" : "https://destination.com"
    }

For the regular HTTP requests the function will return regular redirect.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published