Run php code within Laravel Output

Job ID: 32104561

Budget: $10 – $30 USD

I'm looking for someone who is familiar with laravel and php.

I have an existing script that is written in laravel and it prevents me from running normally php from within any of the blog posts that it creates unlike wordpress that allows php to be run from within a blog post using a shortcode.

So I need someone who can allow this to happen. For example, within a blog post I would like to be able to include some php code such as something like:

<?php
//this include pulls blog content from a special folder outside this post.
echo "<br>";
include('../public_html/my_blog_post_test_files/25.php');
?>

In addition to the above I also need to be able to execute additional php that might be contained within the above 25.php example file. Such as:

<?php

//Create random number 1 or 2:
$random = rand(1,2);

//Add zero before 1 or 2
$random = "0".$random;

//Include random file:
include("/myfolder/my-file-".$random.".html");
?>

If you believe you can do this please bid accordingly and don't forget to mention the keyword "php" in your bid proposal so that I know you have read this proposal.
Related categories: PHP Software Architecture MySQL HTML Laravel