Advertisements API

Advanced information for expert users.

Models

  • Laralum\Advertisements\Models\Advertisement

    • views()

      Returns the advertisement views (views and clicks) relationship (Laralum\Advertisements\Models\View).

    • uniqueViews()

      Returns the advertisement views (only views) that are unique by ip relationship (Laralum\Advertisements\Models\View).

    • clicks()

      Returns the advertisement views (only clicks) relationship (Laralum\Advertisements\Models\View).

    • uniqueClicks()

      Returns the advertisement views (only clicks) that are unique by ip relationship (Laralum\Advertisements\Models\View).

    • totalViews()

      Returns the number of total views.

    • totalUniqueViews()

      Returns the number of total unique views.

    • totalClicks()

      Returns the number of total clicks.

    • totalUniqueClicks()

      Returns the number of total unique clicks.

    • usedBrowsers()

      Returns the array of the used browsers.

    • mostUsedBrowser()

      Returns the array of the most used browser.

    • usedOSs()

      Returns the array of the used OSs.

    • mostUsedOS()

      Returns the array of the most used OS.

    • usedLanguages()

      Returns the array of the used languages.

    • mostUsedLanguage()

      Returns the array of the most used language.

    • addView()

      Adds a view to the advertisement.

    • addClick()

      Adds a view to the advertisement.

  • Laralum\Advertisements\Models\Settings

  • Laralum\Advertisements\Models\View

    • languageFancy()

      Display the language in a fancy way.

Did you know?

Laralum is found to be the only CMS that still gives you the ability to manage the views and the website the way you like, without any problems with the correct functionality of it.


Donations

Please consider donating if you liked the project, we currently have no funding and we're spending a lot of time maintaining and developing this project.


The creators

Èrik Campobadal Forés

Aitor Riba Archilla


Major Contributors

Krishan König

Laraketai

Snow McFox